diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 93b55023..0bb310c8 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1 management: - docChecksum: 11234d282481d3710e009ee7857573b0 + docChecksum: a1b9796a9df7b522bbca126ea657a92a docVersion: 0.9.0 - speakeasyVersion: 1.628.2 - generationVersion: 2.716.3 - releaseVersion: 0.9.1 - configChecksum: 3fef262a245d1cac085d36de8dce197a + speakeasyVersion: 1.631.4 + generationVersion: 2.716.16 + releaseVersion: 0.10.0 + configChecksum: 14557d31b94e189f91435335280619e4 repoURL: https://github.com/gleanwork/api-client-java.git published: true features: @@ -14,7 +14,7 @@ features: additionalDependencies: 0.1.0 additionalProperties: 0.0.1 constsAndDefaults: 0.1.1 - core: 3.51.0 + core: 3.52.3 deprecations: 2.81.1 examples: 2.81.6 flattening: 2.81.1 @@ -23,10 +23,8 @@ features: globalSecurityFlattening: 0.1.0 globalServerURLs: 2.82.2 groups: 2.81.2 - mockServer: 0.1.1 nameOverrides: 2.81.3 sdkHooks: 1.1.0 - tests: 0.9.3 unions: 0.0.6 uploadStreams: 0.1.0 generatedFiles: @@ -53,6 +51,7 @@ generatedFiles: - docs/models/components/AgentRunCreate.md - docs/models/components/AgentRunWaitResponse.md - docs/models/components/AgentSchemas.md + - docs/models/components/AgentsInsightsV2Request.md - docs/models/components/AiAppActionCounts.md - docs/models/components/AiAppsInsightsResponse.md - docs/models/components/AiInsightsResponse.md @@ -354,6 +353,8 @@ generatedFiles: - docs/models/components/InputSchema.md - docs/models/components/InsightsAgentsRequestOptions.md - docs/models/components/InsightsAiAppRequestOptions.md + - docs/models/components/InsightsAssistantRequest.md + - docs/models/components/InsightsOverviewRequest.md - docs/models/components/InsightsRequest.md - docs/models/components/InsightsRequestCategory.md - docs/models/components/InsightsResponse.md @@ -849,6 +850,7 @@ generatedFiles: - src/main/java/com/glean/api_client/glean_api_client/models/components/AgentRunCreate.java - src/main/java/com/glean/api_client/glean_api_client/models/components/AgentRunWaitResponse.java - src/main/java/com/glean/api_client/glean_api_client/models/components/AgentSchemas.java + - src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsInsightsV2Request.java - src/main/java/com/glean/api_client/glean_api_client/models/components/AiAppActionCounts.java - src/main/java/com/glean/api_client/glean_api_client/models/components/AiAppsInsightsResponse.java - src/main/java/com/glean/api_client/glean_api_client/models/components/AiInsightsResponse.java @@ -1150,6 +1152,8 @@ generatedFiles: - src/main/java/com/glean/api_client/glean_api_client/models/components/InputSchema.java - src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAgentsRequestOptions.java - src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAiAppRequestOptions.java + - src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAssistantRequest.java + - src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsOverviewRequest.java - src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequest.java - src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequestCategory.java - src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsResponse.java @@ -2020,690 +2024,6 @@ generatedFiles: - src/main/java/com/glean/api_client/glean_api_client/utils/Utils.java - src/main/java/com/glean/api_client/glean_api_client/utils/reactive/EventStream.java - src/main/java/com/glean/api_client/glean_api_client/utils/reactive/ReactiveUtils.java - - src/test/java/com/glean/api_client/glean_api_client/ActivitiesTests.java - - src/test/java/com/glean/api_client/glean_api_client/AgentsTests.java - - src/test/java/com/glean/api_client/glean_api_client/AnnouncementsTests.java - - src/test/java/com/glean/api_client/glean_api_client/AnswersTests.java - - src/test/java/com/glean/api_client/glean_api_client/CalendarTests.java - - src/test/java/com/glean/api_client/glean_api_client/ClientActivityTests.java - - src/test/java/com/glean/api_client/glean_api_client/ClientAuthenticationTests.java - - src/test/java/com/glean/api_client/glean_api_client/ClientChatTests.java - - src/test/java/com/glean/api_client/glean_api_client/ClientDocumentsTests.java - - src/test/java/com/glean/api_client/glean_api_client/ClientShortcutsTests.java - - src/test/java/com/glean/api_client/glean_api_client/ClientUserTests.java - - src/test/java/com/glean/api_client/glean_api_client/ClientVerificationTests.java - - src/test/java/com/glean/api_client/glean_api_client/CollectionsTests.java - - src/test/java/com/glean/api_client/glean_api_client/DatasourcesTests.java - - src/test/java/com/glean/api_client/glean_api_client/DisplayablelistsTests.java - - src/test/java/com/glean/api_client/glean_api_client/EntitiesTests.java - - src/test/java/com/glean/api_client/glean_api_client/IndexingAuthenticationTests.java - - src/test/java/com/glean/api_client/glean_api_client/IndexingDocumentsTests.java - - src/test/java/com/glean/api_client/glean_api_client/IndexingPermissionsTests.java - - src/test/java/com/glean/api_client/glean_api_client/InsightsTests.java - - src/test/java/com/glean/api_client/glean_api_client/MessagesTests.java - - src/test/java/com/glean/api_client/glean_api_client/PeopleTests.java - - src/test/java/com/glean/api_client/glean_api_client/PinsTests.java - - src/test/java/com/glean/api_client/glean_api_client/PoliciesTests.java - - src/test/java/com/glean/api_client/glean_api_client/ReportsTests.java - - src/test/java/com/glean/api_client/glean_api_client/SearchTests.java - - src/test/java/com/glean/api_client/glean_api_client/SummarizeTests.java - - src/test/java/com/glean/api_client/glean_api_client/ToolsTests.java - - src/test/java/com/glean/api_client/glean_api_client/TroubleshootingTests.java - - src/test/java/com/glean/api_client/glean_api_client/VisibilityoverridesTests.java - - tests/mockserver/.gitignore - - tests/mockserver/Dockerfile - - tests/mockserver/Makefile - - tests/mockserver/README.md - - tests/mockserver/go.mod - - tests/mockserver/go.sum - - tests/mockserver/internal/handler/assert/contenttype.go - - tests/mockserver/internal/handler/assert/header.go - - tests/mockserver/internal/handler/assert/parameter.go - - tests/mockserver/internal/handler/assert/pointer.go - - tests/mockserver/internal/handler/assert/security.go - - tests/mockserver/internal/handler/doc.go - - tests/mockserver/internal/handler/generated_handler.go - - tests/mockserver/internal/handler/generated_handlers.go - - tests/mockserver/internal/handler/pathgetrestapiv1agentsagentid.go - - tests/mockserver/internal/handler/pathgetrestapiv1agentsagentidschemas.go - - tests/mockserver/internal/handler/pathgetrestapiv1governancedatapolicies.go - - tests/mockserver/internal/handler/pathgetrestapiv1governancedatapoliciesid.go - - tests/mockserver/internal/handler/pathgetrestapiv1toolslist.go - - tests/mockserver/internal/handler/pathpostapiindexv1adddatasource.go - - tests/mockserver/internal/handler/pathpostapiindexv1betausers.go - - tests/mockserver/internal/handler/pathpostapiindexv1bulkindexdocuments.go - - tests/mockserver/internal/handler/pathpostapiindexv1bulkindexgroups.go - - tests/mockserver/internal/handler/pathpostapiindexv1bulkindexmemberships.go - - tests/mockserver/internal/handler/pathpostapiindexv1bulkindexusers.go - - tests/mockserver/internal/handler/pathpostapiindexv1checkdocumentaccess.go - - tests/mockserver/internal/handler/pathpostapiindexv1deletedocument.go - - tests/mockserver/internal/handler/pathpostapiindexv1deletegroup.go - - tests/mockserver/internal/handler/pathpostapiindexv1deletemembership.go - - tests/mockserver/internal/handler/pathpostapiindexv1deleteuser.go - - tests/mockserver/internal/handler/pathpostapiindexv1getdatasourceconfig.go - - tests/mockserver/internal/handler/pathpostapiindexv1getdocumentcount.go - - tests/mockserver/internal/handler/pathpostapiindexv1getdocumentstatus.go - - tests/mockserver/internal/handler/pathpostapiindexv1getusercount.go - - tests/mockserver/internal/handler/pathpostapiindexv1indexdocument.go - - tests/mockserver/internal/handler/pathpostapiindexv1indexdocuments.go - - tests/mockserver/internal/handler/pathpostapiindexv1indexgroup.go - - tests/mockserver/internal/handler/pathpostapiindexv1indexmembership.go - - tests/mockserver/internal/handler/pathpostapiindexv1indexuser.go - - tests/mockserver/internal/handler/pathpostapiindexv1processalldocuments.go - - tests/mockserver/internal/handler/pathpostapiindexv1processallemployeesandteams.go - - tests/mockserver/internal/handler/pathpostapiindexv1processallmemberships.go - - tests/mockserver/internal/handler/pathpostapiindexv1rotatetoken.go - - tests/mockserver/internal/handler/pathpostapiindexv1updatepermissions.go - - tests/mockserver/internal/handler/pathpostrestapiv1activity.go - - tests/mockserver/internal/handler/pathpostrestapiv1addcollectionitems.go - - tests/mockserver/internal/handler/pathpostrestapiv1addverificationreminder.go - - tests/mockserver/internal/handler/pathpostrestapiv1adminsearch.go - - tests/mockserver/internal/handler/pathpostrestapiv1autocomplete.go - - tests/mockserver/internal/handler/pathpostrestapiv1chat.go - - tests/mockserver/internal/handler/pathpostrestapiv1createannouncement.go - - tests/mockserver/internal/handler/pathpostrestapiv1createanswer.go - - tests/mockserver/internal/handler/pathpostrestapiv1createauthtoken.go - - tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go - - tests/mockserver/internal/handler/pathpostrestapiv1createshortcut.go - - tests/mockserver/internal/handler/pathpostrestapiv1deleteallchats.go - - tests/mockserver/internal/handler/pathpostrestapiv1deleteannouncement.go - - tests/mockserver/internal/handler/pathpostrestapiv1deleteanswer.go - - tests/mockserver/internal/handler/pathpostrestapiv1deletechatfiles.go - - tests/mockserver/internal/handler/pathpostrestapiv1deletechats.go - - tests/mockserver/internal/handler/pathpostrestapiv1deletecollection.go - - tests/mockserver/internal/handler/pathpostrestapiv1deletecollectionitem.go - - tests/mockserver/internal/handler/pathpostrestapiv1deleteshortcut.go - - tests/mockserver/internal/handler/pathpostrestapiv1editanswer.go - - tests/mockserver/internal/handler/pathpostrestapiv1editcollection.go - - tests/mockserver/internal/handler/pathpostrestapiv1editcollectionitem.go - - tests/mockserver/internal/handler/pathpostrestapiv1editpin.go - - tests/mockserver/internal/handler/pathpostrestapiv1feed.go - - tests/mockserver/internal/handler/pathpostrestapiv1feedback.go - - tests/mockserver/internal/handler/pathpostrestapiv1getanswer.go - - tests/mockserver/internal/handler/pathpostrestapiv1getchat.go - - tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go - - tests/mockserver/internal/handler/pathpostrestapiv1getchatfiles.go - - tests/mockserver/internal/handler/pathpostrestapiv1getcollection.go - - tests/mockserver/internal/handler/pathpostrestapiv1getdocpermissions.go - - tests/mockserver/internal/handler/pathpostrestapiv1getdocuments.go - - tests/mockserver/internal/handler/pathpostrestapiv1getdocumentsbyfacets.go - - tests/mockserver/internal/handler/pathpostrestapiv1getpin.go - - tests/mockserver/internal/handler/pathpostrestapiv1getshortcut.go - - tests/mockserver/internal/handler/pathpostrestapiv1insights.go - - tests/mockserver/internal/handler/pathpostrestapiv1listanswers.go - - tests/mockserver/internal/handler/pathpostrestapiv1listchats.go - - tests/mockserver/internal/handler/pathpostrestapiv1listcollections.go - - tests/mockserver/internal/handler/pathpostrestapiv1listentities.go - - tests/mockserver/internal/handler/pathpostrestapiv1listpins.go - - tests/mockserver/internal/handler/pathpostrestapiv1listshortcuts.go - - tests/mockserver/internal/handler/pathpostrestapiv1listverifications.go - - tests/mockserver/internal/handler/pathpostrestapiv1messages.go - - tests/mockserver/internal/handler/pathpostrestapiv1people.go - - tests/mockserver/internal/handler/pathpostrestapiv1pin.go - - tests/mockserver/internal/handler/pathpostrestapiv1recommendations.go - - tests/mockserver/internal/handler/pathpostrestapiv1search.go - - tests/mockserver/internal/handler/pathpostrestapiv1summarize.go - - tests/mockserver/internal/handler/pathpostrestapiv1toolscall.go - - tests/mockserver/internal/handler/pathpostrestapiv1unpin.go - - tests/mockserver/internal/handler/pathpostrestapiv1updateannouncement.go - - tests/mockserver/internal/handler/pathpostrestapiv1updateshortcut.go - - tests/mockserver/internal/handler/pathpostrestapiv1verify.go - - tests/mockserver/internal/handler/values/files.go - - tests/mockserver/internal/logging/doc.go - - tests/mockserver/internal/logging/formats.go - - tests/mockserver/internal/logging/http_file.go - - tests/mockserver/internal/logging/http_logger.go - - tests/mockserver/internal/logging/levels.go - - tests/mockserver/internal/logging/logger.go - - tests/mockserver/internal/logging/oas_operation.go - - tests/mockserver/internal/logging/oas_operation_call.go - - tests/mockserver/internal/sdk/models/components/activity.go - - tests/mockserver/internal/sdk/models/components/activityevent.go - - tests/mockserver/internal/sdk/models/components/activityeventparams.go - - tests/mockserver/internal/sdk/models/components/addcollectionitemserror.go - - tests/mockserver/internal/sdk/models/components/addcollectionitemsrequest.go - - tests/mockserver/internal/sdk/models/components/addcollectionitemsresponse.go - - tests/mockserver/internal/sdk/models/components/additionalfielddefinition.go - - tests/mockserver/internal/sdk/models/components/agent.go - - tests/mockserver/internal/sdk/models/components/agentconfig.go - - tests/mockserver/internal/sdk/models/components/agentexecutionstatus.go - - tests/mockserver/internal/sdk/models/components/agentrun.go - - tests/mockserver/internal/sdk/models/components/agentruncreate.go - - tests/mockserver/internal/sdk/models/components/agentrunwaitresponse.go - - tests/mockserver/internal/sdk/models/components/agentschemas.go - - tests/mockserver/internal/sdk/models/components/aiappactioncounts.go - - tests/mockserver/internal/sdk/models/components/aiappsinsightsresponse.go - - tests/mockserver/internal/sdk/models/components/aiinsightsresponse.go - - tests/mockserver/internal/sdk/models/components/allowlistoptions.go - - tests/mockserver/internal/sdk/models/components/announcement.go - - tests/mockserver/internal/sdk/models/components/anonymousevent.go - - tests/mockserver/internal/sdk/models/components/answer.go - - tests/mockserver/internal/sdk/models/components/answerboard.go - - tests/mockserver/internal/sdk/models/components/answercreationdata.go - - tests/mockserver/internal/sdk/models/components/answerlike.go - - tests/mockserver/internal/sdk/models/components/answerlikes.go - - tests/mockserver/internal/sdk/models/components/answerresult.go - - tests/mockserver/internal/sdk/models/components/appresult.go - - tests/mockserver/internal/sdk/models/components/authconfig.go - - tests/mockserver/internal/sdk/models/components/authtoken.go - - tests/mockserver/internal/sdk/models/components/autocompleterequest.go - - tests/mockserver/internal/sdk/models/components/autocompleteresponse.go - - tests/mockserver/internal/sdk/models/components/autocompleteresult.go - - tests/mockserver/internal/sdk/models/components/autocompleteresultgroup.go - - tests/mockserver/internal/sdk/models/components/badge.go - - tests/mockserver/internal/sdk/models/components/bulkindexdocumentsrequest.go - - tests/mockserver/internal/sdk/models/components/bulkindexemployeesrequest.go - - tests/mockserver/internal/sdk/models/components/bulkindexgroupsrequest.go - - tests/mockserver/internal/sdk/models/components/bulkindexmembershipsrequest.go - - tests/mockserver/internal/sdk/models/components/bulkindexshortcutsrequest.go - - tests/mockserver/internal/sdk/models/components/bulkindexteamsrequest.go - - tests/mockserver/internal/sdk/models/components/bulkindexusersrequest.go - - tests/mockserver/internal/sdk/models/components/bulkuploadhistoryevent.go - - tests/mockserver/internal/sdk/models/components/calendarattendee.go - - tests/mockserver/internal/sdk/models/components/calendarattendees.go - - tests/mockserver/internal/sdk/models/components/calendarevent.go - - tests/mockserver/internal/sdk/models/components/canonicalizingregextype.go - - tests/mockserver/internal/sdk/models/components/channelinviteinfo.go - - tests/mockserver/internal/sdk/models/components/chat.go - - tests/mockserver/internal/sdk/models/components/chatfile.go - - tests/mockserver/internal/sdk/models/components/chatfilefailurereason.go - - tests/mockserver/internal/sdk/models/components/chatfilemetadata.go - - tests/mockserver/internal/sdk/models/components/chatfilestatus.go - - tests/mockserver/internal/sdk/models/components/chatmessage.go - - tests/mockserver/internal/sdk/models/components/chatmessagecitation.go - - tests/mockserver/internal/sdk/models/components/chatmessagefragment.go - - tests/mockserver/internal/sdk/models/components/chatmetadata.go - - tests/mockserver/internal/sdk/models/components/chatmetadataresult.go - - tests/mockserver/internal/sdk/models/components/chatrequest.go - - tests/mockserver/internal/sdk/models/components/chatresponse.go - - tests/mockserver/internal/sdk/models/components/chatrestrictionfilters.go - - tests/mockserver/internal/sdk/models/components/chatresult.go - - tests/mockserver/internal/sdk/models/components/chatsuggestion.go - - tests/mockserver/internal/sdk/models/components/chatzerostatesuggestionoptions.go - - tests/mockserver/internal/sdk/models/components/checkdocumentaccessrequest.go - - tests/mockserver/internal/sdk/models/components/checkdocumentaccessresponse.go - - tests/mockserver/internal/sdk/models/components/clustergroup.go - - tests/mockserver/internal/sdk/models/components/clustertypeenum.go - - tests/mockserver/internal/sdk/models/components/code.go - - tests/mockserver/internal/sdk/models/components/codeline.go - - tests/mockserver/internal/sdk/models/components/collection.go - - tests/mockserver/internal/sdk/models/components/collectionerror.go - - tests/mockserver/internal/sdk/models/components/collectionitem.go - - tests/mockserver/internal/sdk/models/components/collectionitemdescriptor.go - - tests/mockserver/internal/sdk/models/components/collectionpinmetadata.go - - tests/mockserver/internal/sdk/models/components/collectionpinnablecategories.go - - tests/mockserver/internal/sdk/models/components/collectionpinnabletargets.go - - tests/mockserver/internal/sdk/models/components/collectionpinnedmetadata.go - - tests/mockserver/internal/sdk/models/components/collectionpintarget.go - - tests/mockserver/internal/sdk/models/components/commentdefinition.go - - tests/mockserver/internal/sdk/models/components/communicationchannel.go - - tests/mockserver/internal/sdk/models/components/company.go - - tests/mockserver/internal/sdk/models/components/conferencedata.go - - tests/mockserver/internal/sdk/models/components/connectortype.go - - tests/mockserver/internal/sdk/models/components/contentdefinition.go - - tests/mockserver/internal/sdk/models/components/contentinsightsresponse.go - - tests/mockserver/internal/sdk/models/components/contenttype.go - - tests/mockserver/internal/sdk/models/components/countinfo.go - - tests/mockserver/internal/sdk/models/components/createannouncementrequest.go - - tests/mockserver/internal/sdk/models/components/createanswerrequest.go - - tests/mockserver/internal/sdk/models/components/createauthtokenresponse.go - - tests/mockserver/internal/sdk/models/components/createcollectionrequest.go - - tests/mockserver/internal/sdk/models/components/createdlpreportrequest.go - - tests/mockserver/internal/sdk/models/components/createdlpreportresponse.go - - tests/mockserver/internal/sdk/models/components/createshortcutrequest.go - - tests/mockserver/internal/sdk/models/components/createshortcutresponse.go - - tests/mockserver/internal/sdk/models/components/customdatasourceconfig.go - - tests/mockserver/internal/sdk/models/components/customdatavalue.go - - tests/mockserver/internal/sdk/models/components/customentity.go - - tests/mockserver/internal/sdk/models/components/customentitymetadata.go - - tests/mockserver/internal/sdk/models/components/customer.go - - tests/mockserver/internal/sdk/models/components/customermetadata.go - - tests/mockserver/internal/sdk/models/components/customfielddata.go - - tests/mockserver/internal/sdk/models/components/customfieldvalue.go - - tests/mockserver/internal/sdk/models/components/customfieldvaluehyperlink.go - - tests/mockserver/internal/sdk/models/components/customfieldvalueperson.go - - tests/mockserver/internal/sdk/models/components/customfieldvaluestr.go - - tests/mockserver/internal/sdk/models/components/customproperty.go - - tests/mockserver/internal/sdk/models/components/datasourcebulkmembershipdefinition.go - - tests/mockserver/internal/sdk/models/components/datasourcegroupdefinition.go - - tests/mockserver/internal/sdk/models/components/datasourcemembershipdefinition.go - - tests/mockserver/internal/sdk/models/components/datasourceobjecttypedocumentcountentry.go - - tests/mockserver/internal/sdk/models/components/datasourceprofile.go - - tests/mockserver/internal/sdk/models/components/datasourceuserdefinition.go - - tests/mockserver/internal/sdk/models/components/debugdatasourcestatusidentityresponsecomponent.go - - tests/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go - - tests/mockserver/internal/sdk/models/components/debugdocumentrequest.go - - tests/mockserver/internal/sdk/models/components/debugdocumentresponse.go - - tests/mockserver/internal/sdk/models/components/debugdocumentsrequest.go - - tests/mockserver/internal/sdk/models/components/debugdocumentsresponse.go - - tests/mockserver/internal/sdk/models/components/debugdocumentsresponseitem.go - - tests/mockserver/internal/sdk/models/components/debuguserrequest.go - - tests/mockserver/internal/sdk/models/components/debuguserresponse.go - - tests/mockserver/internal/sdk/models/components/deleteannouncementrequest.go - - tests/mockserver/internal/sdk/models/components/deleteanswerrequest.go - - tests/mockserver/internal/sdk/models/components/deletechatfilesrequest.go - - tests/mockserver/internal/sdk/models/components/deletechatsrequest.go - - tests/mockserver/internal/sdk/models/components/deletecollectionitemrequest.go - - tests/mockserver/internal/sdk/models/components/deletecollectionitemresponse.go - - tests/mockserver/internal/sdk/models/components/deletecollectionrequest.go - - tests/mockserver/internal/sdk/models/components/deletedocumentrequest.go - - tests/mockserver/internal/sdk/models/components/deleteemployeerequest.go - - tests/mockserver/internal/sdk/models/components/deletegrouprequest.go - - tests/mockserver/internal/sdk/models/components/deletemembershiprequest.go - - tests/mockserver/internal/sdk/models/components/deleteshortcutrequest.go - - tests/mockserver/internal/sdk/models/components/deleteteamrequest.go - - tests/mockserver/internal/sdk/models/components/deleteuserrequest.go - - tests/mockserver/internal/sdk/models/components/digest.go - - tests/mockserver/internal/sdk/models/components/digestsection.go - - tests/mockserver/internal/sdk/models/components/digestupdate.go - - tests/mockserver/internal/sdk/models/components/disambiguation.go - - tests/mockserver/internal/sdk/models/components/displayablelistitemuiconfig.go - - tests/mockserver/internal/sdk/models/components/dlpconfig.go - - tests/mockserver/internal/sdk/models/components/dlpfrequency.go - - tests/mockserver/internal/sdk/models/components/dlpperson.go - - tests/mockserver/internal/sdk/models/components/dlppersonmetadata.go - - tests/mockserver/internal/sdk/models/components/dlpreport.go - - tests/mockserver/internal/sdk/models/components/dlpreportstatus.go - - tests/mockserver/internal/sdk/models/components/dlpsimpleresult.go - - tests/mockserver/internal/sdk/models/components/document.go - - tests/mockserver/internal/sdk/models/components/documentcontent.go - - tests/mockserver/internal/sdk/models/components/documentdefinition.go - - tests/mockserver/internal/sdk/models/components/documentinsight.go - - tests/mockserver/internal/sdk/models/components/documentinteractions.go - - tests/mockserver/internal/sdk/models/components/documentinteractionsdefinition.go - - tests/mockserver/internal/sdk/models/components/documentmetadata.go - - tests/mockserver/internal/sdk/models/components/documentorerrorunion.go - - tests/mockserver/internal/sdk/models/components/documentpermissionsdefinition.go - - tests/mockserver/internal/sdk/models/components/documentsection.go - - tests/mockserver/internal/sdk/models/components/documentspecunion.go - - tests/mockserver/internal/sdk/models/components/documentstatusresponse.go - - tests/mockserver/internal/sdk/models/components/documentvisibility.go - - tests/mockserver/internal/sdk/models/components/documentvisibilityoverride.go - - tests/mockserver/internal/sdk/models/components/documentvisibilityupdateresult.go - - tests/mockserver/internal/sdk/models/components/editanswerrequest.go - - tests/mockserver/internal/sdk/models/components/editcollectionitemrequest.go - - tests/mockserver/internal/sdk/models/components/editcollectionitemresponse.go - - tests/mockserver/internal/sdk/models/components/editcollectionrequest.go - - tests/mockserver/internal/sdk/models/components/editcollectionresponse.go - - tests/mockserver/internal/sdk/models/components/editpinrequest.go - - tests/mockserver/internal/sdk/models/components/employeeinfodefinition.go - - tests/mockserver/internal/sdk/models/components/employeeteaminfo.go - - tests/mockserver/internal/sdk/models/components/entitiessortorder.go - - tests/mockserver/internal/sdk/models/components/entityrelationship.go - - tests/mockserver/internal/sdk/models/components/entitytype.go - - tests/mockserver/internal/sdk/models/components/errormessage.go - - tests/mockserver/internal/sdk/models/components/eventclassification.go - - tests/mockserver/internal/sdk/models/components/eventclassificationname.go - - tests/mockserver/internal/sdk/models/components/eventstrategyname.go - - tests/mockserver/internal/sdk/models/components/externalsharingoptions.go - - tests/mockserver/internal/sdk/models/components/externalshortcut.go - - tests/mockserver/internal/sdk/models/components/extractedqna.go - - tests/mockserver/internal/sdk/models/components/facetbucket.go - - tests/mockserver/internal/sdk/models/components/facetbucketfilter.go - - tests/mockserver/internal/sdk/models/components/facetfilter.go - - tests/mockserver/internal/sdk/models/components/facetfilterset.go - - tests/mockserver/internal/sdk/models/components/facetfiltervalue.go - - tests/mockserver/internal/sdk/models/components/facetresult.go - - tests/mockserver/internal/sdk/models/components/facetvalue.go - - tests/mockserver/internal/sdk/models/components/favoriteinfo.go - - tests/mockserver/internal/sdk/models/components/feedback.go - - tests/mockserver/internal/sdk/models/components/feedbackchatexchange.go - - tests/mockserver/internal/sdk/models/components/feedentry.go - - tests/mockserver/internal/sdk/models/components/feedrequest.go - - tests/mockserver/internal/sdk/models/components/feedrequestoptions.go - - tests/mockserver/internal/sdk/models/components/feedresponse.go - - tests/mockserver/internal/sdk/models/components/feedresult.go - - tests/mockserver/internal/sdk/models/components/followupaction.go - - tests/mockserver/internal/sdk/models/components/generatedattachment.go - - tests/mockserver/internal/sdk/models/components/generatedattachmentcontent.go - - tests/mockserver/internal/sdk/models/components/generatedqna.go - - tests/mockserver/internal/sdk/models/components/getanswererror.go - - tests/mockserver/internal/sdk/models/components/getanswerrequest.go - - tests/mockserver/internal/sdk/models/components/getanswerresponse.go - - tests/mockserver/internal/sdk/models/components/getchatapplicationrequest.go - - tests/mockserver/internal/sdk/models/components/getchatapplicationresponse.go - - tests/mockserver/internal/sdk/models/components/getchatfilesrequest.go - - tests/mockserver/internal/sdk/models/components/getchatfilesresponse.go - - tests/mockserver/internal/sdk/models/components/getchatrequest.go - - tests/mockserver/internal/sdk/models/components/getchatresponse.go - - tests/mockserver/internal/sdk/models/components/getcollectionrequest.go - - tests/mockserver/internal/sdk/models/components/getcollectionresponse.go - - tests/mockserver/internal/sdk/models/components/getdatasourceconfigrequest.go - - tests/mockserver/internal/sdk/models/components/getdlpreportresponse.go - - tests/mockserver/internal/sdk/models/components/getdocpermissionsrequest.go - - tests/mockserver/internal/sdk/models/components/getdocpermissionsresponse.go - - tests/mockserver/internal/sdk/models/components/getdocumentcountrequest.go - - tests/mockserver/internal/sdk/models/components/getdocumentcountresponse.go - - tests/mockserver/internal/sdk/models/components/getdocumentsbyfacetsrequest.go - - tests/mockserver/internal/sdk/models/components/getdocumentsbyfacetsresponse.go - - tests/mockserver/internal/sdk/models/components/getdocumentsrequest.go - - tests/mockserver/internal/sdk/models/components/getdocumentsresponse.go - - tests/mockserver/internal/sdk/models/components/getdocumentstatusrequest.go - - tests/mockserver/internal/sdk/models/components/getdocumentstatusresponse.go - - tests/mockserver/internal/sdk/models/components/getdocumentvisibilityoverridesresponse.go - - tests/mockserver/internal/sdk/models/components/getpinrequest.go - - tests/mockserver/internal/sdk/models/components/getpinresponse.go - - tests/mockserver/internal/sdk/models/components/getshortcutrequestunion.go - - tests/mockserver/internal/sdk/models/components/getshortcutresponse.go - - tests/mockserver/internal/sdk/models/components/getusercountrequest.go - - tests/mockserver/internal/sdk/models/components/getusercountresponse.go - - tests/mockserver/internal/sdk/models/components/gleanassistinsightsresponse.go - - tests/mockserver/internal/sdk/models/components/gleandataerror.go - - tests/mockserver/internal/sdk/models/components/grantpermission.go - - tests/mockserver/internal/sdk/models/components/greenlistusersrequest.go - - tests/mockserver/internal/sdk/models/components/group.go - - tests/mockserver/internal/sdk/models/components/grouptype.go - - tests/mockserver/internal/sdk/models/components/hotword.go - - tests/mockserver/internal/sdk/models/components/hotwordproximity.go - - tests/mockserver/internal/sdk/models/components/httpmetadata.go - - tests/mockserver/internal/sdk/models/components/iconconfig.go - - tests/mockserver/internal/sdk/models/components/indexdocumentrequest.go - - tests/mockserver/internal/sdk/models/components/indexdocumentsrequest.go - - tests/mockserver/internal/sdk/models/components/indexemployeerequest.go - - tests/mockserver/internal/sdk/models/components/indexgrouprequest.go - - tests/mockserver/internal/sdk/models/components/indexingshortcut.go - - tests/mockserver/internal/sdk/models/components/indexmembershiprequest.go - - tests/mockserver/internal/sdk/models/components/indexstatus.go - - tests/mockserver/internal/sdk/models/components/indexteamrequest.go - - tests/mockserver/internal/sdk/models/components/indexuserrequest.go - - tests/mockserver/internal/sdk/models/components/inputoptions.go - - tests/mockserver/internal/sdk/models/components/insightsagentsrequestoptions.go - - tests/mockserver/internal/sdk/models/components/insightsaiapprequestoptions.go - - tests/mockserver/internal/sdk/models/components/insightsrequest.go - - tests/mockserver/internal/sdk/models/components/insightsresponse.go - - tests/mockserver/internal/sdk/models/components/invalidoperatorvalueerror.go - - tests/mockserver/internal/sdk/models/components/inviteinfo.go - - tests/mockserver/internal/sdk/models/components/labeledcountinfo.go - - tests/mockserver/internal/sdk/models/components/listanswersrequest.go - - tests/mockserver/internal/sdk/models/components/listanswersresponse.go - - tests/mockserver/internal/sdk/models/components/listchatsresponse.go - - tests/mockserver/internal/sdk/models/components/listcollectionsrequest.go - - tests/mockserver/internal/sdk/models/components/listcollectionsresponse.go - - tests/mockserver/internal/sdk/models/components/listdlpreportsresponse.go - - tests/mockserver/internal/sdk/models/components/listentitiesrequest.go - - tests/mockserver/internal/sdk/models/components/listentitiesresponse.go - - tests/mockserver/internal/sdk/models/components/listpinsresponse.go - - tests/mockserver/internal/sdk/models/components/listshortcutspaginatedrequest.go - - tests/mockserver/internal/sdk/models/components/listshortcutspaginatedresponse.go - - tests/mockserver/internal/sdk/models/components/manualfeedbackinfo.go - - tests/mockserver/internal/sdk/models/components/manualfeedbacksidebysideinfo.go - - tests/mockserver/internal/sdk/models/components/meeting.go - - tests/mockserver/internal/sdk/models/components/message.go - - tests/mockserver/internal/sdk/models/components/messagesrequest.go - - tests/mockserver/internal/sdk/models/components/messagesresponse.go - - tests/mockserver/internal/sdk/models/components/objectdefinition.go - - tests/mockserver/internal/sdk/models/components/objectpermissions.go - - tests/mockserver/internal/sdk/models/components/operatormetadata.go - - tests/mockserver/internal/sdk/models/components/operatorscope.go - - tests/mockserver/internal/sdk/models/components/peoplerequest.go - - tests/mockserver/internal/sdk/models/components/peopleresponse.go - - tests/mockserver/internal/sdk/models/components/period.go - - tests/mockserver/internal/sdk/models/components/permissions.go - - tests/mockserver/internal/sdk/models/components/permissionsgroupintersectiondefinition.go - - tests/mockserver/internal/sdk/models/components/person.go - - tests/mockserver/internal/sdk/models/components/persondistance.go - - tests/mockserver/internal/sdk/models/components/personmetadata.go - - tests/mockserver/internal/sdk/models/components/personobject.go - - tests/mockserver/internal/sdk/models/components/personteam.go - - tests/mockserver/internal/sdk/models/components/persontoteamrelationship.go - - tests/mockserver/internal/sdk/models/components/pindocument.go - - tests/mockserver/internal/sdk/models/components/pinrequest.go - - tests/mockserver/internal/sdk/models/components/possiblevalue.go - - tests/mockserver/internal/sdk/models/components/processalldocumentsrequest.go - - tests/mockserver/internal/sdk/models/components/processallmembershipsrequest.go - - tests/mockserver/internal/sdk/models/components/processinghistoryevent.go - - tests/mockserver/internal/sdk/models/components/prompttemplate.go - - tests/mockserver/internal/sdk/models/components/prompttemplateresult.go - - tests/mockserver/internal/sdk/models/components/propertydefinition.go - - tests/mockserver/internal/sdk/models/components/propertygroup.go - - tests/mockserver/internal/sdk/models/components/queryinsight.go - - tests/mockserver/internal/sdk/models/components/queryinsightsresponse.go - - tests/mockserver/internal/sdk/models/components/querysuggestion.go - - tests/mockserver/internal/sdk/models/components/querysuggestionlist.go - - tests/mockserver/internal/sdk/models/components/quicklink.go - - tests/mockserver/internal/sdk/models/components/reaction.go - - tests/mockserver/internal/sdk/models/components/readpermission.go - - tests/mockserver/internal/sdk/models/components/recommendationsrequest.go - - tests/mockserver/internal/sdk/models/components/recommendationsrequestoptions.go - - tests/mockserver/internal/sdk/models/components/referencerange.go - - tests/mockserver/internal/sdk/models/components/relateddocuments.go - - tests/mockserver/internal/sdk/models/components/relatedobject.go - - tests/mockserver/internal/sdk/models/components/relatedobjectedge.go - - tests/mockserver/internal/sdk/models/components/relatedquestion.go - - tests/mockserver/internal/sdk/models/components/reminder.go - - tests/mockserver/internal/sdk/models/components/reminderrequest.go - - tests/mockserver/internal/sdk/models/components/reportstatusresponse.go - - tests/mockserver/internal/sdk/models/components/restrictionfilters.go - - tests/mockserver/internal/sdk/models/components/resultsdescription.go - - tests/mockserver/internal/sdk/models/components/resultsresponse.go - - tests/mockserver/internal/sdk/models/components/resulttab.go - - tests/mockserver/internal/sdk/models/components/rotatetokenresponse.go - - tests/mockserver/internal/sdk/models/components/scopetype.go - - tests/mockserver/internal/sdk/models/components/searchagentsrequest.go - - tests/mockserver/internal/sdk/models/components/searchagentsresponse.go - - tests/mockserver/internal/sdk/models/components/searchproviderinfo.go - - tests/mockserver/internal/sdk/models/components/searchrequest.go - - tests/mockserver/internal/sdk/models/components/searchrequestinputdetails.go - - tests/mockserver/internal/sdk/models/components/searchrequestoptions.go - - tests/mockserver/internal/sdk/models/components/searchresponse.go - - tests/mockserver/internal/sdk/models/components/searchresponsemetadata.go - - tests/mockserver/internal/sdk/models/components/searchresult.go - - tests/mockserver/internal/sdk/models/components/searchresultprominenceenum.go - - tests/mockserver/internal/sdk/models/components/searchresultsnippet.go - - tests/mockserver/internal/sdk/models/components/searchwarning.go - - tests/mockserver/internal/sdk/models/components/sectiontype.go - - tests/mockserver/internal/sdk/models/components/security.go - - tests/mockserver/internal/sdk/models/components/seenfeedbackinfo.go - - tests/mockserver/internal/sdk/models/components/sensitivecontentoptions.go - - tests/mockserver/internal/sdk/models/components/sensitiveexpression.go - - tests/mockserver/internal/sdk/models/components/sensitiveinfotype.go - - tests/mockserver/internal/sdk/models/components/sessioninfo.go - - tests/mockserver/internal/sdk/models/components/share.go - - tests/mockserver/internal/sdk/models/components/sharingoptions.go - - tests/mockserver/internal/sdk/models/components/shortcut.go - - tests/mockserver/internal/sdk/models/components/shortcuterror.go - - tests/mockserver/internal/sdk/models/components/shortcutinsight.go - - tests/mockserver/internal/sdk/models/components/shortcutinsightsresponse.go - - tests/mockserver/internal/sdk/models/components/shortcutmutableproperties.go - - tests/mockserver/internal/sdk/models/components/shortcutspaginationmetadata.go - - tests/mockserver/internal/sdk/models/components/sidebysideimplementation.go - - tests/mockserver/internal/sdk/models/components/socialnetwork.go - - tests/mockserver/internal/sdk/models/components/socialnetworkdefinition.go - - tests/mockserver/internal/sdk/models/components/sortoptions.go - - tests/mockserver/internal/sdk/models/components/structuredlink.go - - tests/mockserver/internal/sdk/models/components/structuredlocation.go - - tests/mockserver/internal/sdk/models/components/structuredresult.go - - tests/mockserver/internal/sdk/models/components/structuredtext.go - - tests/mockserver/internal/sdk/models/components/structuredtextitem.go - - tests/mockserver/internal/sdk/models/components/structuredtextmutableproperties.go - - tests/mockserver/internal/sdk/models/components/summarizerequest.go - - tests/mockserver/internal/sdk/models/components/summarizeresponse.go - - tests/mockserver/internal/sdk/models/components/summary.go - - tests/mockserver/internal/sdk/models/components/team.go - - tests/mockserver/internal/sdk/models/components/teamemail.go - - tests/mockserver/internal/sdk/models/components/teaminfodefinition.go - - tests/mockserver/internal/sdk/models/components/teammember.go - - tests/mockserver/internal/sdk/models/components/textrange.go - - tests/mockserver/internal/sdk/models/components/thumbnail.go - - tests/mockserver/internal/sdk/models/components/timeinterval.go - - tests/mockserver/internal/sdk/models/components/timepoint.go - - tests/mockserver/internal/sdk/models/components/timerange.go - - tests/mockserver/internal/sdk/models/components/tool.go - - tests/mockserver/internal/sdk/models/components/toolinfo.go - - tests/mockserver/internal/sdk/models/components/toolmetadata.go - - tests/mockserver/internal/sdk/models/components/toolparameter.go - - tests/mockserver/internal/sdk/models/components/toolscallparameter.go - - tests/mockserver/internal/sdk/models/components/toolscallrequest.go - - tests/mockserver/internal/sdk/models/components/toolscallresponse.go - - tests/mockserver/internal/sdk/models/components/toolsets.go - - tests/mockserver/internal/sdk/models/components/toolslistresponse.go - - tests/mockserver/internal/sdk/models/components/ugctype.go - - tests/mockserver/internal/sdk/models/components/unpin.go - - tests/mockserver/internal/sdk/models/components/updateannouncementrequest.go - - tests/mockserver/internal/sdk/models/components/updatedlpconfigrequest.go - - tests/mockserver/internal/sdk/models/components/updatedlpconfigresponse.go - - tests/mockserver/internal/sdk/models/components/updatedlpreportrequest.go - - tests/mockserver/internal/sdk/models/components/updatedlpreportresponse.go - - tests/mockserver/internal/sdk/models/components/updatedocumentvisibilityoverridesrequest.go - - tests/mockserver/internal/sdk/models/components/updatedocumentvisibilityoverridesresponse.go - - tests/mockserver/internal/sdk/models/components/updatepermissionsrequest.go - - tests/mockserver/internal/sdk/models/components/updateshortcutrequest.go - - tests/mockserver/internal/sdk/models/components/updateshortcutresponse.go - - tests/mockserver/internal/sdk/models/components/updatetype.go - - tests/mockserver/internal/sdk/models/components/uploadchatfilesrequest.go - - tests/mockserver/internal/sdk/models/components/uploadchatfilesresponse.go - - tests/mockserver/internal/sdk/models/components/uploadshortcutsrequest.go - - tests/mockserver/internal/sdk/models/components/uploadstatusenum.go - - tests/mockserver/internal/sdk/models/components/user.go - - tests/mockserver/internal/sdk/models/components/useractivity.go - - tests/mockserver/internal/sdk/models/components/useractivityinsight.go - - tests/mockserver/internal/sdk/models/components/usergeneratedcontentid.go - - tests/mockserver/internal/sdk/models/components/userinsightsresponse.go - - tests/mockserver/internal/sdk/models/components/userreferencedefinition.go - - tests/mockserver/internal/sdk/models/components/userrole.go - - tests/mockserver/internal/sdk/models/components/userrolespecification.go - - tests/mockserver/internal/sdk/models/components/userstatusresponse.go - - tests/mockserver/internal/sdk/models/components/userviewinfo.go - - tests/mockserver/internal/sdk/models/components/verification.go - - tests/mockserver/internal/sdk/models/components/verificationfeed.go - - tests/mockserver/internal/sdk/models/components/verificationmetadata.go - - tests/mockserver/internal/sdk/models/components/verifyrequest.go - - tests/mockserver/internal/sdk/models/components/viewerinfo.go - - tests/mockserver/internal/sdk/models/components/workflow.go - - tests/mockserver/internal/sdk/models/components/workflowfeedbackinfo.go - - tests/mockserver/internal/sdk/models/components/workflowresult.go - - tests/mockserver/internal/sdk/models/components/writeactionparameter.go - - tests/mockserver/internal/sdk/models/components/writepermission.go - - tests/mockserver/internal/sdk/models/operations/activity.go - - tests/mockserver/internal/sdk/models/operations/addcollectionitems.go - - tests/mockserver/internal/sdk/models/operations/addverificationreminder.go - - tests/mockserver/internal/sdk/models/operations/adminsearch.go - - tests/mockserver/internal/sdk/models/operations/autocomplete.go - - tests/mockserver/internal/sdk/models/operations/chat.go - - tests/mockserver/internal/sdk/models/operations/chatstream.go - - tests/mockserver/internal/sdk/models/operations/createandstreamrun.go - - tests/mockserver/internal/sdk/models/operations/createandwaitrun.go - - tests/mockserver/internal/sdk/models/operations/createannouncement.go - - tests/mockserver/internal/sdk/models/operations/createanswer.go - - tests/mockserver/internal/sdk/models/operations/createauthtoken.go - - tests/mockserver/internal/sdk/models/operations/createcollection.go - - tests/mockserver/internal/sdk/models/operations/createpolicy.go - - tests/mockserver/internal/sdk/models/operations/createreport.go - - tests/mockserver/internal/sdk/models/operations/createshortcut.go - - tests/mockserver/internal/sdk/models/operations/deleteallchats.go - - tests/mockserver/internal/sdk/models/operations/deleteannouncement.go - - tests/mockserver/internal/sdk/models/operations/deleteanswer.go - - tests/mockserver/internal/sdk/models/operations/deletechatfiles.go - - tests/mockserver/internal/sdk/models/operations/deletechats.go - - tests/mockserver/internal/sdk/models/operations/deletecollection.go - - tests/mockserver/internal/sdk/models/operations/deletecollectionitem.go - - tests/mockserver/internal/sdk/models/operations/deleteshortcut.go - - tests/mockserver/internal/sdk/models/operations/downloadpolicycsv.go - - tests/mockserver/internal/sdk/models/operations/downloadreportcsv.go - - tests/mockserver/internal/sdk/models/operations/editanswer.go - - tests/mockserver/internal/sdk/models/operations/editcollection.go - - tests/mockserver/internal/sdk/models/operations/editcollectionitem.go - - tests/mockserver/internal/sdk/models/operations/editpin.go - - tests/mockserver/internal/sdk/models/operations/feed.go - - tests/mockserver/internal/sdk/models/operations/feedback.go - - tests/mockserver/internal/sdk/models/operations/getagent.go - - tests/mockserver/internal/sdk/models/operations/getagentschemas.go - - tests/mockserver/internal/sdk/models/operations/getanswer.go - - tests/mockserver/internal/sdk/models/operations/getchat.go - - tests/mockserver/internal/sdk/models/operations/getchatapplication.go - - tests/mockserver/internal/sdk/models/operations/getchatfiles.go - - tests/mockserver/internal/sdk/models/operations/getcollection.go - - tests/mockserver/internal/sdk/models/operations/getdocpermissions.go - - tests/mockserver/internal/sdk/models/operations/getdocuments.go - - tests/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go - - tests/mockserver/internal/sdk/models/operations/getdocvisibility.go - - tests/mockserver/internal/sdk/models/operations/getpin.go - - tests/mockserver/internal/sdk/models/operations/getpolicy.go - - tests/mockserver/internal/sdk/models/operations/getreportstatus.go - - tests/mockserver/internal/sdk/models/operations/getrestapiv1toolslist.go - - tests/mockserver/internal/sdk/models/operations/getshortcut.go - - tests/mockserver/internal/sdk/models/operations/insights.go - - tests/mockserver/internal/sdk/models/operations/listanswers.go - - tests/mockserver/internal/sdk/models/operations/listchats.go - - tests/mockserver/internal/sdk/models/operations/listcollections.go - - tests/mockserver/internal/sdk/models/operations/listentities.go - - tests/mockserver/internal/sdk/models/operations/listpins.go - - tests/mockserver/internal/sdk/models/operations/listpolicies.go - - tests/mockserver/internal/sdk/models/operations/listshortcuts.go - - tests/mockserver/internal/sdk/models/operations/listverifications.go - - tests/mockserver/internal/sdk/models/operations/messages.go - - tests/mockserver/internal/sdk/models/operations/people.go - - tests/mockserver/internal/sdk/models/operations/pin.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1adddatasource.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1betausers.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexdocuments.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexemployees.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexgroups.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexmemberships.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexshortcuts.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexteams.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexusers.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1checkdocumentaccess.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocument.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocuments.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcestatus.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourceuser.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1deletedocument.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteemployee.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1deletegroup.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1deletemembership.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteteam.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteuser.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1getdatasourceconfig.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1getdocumentcount.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1getdocumentstatus.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1getusercount.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1indexdocument.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1indexdocuments.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1indexemployee.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1indexgroup.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1indexmembership.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1indexteam.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1indexuser.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1processalldocuments.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1processallemployeesandteams.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1processallmemberships.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1rotatetoken.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1updatepermissions.go - - tests/mockserver/internal/sdk/models/operations/postapiindexv1uploadshortcuts.go - - tests/mockserver/internal/sdk/models/operations/postrestapiv1toolscall.go - - tests/mockserver/internal/sdk/models/operations/recommendations.go - - tests/mockserver/internal/sdk/models/operations/search.go - - tests/mockserver/internal/sdk/models/operations/searchagents.go - - tests/mockserver/internal/sdk/models/operations/setdocvisibility.go - - tests/mockserver/internal/sdk/models/operations/summarize.go - - tests/mockserver/internal/sdk/models/operations/unpin.go - - tests/mockserver/internal/sdk/models/operations/updateannouncement.go - - tests/mockserver/internal/sdk/models/operations/updatepolicy.go - - tests/mockserver/internal/sdk/models/operations/updateshortcut.go - - tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go - - tests/mockserver/internal/sdk/models/operations/verify.go - - tests/mockserver/internal/sdk/models/sdkerrors/collectionerror.go - - tests/mockserver/internal/sdk/models/sdkerrors/gleandataerror.go - - tests/mockserver/internal/sdk/types/bigint.go - - tests/mockserver/internal/sdk/types/date.go - - tests/mockserver/internal/sdk/types/datetime.go - - tests/mockserver/internal/sdk/types/decimal.go - - tests/mockserver/internal/sdk/types/jsonl/jsonl.go - - tests/mockserver/internal/sdk/types/pointers.go - - tests/mockserver/internal/sdk/utils/json.go - - tests/mockserver/internal/sdk/utils/reflect.go - - tests/mockserver/internal/sdk/utils/sort.go - - tests/mockserver/internal/server/doc.go - - tests/mockserver/internal/server/generated_handlers.go - - tests/mockserver/internal/server/internal_handlers.go - - tests/mockserver/internal/server/server.go - - tests/mockserver/internal/server/server_option.go - - tests/mockserver/internal/server/templates/log/index.html.tmpl - - tests/mockserver/internal/server/templates/log/operation.html.tmpl - - tests/mockserver/internal/server/templates/log/style.css.tmpl - - tests/mockserver/internal/tracking/requesttracker.go - - tests/mockserver/main.go examples: activity: speakeasy-default-activity: @@ -3000,7 +2320,7 @@ examples: insights: speakeasy-default-insights: requestBody: - application/json: {"categories": ["COLLECTIONS", "SHORTCUTS", "ANNOUNCEMENTS"]} + application/json: {} responses: "200": application/json: {"users": {"activityInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123", "relatedDocuments": [{"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 867945, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 617092, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}], "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": ""}, {"inputAlias": ""}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}]}, {"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 867945, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 617092, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}], "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": ""}, {"inputAlias": ""}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}]}], "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "customFields": [{"label": "", "values": [{}], "displayable": true}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "ALL"}], "inactiveInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "ALL"}, {"user": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "ALL"}, {"user": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "ALL"}]}, "content": {"documentInsights": [{"document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639, "sharer": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}]}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}}, {"document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639, "sharer": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}]}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}}, {"document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639, "sharer": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}]}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}}]}, "collections": {"documentInsights": [{"document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639, "sharer": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}]}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}}]}, "collectionsV2": {"documentInsights": [{"document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639, "sharer": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}]}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}}, {"document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639, "sharer": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}]}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}}]}, "shortcuts": {"shortcutInsights": [{"shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "destinationDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 315726}}}, "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}}, {"shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "destinationDocument": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 315726}}}, "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}}]}, "announcements": {"documentInsights": [{"document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639, "sharer": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}]}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}}, {"document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639, "sharer": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}]}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}}, {"document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639, "sharer": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}]}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}}]}, "answers": {"documentInsights": [{"document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639, "sharer": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}]}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}}, {"document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "author": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "owner": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": "", "attribution": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "assignedTo": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}], "removedRoles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "creator": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "items": [{"collectionId": 954550, "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "shortcut": {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "roles": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}, {"person": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639, "sharer": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}]}, "verification": {"state": "DEPRECATED", "metadata": {"lastVerifier": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "requestor": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}, {"inputAlias": "", "createdBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "updatedBy": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}], "customData": {"someCustomField": {}}, "contactPerson": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}}}}]}, "ai": {"assistantInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}, {"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "ALL"}]}, "aiApps": {"aiAppInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "SEARCH"}, {"user": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "SEARCH"}, {"user": {"name": "George Clooney", "obfuscatedId": "abc123", "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "SEARCH"}]}, "gleanAssist": {"activityInsights": [{"user": {"name": "George Clooney", "obfuscatedId": "abc123", "relatedDocuments": [{"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 867945, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 617092, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}], "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": ""}, {"inputAlias": ""}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}]}, {"querySuggestion": {"query": "app:github type:pull author:mortimer", "searchProviderInfo": {"name": "Google", "searchLinkUrlTemplate": "https://www.google.com/search?q={query}&hl=en"}, "label": "Mortimer's PRs", "datasource": "github", "requestOptions": {"datasourceFilter": "JIRA", "datasourcesFilter": ["JIRA"], "queryOverridesFacetFilters": true, "facetFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "facetFilterSets": [{"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}, {"filters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}]}], "facetBucketSize": 867945, "authTokens": [{"accessToken": "123abc", "datasource": "gmail", "scope": "email profile https://www.googleapis.com/auth/gmail.readonly", "tokenType": "Bearer", "authUser": "1"}]}, "ranges": [{"startIndex": 617092, "document": {"metadata": {"datasource": "datasource", "objectType": "Feature Request", "container": "container", "parentId": "JIRA_EN-1337", "mimeType": "mimeType", "documentId": "documentId", "createTime": "2000-01-23T04:56:07.000Z", "updateTime": "2000-01-23T04:56:07.000Z", "components": ["Backend", "Networking"], "status": "[\"Done\"]", "pins": [{"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}, {"audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "documentId": ""}], "collections": [{"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}, {"name": "", "description": "whoever peppery lest knife publication faint concerning", "addedRoles": [{"role": "OWNER"}], "removedRoles": [{"role": "ANSWER_MODERATOR"}, {"role": "ANSWER_MODERATOR"}], "audienceFilters": [{"fieldName": "type", "values": [{"value": "Spreadsheet", "relationType": "EQUALS"}, {"value": "Presentation", "relationType": "EQUALS"}]}], "id": 554319, "items": [{"collectionId": 954550, "shortcut": {"inputAlias": "", "roles": [{"role": "OWNER"}, {"role": "OWNER"}, {"role": "OWNER"}]}, "itemType": "COLLECTION"}]}], "interactions": {"reacts": [{}, {}], "shares": [{"numDaysAgo": 448639}]}, "verification": {"state": "DEPRECATED", "metadata": {"reminders": [{"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}, {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 640737}], "lastReminder": {"assignee": {"name": "George Clooney", "obfuscatedId": "abc123"}, "remindAt": 872106}}}, "shortcuts": [{"inputAlias": ""}, {"inputAlias": ""}], "customData": {"someCustomField": {}}}}}], "inputDetails": {"hasCopyPaste": true}}, "results": [{"title": "title", "url": "https://example.com/foo/bar", "nativeAppUrl": "slack://foo/bar", "snippets": [{"mimeType": "mimeType", "snippet": "snippet"}]}]}], "metadata": {"type": "FULL_TIME", "title": "Actor", "department": "Movies", "email": "george@example.com", "location": "Hollywood, CA", "phone": "6505551234", "photoUrl": "https://example.com/george.jpg", "startDate": "2000-01-23", "datasourceProfile": [{"datasource": "github", "handle": ""}], "querySuggestions": {"suggestions": [{"query": "app:github type:pull author:mortimer", "label": "Mortimer's PRs", "datasource": "github"}]}, "inviteInfo": {"invites": [{}, {}, {}]}, "customFields": [{"label": "", "values": [{}], "displayable": true}], "badges": [{"key": "deployment_name_new_hire", "displayName": "New hire", "iconConfig": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}]}}, "activity": "ALL"}]}} @@ -3559,4 +2879,4 @@ generatedTests: listpolicies: "2025-06-09T18:03:44Z" releaseNotes: | ## Java SDK Changes Detected: - * `glean.client.search.retrieveFeed()`: `response.results.[].primaryEntry.digest.sections.[].channelType` **Added** + * `glean.client.insights.retrieve()`: `request` **Changed** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index e0c3a387..ed852504 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -22,7 +22,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 0.9.1 + version: 0.10.0 additionalDependencies: [] additionalPlugins: [] artifactID: glean-api-client diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 2114919e..078b5cac 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -1366,8 +1366,8 @@ paths: post: tags: - Insights - summary: Read insights - description: Reads the aggregate information for each user, query, and content. + summary: Get insights + description: Gets the aggregate usage insights data displayed in the Insights Dashboards. operationId: insights x-visibility: Public x-codegen-request-body-name: payload @@ -1377,7 +1377,7 @@ paths: application/json: schema: $ref: "#/components/schemas/InsightsRequest" - description: Includes request params for insights dashboard data. + description: Includes request parameters for insights requests. required: true x-exportParamName: InsightsRequest responses: @@ -3190,6 +3190,7 @@ paths: description: Conflict x-speakeasy-name-override: upload x-speakeasy-group: indexing.shortcuts + /api/index/v1/debug/{datasource}/document/events: {} /rest/api/v1/governance/data/policies/{id}: get: description: Fetches the specified policy version, or the latest if no version is provided. @@ -8079,6 +8080,41 @@ components: cursor: type: string description: Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. + InsightsOverviewRequest: + properties: + departments: + type: array + items: + type: string + description: Departments for which Insights are requested. + dayRange: + $ref: "#/components/schemas/Period" + description: Time period for which Insights are requested. + InsightsAssistantRequest: + properties: + departments: + type: array + items: + type: string + description: Departments for which Insights are requested. + dayRange: + $ref: "#/components/schemas/Period" + description: Time period for which Insights are requested. + AgentsInsightsV2Request: + properties: + agentIds: + type: array + items: + type: string + description: IDs of the Agents for which Insights should be returned. An empty array signifies all. + departments: + type: array + items: + type: string + description: Departments for which Insights are requested. + dayRange: + $ref: "#/components/schemas/Period" + description: Time period for which Insights are requested. InsightsAiAppRequestOptions: type: object properties: @@ -8095,16 +8131,33 @@ components: items: type: string description: IDs of the Agents for which Insights should be returned. An empty array signifies all. - DownloadInsightsRequest: - required: - - categories + InsightsRequest: properties: + overviewRequest: + $ref: "#/components/schemas/InsightsOverviewRequest" + x-visibility: Public + description: If specified, will return data for the Overview section of the Insights Dashboard. + assistantRequest: + $ref: "#/components/schemas/InsightsAssistantRequest" + x-visibility: Public + description: If specified, will return data for the Assistant section of the Insights Dashboard. + agentsRequest: + $ref: "#/components/schemas/AgentsInsightsV2Request" + x-visibility: Public + description: If specified, will return data for the Agents section of the Insights Dashboard. + disablePerUserInsights: + type: boolean + description: If true, suppresses the generation of per-user Insights in the response. Default is false. categories: + deprecated: true type: array items: type: string enum: - AGENTS + - AGENT_USERS + - TOP_AGENTS + - AGENTS_USAGE_BY_DEPARTMENT - AI - AI_APPS - ANNOUNCEMENTS @@ -8117,34 +8170,31 @@ components: - USERS description: Categories of data requested. Request can include single or multiple types. departments: + deprecated: true type: array items: type: string description: Departments that the data is requested for. If this is empty, corresponds to whole company. dayRange: + deprecated: true $ref: "#/components/schemas/Period" aiAppRequestOptions: + deprecated: true $ref: "#/components/schemas/InsightsAiAppRequestOptions" agentsRequestOptions: + deprecated: true $ref: "#/components/schemas/InsightsAgentsRequestOptions" - InsightsRequest: - allOf: - - $ref: "#/components/schemas/DownloadInsightsRequest" - - type: object - properties: - assistantActivityTypes: - type: array - items: - type: string - enum: - - GLEAN_CHAT - - AI_SUMMARY - - AI_ANSWER - - GLEANBOT_RESPONSE - description: Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. - disablePerUserInsights: - type: boolean - description: If true, suppresses the generation of per-user Insights in the response. Default is false. + assistantActivityTypes: + deprecated: true + type: array + items: + type: string + enum: + - GLEAN_CHAT + - AI_SUMMARY + - AI_ANSWER + - GLEANBOT_RESPONSE + description: Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. LabeledCountInfo: required: - label @@ -11678,6 +11728,38 @@ components: - NOT_UPLOADED - STATUS_UNKNOWN example: UPLOADED + DebugDocumentLifecycleRequest: + type: object + description: Describes the request body of the /debug/{datasource}/document/events API call. + properties: + objectType: + type: string + description: Object type of the document to get lifecycle events for. + example: Article + docId: + type: string + description: Glean Document ID within the datasource to get lifecycle events for. + example: art123 + startDate: + type: string + description: The start date for events to be fetched. Cannot be more than 30 days (default 7 days) in the past. + example: "2025-05-01" + maxEvents: + type: integer + description: Max number of events to be fetched. Cannot be more than 100 (default 20). + example: 50 + required: + - objectType + - docId + DebugDocumentLifecycleResponse: + type: object + description: Describes the response body of the /debug/{datasource}/document/events API call + properties: + lifeCycleEvents: + type: array + description: List of lifecycle events corresponding to the document + items: + $ref: "#/components/schemas/LifeCycleEvent" PropertyDefinition: properties: name: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 610f27ad..f3662286 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.628.2 +speakeasyVersion: 1.631.4 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:3dba87a7b61abaf1f2a6b645c2c9d1c5d79481f48ff3d57b2f1a864b8c8aa02f - sourceBlobDigest: sha256:49403d59f8446958ed5e813bbf322fda12ae91ed0991975bb0f24de0a189f74e + sourceRevisionDigest: sha256:1e44bd4133c298a0460c59b01703274d1c24c9fa389a311005a1f4be384921c3 + sourceBlobDigest: sha256:39b7061df492c752b341a36ebde421818f4e84d67a206f853c2558d6f3917fe3 tags: - latest - - speakeasy-sdk-regen-1758790487 + - speakeasy-sdk-regen-1758838236 Glean-OAS: sourceNamespace: glean-oas sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317 @@ -18,10 +18,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:3dba87a7b61abaf1f2a6b645c2c9d1c5d79481f48ff3d57b2f1a864b8c8aa02f - sourceBlobDigest: sha256:49403d59f8446958ed5e813bbf322fda12ae91ed0991975bb0f24de0a189f74e + sourceRevisionDigest: sha256:1e44bd4133c298a0460c59b01703274d1c24c9fa389a311005a1f4be384921c3 + sourceBlobDigest: sha256:39b7061df492c752b341a36ebde421818f4e84d67a206f853c2558d6f3917fe3 codeSamplesNamespace: glean-api-specs-java-code-samples - codeSamplesRevisionDigest: sha256:958bb890a154a7a14a8790d775d8939bb49f3c732c63fa6138440774a623c0f6 + codeSamplesRevisionDigest: sha256:a281546b3cd6ba0de6cd58de6020445c7c13f5ac5f4ef74fa4d33a61b75008a0 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 97b5d69a..e40c645d 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.glean.api-client:glean-api-client:0.9.1' +implementation 'com.glean.api-client:glean-api-client:0.10.0' ``` Maven: @@ -72,7 +72,7 @@ Maven: com.glean.api-client glean-api-client - 0.9.1 + 0.10.0 ``` @@ -487,7 +487,7 @@ For more information on obtaining the appropriate token type, please contact you #### [client().insights()](docs/sdks/insights/README.md) -* [retrieve](docs/sdks/insights/README.md#retrieve) - Read insights +* [retrieve](docs/sdks/insights/README.md#retrieve) - Get insights #### [client().messages()](docs/sdks/messages/README.md) diff --git a/RELEASES.md b/RELEASES.md index 07eb6be0..3f2cd57c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -208,4 +208,14 @@ Based on: ### Generated - [java v0.9.1] . ### Releases -- [Maven Central v0.9.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.9.1 - . \ No newline at end of file +- [Maven Central v0.9.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.9.1 - . + +## 2025-09-29 16:05:35 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.631.4 (2.716.16) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.10.0] . +### Releases +- [Maven Central v0.10.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.10.0 - . \ No newline at end of file diff --git a/build.gradle b/build.gradle index 932cad4b..c5362387 100644 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,6 @@ plugins { id 'signing' // V2 publishing plugin (Sonatype Central Portal) id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3' - id "com.adarshr.test-logger" version "4.0.0" id "io.spring.dependency-management" version "1.1.6" apply false } @@ -75,46 +74,6 @@ javadocJar { archiveBaseName = "${artifactId}" } -tasks.named('test') { - // Use JUnit Platform for unit tests. - useJUnitPlatform() -} - -testlogger { - showStandardStreams = true -} - -test { - maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 - finalizedBy 'mergeJUnitReports' -} - -configurations { - antJUnit -} - -task mergeJUnitReports { - ext { - resultsDir = file("$buildDir/test-results/test") - targetDir = file(".speakeasy/reports") - } - - doLast { - ant.taskdef( - name: 'junitreport', - classname: 'org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator', - classpath: configurations.antJUnit.asPath - ) - - mkdir targetDir - - ant.junitreport(todir: targetDir, tofile: 'tests.xml') { - fileset(dir: resultsDir, includes: 'TEST-*.xml') - } - } -} - - dependencies { api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2' implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2' @@ -123,10 +82,6 @@ dependencies { api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} implementation 'commons-io:commons-io:2.18.0' api 'org.reactivestreams:reactive-streams:1.0.4' - testImplementation 'org.junit.jupiter:junit-jupiter:5.11.4' - testImplementation 'org.mockito:mockito-core:5.14.2' - testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.4' - antJUnit 'org.apache.ant:ant-junit:1.9.7' } ext { @@ -134,35 +89,40 @@ ext { } subprojects { - // Ensure subprojects use the same group and version as root project - group = rootProject.group - version = rootProject.version - - apply { - plugin "java-library" - plugin "io.spring.dependency-management" - plugin "maven-publish" - plugin "signing" - plugin "cl.franciscosolis.sonatype-central-upload" - } - dependencyManagement { - imports { - mavenBom "org.springframework.boot:spring-boot-dependencies:${rootProject.springBootVersion}" + if (name in [ + 'glean-api-client-spring-boot-autoconfigure', + 'glean-api-client-spring-boot-starter' + ]) { + // Ensure subprojects use the same group and version as root project + group = rootProject.group + version = rootProject.version + + apply { + plugin "java-library" + plugin "io.spring.dependency-management" + plugin "maven-publish" + plugin "signing" + plugin "cl.franciscosolis.sonatype-central-upload" + } + dependencyManagement { + imports { + mavenBom "org.springframework.boot:spring-boot-dependencies:${rootProject.springBootVersion}" + } + } + repositories { + mavenCentral() + } + java { + withSourcesJar() + withJavadocJar() + } + tasks.withType(JavaCompile).configureEach { + options.release = 11 } - } - repositories { - mavenCentral() - } - java { - withSourcesJar() - withJavadocJar() - } - tasks.withType(JavaCompile).configureEach { - options.release = 11 - } - // Apply publishing configuration to all subprojects - they'll check for publishingConfig internally - apply from: rootProject.file('publishing.gradle') + // Apply publishing configuration to all subprojects - they'll check for publishingConfig internally + apply from: rootProject.file('publishing.gradle') + } } ext { diff --git a/docs/models/components/AgentsInsightsV2Request.md b/docs/models/components/AgentsInsightsV2Request.md new file mode 100644 index 00000000..070eb3f1 --- /dev/null +++ b/docs/models/components/AgentsInsightsV2Request.md @@ -0,0 +1,10 @@ +# AgentsInsightsV2Request + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `agentIds` | List\<*String*> | :heavy_minus_sign: | IDs of the Agents for which Insights should be returned. An empty array signifies all. | +| `departments` | List\<*String*> | :heavy_minus_sign: | Departments for which Insights are requested. | +| `dayRange` | [Optional\](../../models/components/Period.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/InsightsAssistantRequest.md b/docs/models/components/InsightsAssistantRequest.md new file mode 100644 index 00000000..164a7466 --- /dev/null +++ b/docs/models/components/InsightsAssistantRequest.md @@ -0,0 +1,9 @@ +# InsightsAssistantRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `departments` | List\<*String*> | :heavy_minus_sign: | Departments for which Insights are requested. | +| `dayRange` | [Optional\](../../models/components/Period.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/InsightsOverviewRequest.md b/docs/models/components/InsightsOverviewRequest.md new file mode 100644 index 00000000..58b92865 --- /dev/null +++ b/docs/models/components/InsightsOverviewRequest.md @@ -0,0 +1,9 @@ +# InsightsOverviewRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | +| `departments` | List\<*String*> | :heavy_minus_sign: | Departments for which Insights are requested. | +| `dayRange` | [Optional\](../../models/components/Period.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/InsightsRequest.md b/docs/models/components/InsightsRequest.md index 101a40f8..3e66699d 100644 --- a/docs/models/components/InsightsRequest.md +++ b/docs/models/components/InsightsRequest.md @@ -3,12 +3,15 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `categories` | List\<[InsightsRequestCategory](../../models/components/InsightsRequestCategory.md)> | :heavy_check_mark: | Categories of data requested. Request can include single or multiple types. | -| `departments` | List\<*String*> | :heavy_minus_sign: | Departments that the data is requested for. If this is empty, corresponds to whole company. | -| `dayRange` | [Optional\](../../models/components/Period.md) | :heavy_minus_sign: | N/A | -| `aiAppRequestOptions` | [Optional\](../../models/components/InsightsAiAppRequestOptions.md) | :heavy_minus_sign: | N/A | -| `agentsRequestOptions` | [Optional\](../../models/components/InsightsAgentsRequestOptions.md) | :heavy_minus_sign: | N/A | -| `assistantActivityTypes` | List\<[AssistantActivityType](../../models/components/AssistantActivityType.md)> | :heavy_minus_sign: | Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. | -| `disablePerUserInsights` | *Optional\* | :heavy_minus_sign: | If true, suppresses the generation of per-user Insights in the response. Default is false. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `overviewRequest` | [Optional\](../../models/components/InsightsOverviewRequest.md) | :heavy_minus_sign: | N/A | +| `assistantRequest` | [Optional\](../../models/components/InsightsAssistantRequest.md) | :heavy_minus_sign: | N/A | +| `agentsRequest` | [Optional\](../../models/components/AgentsInsightsV2Request.md) | :heavy_minus_sign: | N/A | +| `disablePerUserInsights` | *Optional\* | :heavy_minus_sign: | If true, suppresses the generation of per-user Insights in the response. Default is false. | +| ~~`categories`~~ | List\<[InsightsRequestCategory](../../models/components/InsightsRequestCategory.md)> | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Categories of data requested. Request can include single or multiple types. | +| ~~`departments`~~ | List\<*String*> | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Departments that the data is requested for. If this is empty, corresponds to whole company. | +| `dayRange` | [Optional\](../../models/components/Period.md) | :heavy_minus_sign: | N/A | +| `aiAppRequestOptions` | [Optional\](../../models/components/InsightsAiAppRequestOptions.md) | :heavy_minus_sign: | N/A | +| `agentsRequestOptions` | [Optional\](../../models/components/InsightsAgentsRequestOptions.md) | :heavy_minus_sign: | N/A | +| ~~`assistantActivityTypes`~~ | List\<[AssistantActivityType](../../models/components/AssistantActivityType.md)> | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. | \ No newline at end of file diff --git a/docs/models/components/InsightsRequestCategory.md b/docs/models/components/InsightsRequestCategory.md index 216c1d6b..f5831a04 100644 --- a/docs/models/components/InsightsRequestCategory.md +++ b/docs/models/components/InsightsRequestCategory.md @@ -3,16 +3,19 @@ ## Values -| Name | Value | -| --------------- | --------------- | -| `AGENTS` | AGENTS | -| `AI` | AI | -| `AI_APPS` | AI_APPS | -| `ANNOUNCEMENTS` | ANNOUNCEMENTS | -| `ANSWERS` | ANSWERS | -| `COLLECTIONS` | COLLECTIONS | -| `CONTENT` | CONTENT | -| `GLEAN_ASSIST` | GLEAN_ASSIST | -| `QUERIES` | QUERIES | -| `SHORTCUTS` | SHORTCUTS | -| `USERS` | USERS | \ No newline at end of file +| Name | Value | +| ---------------------------- | ---------------------------- | +| `AGENTS` | AGENTS | +| `AGENT_USERS` | AGENT_USERS | +| `TOP_AGENTS` | TOP_AGENTS | +| `AGENTS_USAGE_BY_DEPARTMENT` | AGENTS_USAGE_BY_DEPARTMENT | +| `AI` | AI | +| `AI_APPS` | AI_APPS | +| `ANNOUNCEMENTS` | ANNOUNCEMENTS | +| `ANSWERS` | ANSWERS | +| `COLLECTIONS` | COLLECTIONS | +| `CONTENT` | CONTENT | +| `GLEAN_ASSIST` | GLEAN_ASSIST | +| `QUERIES` | QUERIES | +| `SHORTCUTS` | SHORTCUTS | +| `USERS` | USERS | \ No newline at end of file diff --git a/docs/sdks/insights/README.md b/docs/sdks/insights/README.md index db841303..abdab74c 100644 --- a/docs/sdks/insights/README.md +++ b/docs/sdks/insights/README.md @@ -5,11 +5,11 @@ ### Available Operations -* [retrieve](#retrieve) - Read insights +* [retrieve](#retrieve) - Get insights ## retrieve -Reads the aggregate information for each user, query, and content. +Gets the aggregate usage insights data displayed in the Insights Dashboards. ### Example Usage @@ -19,10 +19,8 @@ package hello.world; import com.glean.api_client.glean_api_client.Glean; import com.glean.api_client.glean_api_client.models.components.InsightsRequest; -import com.glean.api_client.glean_api_client.models.components.InsightsRequestCategory; import com.glean.api_client.glean_api_client.models.operations.InsightsResponse; import java.lang.Exception; -import java.util.List; public class Application { @@ -33,10 +31,6 @@ public class Application { .build(); InsightsRequest req = InsightsRequest.builder() - .categories(List.of( - InsightsRequestCategory.COLLECTIONS, - InsightsRequestCategory.SHORTCUTS, - InsightsRequestCategory.ANNOUNCEMENTS)) .build(); InsightsResponse res = sdk.client().insights().retrieve() diff --git a/gradle.properties b/gradle.properties index 05e743c1..7a52991d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.glean.api-client artifactId=glean-api-client -version=0.9.1 +version=0.10.0 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/spring/glean-api-client-spring-boot-autoconfigure/src/main/java/com/glean/api_client/glean_api_client/GleanApiClientAutoConfigProperties.java b/spring/glean-api-client-spring-boot-autoconfigure/src/main/java/com/glean/api_client/glean_api_client/GleanApiClientAutoConfigProperties.java index d44a9c17..eff760dc 100644 --- a/spring/glean-api-client-spring-boot-autoconfigure/src/main/java/com/glean/api_client/glean_api_client/GleanApiClientAutoConfigProperties.java +++ b/spring/glean-api-client-spring-boot-autoconfigure/src/main/java/com/glean/api_client/glean_api_client/GleanApiClientAutoConfigProperties.java @@ -457,7 +457,8 @@ public ServerVariables() { } /** - * The instance name (typically the email domain without the TLD) that determines the deployment backend. + * The instance name (typically the email domain without the TLD) that determines the deployment + * backend. */ private String instance = "instance-name"; diff --git a/spring/glean-api-client-spring-boot-autoconfigure/src/main/java/com/glean/api_client/glean_api_client/OnPropertyPrefixCondition.java b/spring/glean-api-client-spring-boot-autoconfigure/src/main/java/com/glean/api_client/glean_api_client/OnPropertyPrefixCondition.java index aab9786d..ab5166d7 100644 --- a/spring/glean-api-client-spring-boot-autoconfigure/src/main/java/com/glean/api_client/glean_api_client/OnPropertyPrefixCondition.java +++ b/spring/glean-api-client-spring-boot-autoconfigure/src/main/java/com/glean/api_client/glean_api_client/OnPropertyPrefixCondition.java @@ -20,6 +20,13 @@ */ public class OnPropertyPrefixCondition extends SpringBootCondition { + /** + * Default constructor for OnPropertyPrefixCondition. + */ + public OnPropertyPrefixCondition() { + // Default constructor + } + @Override public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) { Map attributes = metadata.getAnnotationAttributes(ConditionalOnPropertyPrefix.class.getName()); diff --git a/src/main/java/com/glean/api_client/glean_api_client/Activity.java b/src/main/java/com/glean/api_client/glean_api_client/Activity.java index 907cc70e..00881d95 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Activity.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Activity.java @@ -39,7 +39,8 @@ public AsyncActivity async() { /** * Report document activity * - *

Report user activity that occurs on indexed documents such as viewing or editing. This signal improves search quality. + *

Report user activity that occurs on indexed documents such as viewing or editing. This signal + * improves search quality. * * @return The call builder */ @@ -50,7 +51,8 @@ public ActivityRequestBuilder report() { /** * Report document activity * - *

Report user activity that occurs on indexed documents such as viewing or editing. This signal improves search quality. + *

Report user activity that occurs on indexed documents such as viewing or editing. This signal + * improves search quality. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -65,7 +67,8 @@ public ActivityResponse report(com.glean.api_client.glean_api_client.models.comp /** * Report client activity * - *

Report events that happen to results within a Glean client UI, such as search result views and clicks. This signal improves search quality. + *

Report events that happen to results within a Glean client UI, such as search result views and + * clicks. This signal improves search quality. * * @return The call builder */ @@ -76,7 +79,8 @@ public FeedbackRequestBuilder feedback() { /** * Report client activity * - *

Report events that happen to results within a Glean client UI, such as search result views and clicks. This signal improves search quality. + *

Report events that happen to results within a Glean client UI, such as search result views and + * clicks. This signal improves search quality. * * @return The response from the API call * @throws Exception if the API call fails @@ -88,7 +92,8 @@ public FeedbackResponse feedbackDirect() throws Exception { /** * Report client activity * - *

Report events that happen to results within a Glean client UI, such as search result views and clicks. This signal improves search quality. + *

Report events that happen to results within a Glean client UI, such as search result views and + * clicks. This signal improves search quality. * * @param feedbackQueryParameter A URL encoded versions of Feedback. This is useful for requests. * @param feedback1 diff --git a/src/main/java/com/glean/api_client/glean_api_client/Agents.java b/src/main/java/com/glean/api_client/glean_api_client/Agents.java index 2938bba9..37a77d52 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Agents.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Agents.java @@ -53,7 +53,8 @@ public AsyncAgents async() { /** * Retrieve an agent * - *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. + *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent + * Builder. * * @return The call builder */ @@ -64,7 +65,8 @@ public GetAgentRequestBuilder retrieve() { /** * Retrieve an agent * - *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. + *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent + * Builder. * * @param agentId The ID of the agent. * @return The response from the API call @@ -77,7 +79,8 @@ public GetAgentResponse retrieve(String agentId) throws Exception { /** * Retrieve an agent * - *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. + *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent + * Builder. * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @param agentId The ID of the agent. @@ -99,7 +102,8 @@ public GetAgentResponse retrieve(Optional timezoneOffset, String agentId) /** * List an agent's schemas * - *

Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. + *

Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can + * use these schemas to detect changes to an agent's input or output structure. * * @return The call builder */ @@ -110,7 +114,8 @@ public GetAgentSchemasRequestBuilder retrieveSchemas() { /** * List an agent's schemas * - *

Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. + *

Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can + * use these schemas to detect changes to an agent's input or output structure. * * @param agentId The ID of the agent. * @return The response from the API call @@ -123,7 +128,8 @@ public GetAgentSchemasResponse retrieveSchemas(String agentId) throws Exception /** * List an agent's schemas * - *

Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. + *

Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can + * use these schemas to detect changes to an agent's input or output structure. * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @param agentId The ID of the agent. @@ -171,7 +177,8 @@ public SearchAgentsResponse list(SearchAgentsRequest request) throws Exception { /** * Create an agent run and stream the response * - *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). + *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a + * stream of server-sent events (SSE). * * @return The call builder */ @@ -182,7 +189,8 @@ public CreateAndStreamRunRequestBuilder runStream() { /** * Create an agent run and stream the response * - *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). + *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a + * stream of server-sent events (SSE). * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -197,7 +205,8 @@ public CreateAndStreamRunResponse runStream(AgentRunCreate request) throws Excep /** * Create an agent run and wait for the response * - *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. + *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final + * response. * * @return The call builder */ @@ -208,7 +217,8 @@ public CreateAndWaitRunRequestBuilder run() { /** * Create an agent run and wait for the response * - *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. + *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final + * response. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncActivity.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncActivity.java index 95fc5657..33335439 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncActivity.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncActivity.java @@ -40,7 +40,8 @@ public Activity sync() { /** * Report document activity * - *

Report user activity that occurs on indexed documents such as viewing or editing. This signal improves search quality. + *

Report user activity that occurs on indexed documents such as viewing or editing. This signal + * improves search quality. * * @return The async call builder */ @@ -51,10 +52,11 @@ public ActivityRequestBuilder report() { /** * Report document activity * - *

Report user activity that occurs on indexed documents such as viewing or editing. This signal improves search quality. + *

Report user activity that occurs on indexed documents such as viewing or editing. This signal + * improves search quality. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<ActivityResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture report(com.glean.api_client.glean_api_client.models.components.Activity request) { AsyncRequestOperation operation @@ -67,7 +69,8 @@ public CompletableFuture report(com.glean.api_client.glean_api /** * Report client activity * - *

Report events that happen to results within a Glean client UI, such as search result views and clicks. This signal improves search quality. + *

Report events that happen to results within a Glean client UI, such as search result views and + * clicks. This signal improves search quality. * * @return The async call builder */ @@ -78,9 +81,10 @@ public FeedbackRequestBuilder feedback() { /** * Report client activity * - *

Report events that happen to results within a Glean client UI, such as search result views and clicks. This signal improves search quality. + *

Report events that happen to results within a Glean client UI, such as search result views and + * clicks. This signal improves search quality. * - * @return CompletableFuture<FeedbackResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture feedbackDirect() { return feedback(Optional.empty(), Optional.empty()); @@ -89,11 +93,12 @@ public CompletableFuture feedbackDirect() { /** * Report client activity * - *

Report events that happen to results within a Glean client UI, such as search result views and clicks. This signal improves search quality. + *

Report events that happen to results within a Glean client UI, such as search result views and + * clicks. This signal improves search quality. * * @param feedbackQueryParameter A URL encoded versions of Feedback. This is useful for requests. * @param feedback1 - * @return CompletableFuture<FeedbackResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture feedback(Optional feedbackQueryParameter, Optional feedback1) { FeedbackRequest request = diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncAgents.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncAgents.java index 4a34ae3e..aec4a48c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncAgents.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncAgents.java @@ -54,7 +54,8 @@ public Agents sync() { /** * Retrieve an agent * - *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. + *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent + * Builder. * * @return The async call builder */ @@ -65,10 +66,11 @@ public GetAgentRequestBuilder retrieve() { /** * Retrieve an agent * - *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. + *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent + * Builder. * * @param agentId The ID of the agent. - * @return CompletableFuture<GetAgentResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(String agentId) { return retrieve(Optional.empty(), agentId); @@ -77,11 +79,12 @@ public CompletableFuture retrieve(String agentId) { /** * Retrieve an agent * - *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent Builder. + *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent + * Builder. * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @param agentId The ID of the agent. - * @return CompletableFuture<GetAgentResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(Optional timezoneOffset, String agentId) { GetAgentRequest request = @@ -100,7 +103,8 @@ public CompletableFuture retrieve(Optional timezoneOffse /** * List an agent's schemas * - *

Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. + *

Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can + * use these schemas to detect changes to an agent's input or output structure. * * @return The async call builder */ @@ -111,10 +115,11 @@ public GetAgentSchemasRequestBuilder retrieveSchemas() { /** * List an agent's schemas * - *

Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. + *

Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can + * use these schemas to detect changes to an agent's input or output structure. * * @param agentId The ID of the agent. - * @return CompletableFuture<GetAgentSchemasResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveSchemas(String agentId) { return retrieveSchemas(Optional.empty(), agentId); @@ -123,11 +128,12 @@ public CompletableFuture retrieveSchemas(String agentId /** * List an agent's schemas * - *

Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can use these schemas to detect changes to an agent's input or output structure. + *

Return [agent](https://developers.glean.com/agents/agents-api)'s input and output schemas. You can + * use these schemas to detect changes to an agent's input or output structure. * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @param agentId The ID of the agent. - * @return CompletableFuture<GetAgentSchemasResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveSchemas(Optional timezoneOffset, String agentId) { GetAgentSchemasRequest request = @@ -160,7 +166,7 @@ public SearchAgentsRequestBuilder list() { *

Search for [agents](https://developers.glean.com/agents/agents-api) by agent name. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<SearchAgentsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture list(SearchAgentsRequest request) { AsyncRequestOperation operation @@ -173,7 +179,8 @@ public CompletableFuture list(SearchAgentsRequest request) /** * Create an agent run and stream the response * - *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). + *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a + * stream of server-sent events (SSE). * * @return The async call builder */ @@ -184,10 +191,11 @@ public CreateAndStreamRunRequestBuilder runStream() { /** * Create an agent run and stream the response * - *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a stream of server-sent events (SSE). + *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the result as a + * stream of server-sent events (SSE). * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<CreateAndStreamRunResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture runStream(AgentRunCreate request) { AsyncRequestOperation operation @@ -200,7 +208,8 @@ public CompletableFuture runStream(AgentRunCreate re /** * Create an agent run and wait for the response * - *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. + *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final + * response. * * @return The async call builder */ @@ -211,10 +220,11 @@ public CreateAndWaitRunRequestBuilder run() { /** * Create an agent run and wait for the response * - *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final response. + *

Executes an [agent](https://developers.glean.com/agents/agents-api) run and returns the final + * response. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<CreateAndWaitRunResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture run(AgentRunCreate request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncAnnouncements.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncAnnouncements.java index 9ccbd8f3..116efdde 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncAnnouncements.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncAnnouncements.java @@ -58,7 +58,7 @@ public CreateannouncementRequestBuilder create() { *

Create a textual announcement visible to some set of users based on department and location. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<CreateannouncementResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture create(CreateAnnouncementRequest request) { AsyncRequestOperation operation @@ -85,7 +85,7 @@ public DeleteannouncementRequestBuilder delete() { *

Delete an existing user-generated announcement. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<DeleteannouncementResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture delete(DeleteAnnouncementRequest request) { AsyncRequestOperation operation @@ -112,7 +112,7 @@ public UpdateannouncementRequestBuilder update() { *

Update a textual announcement visible to some set of users based on department and location. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<UpdateannouncementResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture update(UpdateAnnouncementRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncAnswers.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncAnswers.java index 377028ee..611da684 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncAnswers.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncAnswers.java @@ -66,7 +66,7 @@ public CreateanswerRequestBuilder create() { *

Create a user-generated Answer that contains a question and answer. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<CreateanswerResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture create(CreateAnswerRequest request) { AsyncRequestOperation operation @@ -93,7 +93,7 @@ public DeleteanswerRequestBuilder delete() { *

Delete an existing user-generated Answer. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<DeleteanswerResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture delete(DeleteAnswerRequest request) { AsyncRequestOperation operation @@ -120,7 +120,7 @@ public EditanswerRequestBuilder update() { *

Update an existing user-generated Answer. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<EditanswerResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture update(EditAnswerRequest request) { AsyncRequestOperation operation @@ -147,7 +147,7 @@ public GetanswerRequestBuilder retrieve() { *

Read the details of a particular Answer given its ID. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<GetanswerResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(GetAnswerRequest request) { AsyncRequestOperation operation @@ -174,7 +174,7 @@ public ListanswersRequestBuilder list() { *

List Answers created by the current user. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<ListanswersResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture list(ListAnswersRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncChat.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncChat.java index 79b293c4..0e1be8fe 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncChat.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncChat.java @@ -93,7 +93,7 @@ public ChatRequestBuilder create() { *

Have a conversation with Glean AI. * * @param chatRequest - * @return CompletableFuture<ChatResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture create(ChatRequest chatRequest) { return create(Optional.empty(), chatRequest); @@ -106,7 +106,7 @@ public CompletableFuture create(ChatRequest chatRequest) { * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @param chatRequest - * @return CompletableFuture<ChatResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture create(Optional timezoneOffset, ChatRequest chatRequest) { com.glean.api_client.glean_api_client.models.operations.ChatRequest request = @@ -138,7 +138,7 @@ public DeleteallchatsRequestBuilder deleteAll() { * *

Deletes all saved Chats a user has had and all their contained conversational content. * - * @return CompletableFuture<DeleteallchatsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture deleteAllDirect() { return deleteAll(Optional.empty()); @@ -150,7 +150,7 @@ public CompletableFuture deleteAllDirect() { *

Deletes all saved Chats a user has had and all their contained conversational content. * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @return CompletableFuture<DeleteallchatsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture deleteAll(Optional timezoneOffset) { DeleteallchatsRequest request = @@ -182,7 +182,7 @@ public DeletechatsRequestBuilder delete() { *

Deletes saved Chats and all their contained conversational content. * * @param deleteChatsRequest - * @return CompletableFuture<DeletechatsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture delete(DeleteChatsRequest deleteChatsRequest) { return delete(Optional.empty(), deleteChatsRequest); @@ -195,7 +195,7 @@ public CompletableFuture delete(DeleteChatsRequest deleteCh * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @param deleteChatsRequest - * @return CompletableFuture<DeletechatsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture delete(Optional timezoneOffset, DeleteChatsRequest deleteChatsRequest) { DeletechatsRequest request = @@ -228,7 +228,7 @@ public GetchatRequestBuilder retrieve() { *

Retrieves the chat history between Glean Assistant and the user for a given Chat. * * @param getChatRequest - * @return CompletableFuture<GetchatResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(GetChatRequest getChatRequest) { return retrieve(Optional.empty(), getChatRequest); @@ -241,7 +241,7 @@ public CompletableFuture retrieve(GetChatRequest getChatRequest * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @param getChatRequest - * @return CompletableFuture<GetchatResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(Optional timezoneOffset, GetChatRequest getChatRequest) { GetchatRequest request = @@ -260,7 +260,8 @@ public CompletableFuture retrieve(Optional timezoneOffset /** * Retrieves all saved Chats * - *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. + *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only + * metadata and no conversational content. * * @return The async call builder */ @@ -271,9 +272,10 @@ public ListchatsRequestBuilder list() { /** * Retrieves all saved Chats * - *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. + *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only + * metadata and no conversational content. * - * @return CompletableFuture<ListchatsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture listDirect() { return list(Optional.empty()); @@ -282,10 +284,11 @@ public CompletableFuture listDirect() { /** * Retrieves all saved Chats * - *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. + *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only + * metadata and no conversational content. * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. - * @return CompletableFuture<ListchatsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture list(Optional timezoneOffset) { ListchatsRequest request = @@ -317,7 +320,7 @@ public GetchatapplicationRequestBuilder retrieveApplication() { *

Gets the Chat application details for the specified application ID. * * @param getChatApplicationRequest - * @return CompletableFuture<GetchatapplicationResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveApplication(GetChatApplicationRequest getChatApplicationRequest) { return retrieveApplication(Optional.empty(), getChatApplicationRequest); @@ -330,7 +333,7 @@ public CompletableFuture retrieveApplication(GetChat * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @param getChatApplicationRequest - * @return CompletableFuture<GetchatapplicationResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveApplication(Optional timezoneOffset, GetChatApplicationRequest getChatApplicationRequest) { GetchatapplicationRequest request = @@ -363,7 +366,7 @@ public UploadchatfilesRequestBuilder uploadFiles() { *

Upload files for Chat. * * @param uploadChatFilesRequest - * @return CompletableFuture<UploadchatfilesResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture uploadFiles(UploadChatFilesRequest uploadChatFilesRequest) { return uploadFiles(Optional.empty(), uploadChatFilesRequest); @@ -376,7 +379,7 @@ public CompletableFuture uploadFiles(UploadChatFilesReq * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @param uploadChatFilesRequest - * @return CompletableFuture<UploadchatfilesResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture uploadFiles(Optional timezoneOffset, UploadChatFilesRequest uploadChatFilesRequest) { UploadchatfilesRequest request = @@ -409,7 +412,7 @@ public GetchatfilesRequestBuilder retrieveFiles() { *

Get files uploaded by a user for Chat. * * @param getChatFilesRequest - * @return CompletableFuture<GetchatfilesResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveFiles(GetChatFilesRequest getChatFilesRequest) { return retrieveFiles(Optional.empty(), getChatFilesRequest); @@ -422,7 +425,7 @@ public CompletableFuture retrieveFiles(GetChatFilesRequest * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @param getChatFilesRequest - * @return CompletableFuture<GetchatfilesResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveFiles(Optional timezoneOffset, GetChatFilesRequest getChatFilesRequest) { GetchatfilesRequest request = @@ -455,7 +458,7 @@ public DeletechatfilesRequestBuilder deleteFiles() { *

Delete files uploaded by a user for Chat. * * @param deleteChatFilesRequest - * @return CompletableFuture<DeletechatfilesResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture deleteFiles(DeleteChatFilesRequest deleteChatFilesRequest) { return deleteFiles(Optional.empty(), deleteChatFilesRequest); @@ -468,7 +471,7 @@ public CompletableFuture deleteFiles(DeleteChatFilesReq * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @param deleteChatFilesRequest - * @return CompletableFuture<DeletechatfilesResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture deleteFiles(Optional timezoneOffset, DeleteChatFilesRequest deleteChatFilesRequest) { DeletechatfilesRequest request = @@ -501,7 +504,7 @@ public ChatStreamRequestBuilder createStream() { *

Have a conversation with Glean AI. * * @param chatRequest - * @return CompletableFuture<ChatStreamResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture createStream(ChatRequest chatRequest) { return createStream(Optional.empty(), chatRequest); @@ -514,7 +517,7 @@ public CompletableFuture createStream(ChatRequest chatReques * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @param chatRequest - * @return CompletableFuture<ChatStreamResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture createStream(Optional timezoneOffset, ChatRequest chatRequest) { ChatStreamRequest request = diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientAuthentication.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientAuthentication.java index 89234c49..efba6d18 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientAuthentication.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientAuthentication.java @@ -56,7 +56,7 @@ public CreateauthtokenRequestBuilder createToken() { *

Note: The tokens generated from this endpoint are **not** valid tokens * for use with the Client API (e.g. `/rest/api/v1/*`). * - * @return CompletableFuture<CreateauthtokenResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture createTokenDirect() { AsyncRequestlessOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientDocuments.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientDocuments.java index 1cf60794..70226d0c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientDocuments.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientDocuments.java @@ -63,7 +63,7 @@ public GetdocpermissionsRequestBuilder retrievePermissions() { *

Read the emails of all users who have access to the given document. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<GetdocpermissionsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrievePermissions(GetDocPermissionsRequest request) { AsyncRequestOperation operation @@ -76,7 +76,8 @@ public CompletableFuture retrievePermissions(GetDocPe /** * Read documents * - *

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. + *

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. * * @return The async call builder */ @@ -87,9 +88,10 @@ public GetdocumentsRequestBuilder retrieve() { /** * Read documents * - *

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. + *

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. * - * @return CompletableFuture<GetdocumentsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveDirect() { return retrieve(Optional.empty()); @@ -98,10 +100,11 @@ public CompletableFuture retrieveDirect() { /** * Read documents * - *

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. + *

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. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<GetdocumentsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(Optional request) { AsyncRequestOperation, GetdocumentsResponse> operation @@ -114,7 +117,8 @@ public CompletableFuture retrieve(OptionalRead the documents including metadata (does not include enhanced metadata via `/documentmetadata`) macthing the given facet conditions. + *

Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) + * macthing the given facet conditions. * * @return The async call builder */ @@ -125,9 +129,10 @@ public GetdocumentsbyfacetsRequestBuilder retrieveByFacets() { /** * Read documents by facets * - *

Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) macthing the given facet conditions. + *

Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) + * macthing the given facet conditions. * - * @return CompletableFuture<GetdocumentsbyfacetsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveByFacetsDirect() { return retrieveByFacets(Optional.empty()); @@ -136,10 +141,11 @@ public CompletableFuture retrieveByFacetsDirect() /** * Read documents by facets * - *

Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) macthing the given facet conditions. + *

Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) + * macthing the given facet conditions. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<GetdocumentsbyfacetsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveByFacets(Optional request) { AsyncRequestOperation, GetdocumentsbyfacetsResponse> operation @@ -166,7 +172,7 @@ public SummarizeRequestBuilder summarize() { *

Generate an AI summary of the requested documents. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<SummarizeResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture summarize(SummarizeRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientShortcuts.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientShortcuts.java index 0bca19fe..e48e0d19 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncClientShortcuts.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncClientShortcuts.java @@ -66,7 +66,7 @@ public CreateshortcutRequestBuilder create() { *

Create a user-generated shortcut that contains an alias and destination URL. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<CreateshortcutResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture create(CreateShortcutRequest request) { AsyncRequestOperation operation @@ -93,7 +93,7 @@ public DeleteshortcutRequestBuilder delete() { *

Delete an existing user-generated shortcut. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<DeleteshortcutResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture delete(DeleteShortcutRequest request) { AsyncRequestOperation operation @@ -120,7 +120,7 @@ public GetshortcutRequestBuilder retrieve() { *

Read a particular shortcut's details given its ID. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<GetshortcutResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(GetShortcutRequestUnion request) { AsyncRequestOperation operation @@ -147,7 +147,7 @@ public ListshortcutsRequestBuilder list() { *

List shortcuts editable/owned by the currently authenticated user. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<ListshortcutsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture list(ListShortcutsPaginatedRequest request) { AsyncRequestOperation operation @@ -174,7 +174,7 @@ public UpdateshortcutRequestBuilder update() { *

Updates the shortcut with the given ID. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<UpdateshortcutResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture update(UpdateShortcutRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncCollections.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncCollections.java index 30a0f9c2..0e486f8d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncCollections.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncCollections.java @@ -78,7 +78,7 @@ public AddcollectionitemsRequestBuilder addItems() { *

Add items to a Collection. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<AddcollectionitemsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture addItems(AddCollectionItemsRequest request) { AsyncRequestOperation operation @@ -105,7 +105,7 @@ public CreatecollectionRequestBuilder create() { *

Create a publicly visible (empty) Collection of documents. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<CreatecollectionResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture create(CreateCollectionRequest request) { AsyncRequestOperation operation @@ -132,7 +132,7 @@ public DeletecollectionRequestBuilder delete() { *

Delete a Collection given the Collection's ID. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<DeletecollectionResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture delete(DeleteCollectionRequest request) { AsyncRequestOperation operation @@ -159,7 +159,7 @@ public DeletecollectionitemRequestBuilder deleteItem() { *

Delete a single item from a Collection. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<DeletecollectionitemResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture deleteItem(DeleteCollectionItemRequest request) { AsyncRequestOperation operation @@ -186,7 +186,7 @@ public EditcollectionRequestBuilder update() { *

Update the properties of an existing Collection. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<EditcollectionResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture update(EditCollectionRequest request) { AsyncRequestOperation operation @@ -213,7 +213,7 @@ public EditcollectionitemRequestBuilder updateItem() { *

Update the URL, Glean Document ID, description of an item within a Collection given its ID. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<EditcollectionitemResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture updateItem(EditCollectionItemRequest request) { AsyncRequestOperation operation @@ -240,7 +240,7 @@ public GetcollectionRequestBuilder retrieve() { *

Read the details of a Collection given its ID. Does not fetch items in this Collection. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<GetcollectionResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(GetCollectionRequest request) { AsyncRequestOperation operation @@ -267,7 +267,7 @@ public ListcollectionsRequestBuilder list() { *

List all existing Collections. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<ListcollectionsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture list(ListCollectionsRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncDatasource.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncDatasource.java index f0537a13..1ac65d48 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncDatasource.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncDatasource.java @@ -37,9 +37,11 @@ public Datasource sync() { /** * Beta: Get datasource status * - *

Gather information about the datasource's overall status. Currently in beta, might undergo breaking changes without prior notice. + *

Gather information about the datasource's overall status. Currently in beta, might undergo breaking + * changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @return The async call builder */ @@ -50,12 +52,14 @@ public PostApiIndexV1DebugDatasourceStatusRequestBuilder status() { /** * Beta: Get datasource status * - *

Gather information about the datasource's overall status. Currently in beta, might undergo breaking changes without prior notice. + *

Gather information about the datasource's overall status. Currently in beta, might undergo breaking + * changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @param datasource The datasource to get debug status for. - * @return CompletableFuture<PostApiIndexV1DebugDatasourceStatusResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture status(String datasource) { PostApiIndexV1DebugDatasourceStatusRequest request = diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncDatasources.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncDatasources.java index 8d99fe91..700fc240 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncDatasources.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncDatasources.java @@ -54,7 +54,7 @@ public PostApiIndexV1AdddatasourceRequestBuilder add() { *

Add or update a custom datasource and its schema. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1AdddatasourceResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture add(CustomDatasourceConfig request) { AsyncRequestOperation operation @@ -81,7 +81,7 @@ public PostApiIndexV1GetdatasourceconfigRequestBuilder retrieveConfig() { *

Fetches the datasource config for the specified custom datasource. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1GetdatasourceconfigResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveConfig(GetDatasourceConfigRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncEntities.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncEntities.java index d248a806..b3ac8fe9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncEntities.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncEntities.java @@ -40,7 +40,10 @@ public Entities sync() { /** * List entities * - *

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, except when using FULL_DIRECTORY request type for people entities. + *

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, except when using FULL_DIRECTORY request type for + * people entities. * * @return The async call builder */ @@ -51,10 +54,13 @@ public ListentitiesRequestBuilder list() { /** * List entities * - *

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, except when using FULL_DIRECTORY request type for people entities. + *

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, except when using FULL_DIRECTORY request type for + * people entities. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<ListentitiesResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture list(ListEntitiesRequest request) { AsyncRequestOperation operation @@ -81,7 +87,7 @@ public PeopleRequestBuilder readPeople() { *

Read people details for the given IDs. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PeopleResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture readPeople(PeopleRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncGlean.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncGlean.java index c5097680..5a21526b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncGlean.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncGlean.java @@ -7,10 +7,16 @@ /** * Glean API: # Introduction - * In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean. + * In addition to the data sources that Glean has built-in support for, Glean also provides a REST API + * that enables customers to put arbitrary content in the search index. This is useful, for example, + * for doing permissions-aware search over content in internal tools that reside on-prem as well as for + * searching over applications that Glean does not currently support first class. In addition these + * APIs allow the customer to push organization data (people info, organization structure etc) into + * Glean. * *

# Usage guidelines - * This API is evolving fast. Glean will provide advance notice of any planned backwards incompatible changes along + * This API is evolving fast. Glean will provide advance notice of any planned backwards incompatible + * changes along * with a 6-month sunset period for anything that requires developers to adopt the new versions. * *

# API Clients @@ -21,7 +27,8 @@ * - [Go](https://github.com/gleanwork/api-client-go) * - [Java](https://github.com/gleanwork/api-client-java) * - *

These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice. + *

These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in + * your language of choice. */ public class AsyncGlean { private static final Headers _headers = Headers.EMPTY; diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingAuthentication.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingAuthentication.java index e5b9e423..1c0b2618 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingAuthentication.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingAuthentication.java @@ -35,7 +35,13 @@ public IndexingAuthentication sync() { /** * Rotate token * - *

Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the `/rotatetoken` request. Please refer to [Token rotation](https://developers.glean.com/indexing/authentication/token-rotation) documentation for more information. + *

Rotates the secret value inside the Indexing API token and returns the new raw secret. All other + * properties of the token are unchanged. In order to rotate the secret value, include the token as the + * bearer token in the `/rotatetoken` request. + * + *

Please refer to [Token + * rotation](https://developers.glean.com/indexing/authentication/token-rotation) documentation for + * more information. * * @return The async call builder */ @@ -46,9 +52,15 @@ public PostApiIndexV1RotatetokenRequestBuilder rotateToken() { /** * Rotate token * - *

Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the `/rotatetoken` request. Please refer to [Token rotation](https://developers.glean.com/indexing/authentication/token-rotation) documentation for more information. + *

Rotates the secret value inside the Indexing API token and returns the new raw secret. All other + * properties of the token are unchanged. In order to rotate the secret value, include the token as the + * bearer token in the `/rotatetoken` request. + * + *

Please refer to [Token + * rotation](https://developers.glean.com/indexing/authentication/token-rotation) documentation for + * more information. * - * @return CompletableFuture<PostApiIndexV1RotatetokenResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture rotateTokenDirect() { AsyncRequestlessOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingDocuments.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingDocuments.java index d1d9c4cc..7c4ae2e2 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingDocuments.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingDocuments.java @@ -91,7 +91,7 @@ public PostApiIndexV1IndexdocumentRequestBuilder addOrUpdate() { *

Adds a document to the index or updates an existing document. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1IndexdocumentResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture addOrUpdate(IndexDocumentRequest request) { AsyncRequestOperation operation @@ -104,7 +104,9 @@ public CompletableFuture addOrUpdate(IndexD /** * Index documents * - *

Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) documentation for an explanation of when to use this endpoint. + *

Adds or updates multiple documents in the index. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) + * documentation for an explanation of when to use this endpoint. * * @return The async call builder */ @@ -115,10 +117,12 @@ public PostApiIndexV1IndexdocumentsRequestBuilder index() { /** * Index documents * - *

Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) documentation for an explanation of when to use this endpoint. + *

Adds or updates multiple documents in the index. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) + * documentation for an explanation of when to use this endpoint. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1IndexdocumentsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture index(IndexDocumentsRequest request) { AsyncRequestOperation operation @@ -131,7 +135,9 @@ public CompletableFuture index(IndexDocume /** * Bulk index documents * - *

Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @return The async call builder */ @@ -142,10 +148,12 @@ public PostApiIndexV1BulkindexdocumentsRequestBuilder bulkIndex() { /** * Bulk index documents * - *

Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1BulkindexdocumentsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture bulkIndex(BulkIndexDocumentsRequest request) { AsyncRequestOperation operation @@ -158,15 +166,20 @@ public CompletableFuture bulkIndex(Bul /** * Schedules the processing of uploaded documents * - *

Schedules the immediate processing of documents uploaded through the indexing API. By default the uploaded documents will be processed asynchronously but this API can be used to schedule processing of all documents on demand. + *

Schedules the immediate processing of documents uploaded through the indexing API. By default the + * uploaded documents will be processed asynchronously but this API can be used to schedule processing + * of all documents on demand. * - *

If a `datasource` parameter is specified, processing is limited to that custom datasource. Without it, processing applies to all documents across all custom datasources. + *

If a `datasource` parameter is specified, processing is limited to that custom datasource. Without + * it, processing applies to all documents across all custom datasources. * #### Rate Limits - * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 response code. Here's how the rate limit works: + * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 + * response code. Here's how the rate limit works: * 1. Calling `/processalldocuments` for datasource `foo` prevents another call for `foo` for 3 hours. * 2. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for `bar`. * 3. Calling `/processalldocuments` for all datasources prevents any datasource calls for 3 hours. - * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all datasources. + * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all + * datasources. * *

For more frequent document processing, contact Glean support. * @@ -179,19 +192,24 @@ public PostApiIndexV1ProcessalldocumentsRequestBuilder processAll() { /** * Schedules the processing of uploaded documents * - *

Schedules the immediate processing of documents uploaded through the indexing API. By default the uploaded documents will be processed asynchronously but this API can be used to schedule processing of all documents on demand. + *

Schedules the immediate processing of documents uploaded through the indexing API. By default the + * uploaded documents will be processed asynchronously but this API can be used to schedule processing + * of all documents on demand. * - *

If a `datasource` parameter is specified, processing is limited to that custom datasource. Without it, processing applies to all documents across all custom datasources. + *

If a `datasource` parameter is specified, processing is limited to that custom datasource. Without + * it, processing applies to all documents across all custom datasources. * #### Rate Limits - * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 response code. Here's how the rate limit works: + * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 + * response code. Here's how the rate limit works: * 1. Calling `/processalldocuments` for datasource `foo` prevents another call for `foo` for 3 hours. * 2. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for `bar`. * 3. Calling `/processalldocuments` for all datasources prevents any datasource calls for 3 hours. - * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all datasources. + * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all + * datasources. * *

For more frequent document processing, contact Glean support. * - * @return CompletableFuture<PostApiIndexV1ProcessalldocumentsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture processAllDirect() { return processAll(Optional.empty()); @@ -200,20 +218,25 @@ public CompletableFuture processAllDi /** * Schedules the processing of uploaded documents * - *

Schedules the immediate processing of documents uploaded through the indexing API. By default the uploaded documents will be processed asynchronously but this API can be used to schedule processing of all documents on demand. + *

Schedules the immediate processing of documents uploaded through the indexing API. By default the + * uploaded documents will be processed asynchronously but this API can be used to schedule processing + * of all documents on demand. * - *

If a `datasource` parameter is specified, processing is limited to that custom datasource. Without it, processing applies to all documents across all custom datasources. + *

If a `datasource` parameter is specified, processing is limited to that custom datasource. Without + * it, processing applies to all documents across all custom datasources. * #### Rate Limits - * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 response code. Here's how the rate limit works: + * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 + * response code. Here's how the rate limit works: * 1. Calling `/processalldocuments` for datasource `foo` prevents another call for `foo` for 3 hours. * 2. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for `bar`. * 3. Calling `/processalldocuments` for all datasources prevents any datasource calls for 3 hours. - * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all datasources. + * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all + * datasources. * *

For more frequent document processing, contact Glean support. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1ProcessalldocumentsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture processAll(Optional request) { AsyncRequestOperation, PostApiIndexV1ProcessalldocumentsResponse> operation @@ -240,7 +263,7 @@ public PostApiIndexV1DeletedocumentRequestBuilder delete() { *

Deletes the specified document from the index. Succeeds if document is not present. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1DeletedocumentResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture delete(DeleteDocumentRequest request) { AsyncRequestOperation operation @@ -253,9 +276,11 @@ public CompletableFuture delete(DeleteDocu /** * Beta: Get document information * - *

Gives various information that would help in debugging related to a particular document. Currently in beta, might undergo breaking changes without prior notice. + *

Gives various information that would help in debugging related to a particular document. Currently + * in beta, might undergo breaking changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @return The async call builder */ @@ -266,13 +291,15 @@ public PostApiIndexV1DebugDatasourceDocumentRequestBuilder debug() { /** * Beta: Get document information * - *

Gives various information that would help in debugging related to a particular document. Currently in beta, might undergo breaking changes without prior notice. + *

Gives various information that would help in debugging related to a particular document. Currently + * in beta, might undergo breaking changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @param datasource The datasource to which the document belongs * @param debugDocumentRequest Describes the request body of the /debug/{datasource}/document API call. - * @return CompletableFuture<PostApiIndexV1DebugDatasourceDocumentResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture debug(String datasource, DebugDocumentRequest debugDocumentRequest) { PostApiIndexV1DebugDatasourceDocumentRequest request = @@ -291,9 +318,11 @@ public CompletableFuture debug(St /** * Beta: Get information of a batch of documents * - *

Gives various information that would help in debugging related to a batch of documents. Currently in beta, might undergo breaking changes without prior notice. + *

Gives various information that would help in debugging related to a batch of documents. Currently in + * beta, might undergo breaking changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @return The async call builder */ @@ -304,13 +333,15 @@ public PostApiIndexV1DebugDatasourceDocumentsRequestBuilder debugMany() { /** * Beta: Get information of a batch of documents * - *

Gives various information that would help in debugging related to a batch of documents. Currently in beta, might undergo breaking changes without prior notice. + *

Gives various information that would help in debugging related to a batch of documents. Currently in + * beta, might undergo breaking changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @param datasource The datasource to which the document belongs * @param debugDocumentsRequest Describes the request body of the /debug/{datasource}/documents API call. - * @return CompletableFuture<PostApiIndexV1DebugDatasourceDocumentsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture debugMany(String datasource, DebugDocumentsRequest debugDocumentsRequest) { PostApiIndexV1DebugDatasourceDocumentsRequest request = @@ -331,7 +362,8 @@ public CompletableFuture debugMa * *

Check if a given user has access to access a document in a custom datasource * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @return The async call builder */ @@ -344,10 +376,11 @@ public PostApiIndexV1CheckdocumentaccessRequestBuilder checkAccess() { * *

Check if a given user has access to access a document in a custom datasource * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1CheckdocumentaccessResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture checkAccess(CheckDocumentAccessRequest request) { AsyncRequestOperation operation @@ -362,7 +395,9 @@ public CompletableFuture checkAccess( * *

Intended for debugging/validation. Fetches the current upload and indexing status of documents. * - *

Tip: Use [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) for richer information. + *

Tip: Use + * [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) + * for richer information. * * @return The async call builder * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. @@ -377,10 +412,12 @@ public PostApiIndexV1GetdocumentstatusRequestBuilder status() { * *

Intended for debugging/validation. Fetches the current upload and indexing status of documents. * - *

Tip: Use [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) for richer information. + *

Tip: Use + * [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) + * for richer information. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1GetdocumentstatusResponse> - The async response + * @return {@code CompletableFuture} - The async response * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated @@ -397,7 +434,9 @@ public CompletableFuture status(GetDocu * *

Fetches document count for the specified custom datasource. * - *

Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information. + *

Tip: Use + * [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for + * richer information. * * @return The async call builder * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. @@ -412,10 +451,12 @@ public PostApiIndexV1GetdocumentcountRequestBuilder count() { * *

Fetches document count for the specified custom datasource. * - *

Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information. + *

Tip: Use + * [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for + * richer information. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1GetdocumentcountResponse> - The async response + * @return {@code CompletableFuture} - The async response * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingShortcuts.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingShortcuts.java index 18408f6d..5fd6ea37 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingShortcuts.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncIndexingShortcuts.java @@ -40,7 +40,12 @@ public IndexingShortcuts sync() { /** * Bulk index external shortcuts * - *

Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://help.glean.com/en/articles/5628838-how-go-links-work) page. + *

Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this + * endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that + * would be hosted by Glean, please use the `/uploadshortcuts` endpoint. + * + *

For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to + * [this](https://help.glean.com/en/articles/5628838-how-go-links-work) page. * * @return The async call builder */ @@ -51,10 +56,15 @@ public PostApiIndexV1BulkindexshortcutsRequestBuilder bulkIndex() { /** * Bulk index external shortcuts * - *

Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://help.glean.com/en/articles/5628838-how-go-links-work) page. + *

Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this + * endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that + * would be hosted by Glean, please use the `/uploadshortcuts` endpoint. + * + *

For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to + * [this](https://help.glean.com/en/articles/5628838-how-go-links-work) page. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1BulkindexshortcutsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture bulkIndex(BulkIndexShortcutsRequest request) { AsyncRequestOperation operation @@ -67,7 +77,8 @@ public CompletableFuture bulkIndex(Bul /** * Upload shortcuts * - *

Creates glean shortcuts for uploaded shortcuts info. Glean would host the shortcuts, and they can be managed in the knowledge tab once uploaded. + *

Creates glean shortcuts for uploaded shortcuts info. Glean would host the shortcuts, and they can be + * managed in the knowledge tab once uploaded. * * @return The async call builder */ @@ -78,10 +89,11 @@ public PostApiIndexV1UploadshortcutsRequestBuilder upload() { /** * Upload shortcuts * - *

Creates glean shortcuts for uploaded shortcuts info. Glean would host the shortcuts, and they can be managed in the knowledge tab once uploaded. + *

Creates glean shortcuts for uploaded shortcuts info. Glean would host the shortcuts, and they can be + * managed in the knowledge tab once uploaded. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1UploadshortcutsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture upload(UploadShortcutsRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncInsights.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncInsights.java index 404517c0..a23cb184 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncInsights.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncInsights.java @@ -33,9 +33,9 @@ public Insights sync() { /** - * Read insights + * Get insights * - *

Reads the aggregate information for each user, query, and content. + *

Gets the aggregate usage insights data displayed in the Insights Dashboards. * * @return The async call builder */ @@ -44,12 +44,12 @@ public InsightsRequestBuilder retrieve() { } /** - * Read insights + * Get insights * - *

Reads the aggregate information for each user, query, and content. + *

Gets the aggregate usage insights data displayed in the Insights Dashboards. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<InsightsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(InsightsRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncMessages.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncMessages.java index 1b287797..264f6ea5 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncMessages.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncMessages.java @@ -49,7 +49,7 @@ public MessagesRequestBuilder retrieve() { *

Retrieves list of messages from messaging/chat datasources (e.g. Slack, Teams). * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<MessagesResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(MessagesRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncPeople.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncPeople.java index ecf1f69f..a7207bd8 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncPeople.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncPeople.java @@ -71,9 +71,11 @@ public People sync() { /** * Beta: Get user information * - *

Gives various information that would help in debugging related to a particular user. Currently in beta, might undergo breaking changes without prior notice. + *

Gives various information that would help in debugging related to a particular user. Currently in + * beta, might undergo breaking changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @return The async call builder */ @@ -84,13 +86,15 @@ public PostApiIndexV1DebugDatasourceUserRequestBuilder debug() { /** * Beta: Get user information * - *

Gives various information that would help in debugging related to a particular user. Currently in beta, might undergo breaking changes without prior notice. + *

Gives various information that would help in debugging related to a particular user. Currently in + * beta, might undergo breaking changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @param datasource The datasource to which the user belongs * @param debugUserRequest Describes the request body of the /debug/{datasource}/user API call - * @return CompletableFuture<PostApiIndexV1DebugDatasourceUserResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture debug(String datasource, DebugUserRequest debugUserRequest) { PostApiIndexV1DebugDatasourceUserRequest request = @@ -111,7 +115,9 @@ public CompletableFuture debug(String * *

Fetches user count for the specified custom datasource. * - *

Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information. + *

Tip: Use + * [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for + * richer information. * * @return The async call builder * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. @@ -126,10 +132,12 @@ public PostApiIndexV1GetusercountRequestBuilder count() { * *

Fetches user count for the specified custom datasource. * - *

Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information. + *

Tip: Use + * [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for + * richer information. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1GetusercountResponse> - The async response + * @return {@code CompletableFuture} - The async response * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated @@ -158,7 +166,7 @@ public PostApiIndexV1IndexemployeeRequestBuilder index() { *

Adds an employee or updates information about an employee * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1IndexemployeeResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture index(IndexEmployeeRequest request) { AsyncRequestOperation operation @@ -171,7 +179,9 @@ public CompletableFuture index(IndexEmploye /** * Bulk index employees * - *

Replaces all the currently indexed employees using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces all the currently indexed employees using paginated batch API calls. Please refer to the + * [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for + * an explanation of how to use bulk endpoints. * * @return The async call builder */ @@ -182,10 +192,12 @@ public PostApiIndexV1BulkindexemployeesRequestBuilder bulkIndex() { /** * Bulk index employees * - *

Replaces all the currently indexed employees using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces all the currently indexed employees using paginated batch API calls. Please refer to the + * [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for + * an explanation of how to use bulk endpoints. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1BulkindexemployeesResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture bulkIndex(BulkIndexEmployeesRequest request) { AsyncRequestOperation operation @@ -198,7 +210,9 @@ public CompletableFuture bulkIndex(Bul /** * Schedules the processing of uploaded employees and teams * - *

Schedules the immediate processing of employees and teams uploaded through the indexing API. By default all uploaded people data will be processed asynchronously but this API can be used to schedule its processing on demand. + *

Schedules the immediate processing of employees and teams uploaded through the indexing API. By + * default all uploaded people data will be processed asynchronously but this API can be used to + * schedule its processing on demand. * * @return The async call builder */ @@ -209,9 +223,11 @@ public PostApiIndexV1ProcessallemployeesandteamsRequestBuilder processAllEmploye /** * Schedules the processing of uploaded employees and teams * - *

Schedules the immediate processing of employees and teams uploaded through the indexing API. By default all uploaded people data will be processed asynchronously but this API can be used to schedule its processing on demand. + *

Schedules the immediate processing of employees and teams uploaded through the indexing API. By + * default all uploaded people data will be processed asynchronously but this API can be used to + * schedule its processing on demand. * - * @return CompletableFuture<PostApiIndexV1ProcessallemployeesandteamsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture processAllEmployeesAndTeamsDirect() { AsyncRequestlessOperation operation @@ -238,7 +254,7 @@ public PostApiIndexV1DeleteemployeeRequestBuilder delete() { *

Delete an employee. Silently succeeds if employee is not present. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1DeleteemployeeResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture delete(DeleteEmployeeRequest request) { AsyncRequestOperation operation @@ -265,7 +281,7 @@ public PostApiIndexV1IndexteamRequestBuilder indexTeam() { *

Adds a team or updates information about a team * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1IndexteamResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture indexTeam(IndexTeamRequest request) { AsyncRequestOperation operation @@ -292,7 +308,7 @@ public PostApiIndexV1DeleteteamRequestBuilder deleteTeam() { *

Delete a team based on provided id. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1DeleteteamResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture deleteTeam(DeleteTeamRequest request) { AsyncRequestOperation operation @@ -305,7 +321,9 @@ public CompletableFuture deleteTeam(DeleteTeam /** * Bulk index teams * - *

Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @return The async call builder */ @@ -316,10 +334,12 @@ public PostApiIndexV1BulkindexteamsRequestBuilder bulkIndexTeams() { /** * Bulk index teams * - *

Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1BulkindexteamsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture bulkIndexTeams(BulkIndexTeamsRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncPermissions.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncPermissions.java index 4711b982..486e73b9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncPermissions.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncPermissions.java @@ -95,7 +95,7 @@ public PostApiIndexV1UpdatepermissionsRequestBuilder updatePermissions() { *

Updates the permissions for a given document without modifying document content. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1UpdatepermissionsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture updatePermissions(UpdatePermissionsRequest request) { AsyncRequestOperation operation @@ -122,7 +122,7 @@ public PostApiIndexV1IndexuserRequestBuilder indexUser() { *

Adds a datasource user or updates an existing user. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1IndexuserResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture indexUser(IndexUserRequest request) { AsyncRequestOperation operation @@ -135,7 +135,9 @@ public CompletableFuture indexUser(IndexUserReq /** * Bulk index users * - *

Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @return The async call builder */ @@ -146,10 +148,12 @@ public PostApiIndexV1BulkindexusersRequestBuilder bulkIndexUsers() { /** * Bulk index users * - *

Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1BulkindexusersResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture bulkIndexUsers(BulkIndexUsersRequest request) { AsyncRequestOperation operation @@ -176,7 +180,7 @@ public PostApiIndexV1IndexgroupRequestBuilder indexGroup() { *

Add or update a group in the datasource. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1IndexgroupResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture indexGroup(IndexGroupRequest request) { AsyncRequestOperation operation @@ -189,7 +193,9 @@ public CompletableFuture indexGroup(IndexGroup /** * Bulk index groups * - *

Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @return The async call builder */ @@ -200,10 +206,12 @@ public PostApiIndexV1BulkindexgroupsRequestBuilder bulkIndexGroups() { /** * Bulk index groups * - *

Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1BulkindexgroupsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture bulkIndexGroups(BulkIndexGroupsRequest request) { AsyncRequestOperation operation @@ -230,7 +238,7 @@ public PostApiIndexV1IndexmembershipRequestBuilder indexMembership() { *

Add the memberships of a group in the datasource. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1IndexmembershipResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture indexMembership(IndexMembershipRequest request) { AsyncRequestOperation operation @@ -243,7 +251,9 @@ public CompletableFuture indexMembership( /** * Bulk index memberships for a group * - *

Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer + * to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) + * documentation for an explanation of how to use bulk endpoints. * * @return The async call builder */ @@ -254,10 +264,12 @@ public PostApiIndexV1BulkindexmembershipsRequestBuilder bulkIndexMemberships() { /** * Bulk index memberships for a group * - *

Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer + * to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) + * documentation for an explanation of how to use bulk endpoints. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1BulkindexmembershipsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture bulkIndexMemberships(BulkIndexMembershipsRequest request) { AsyncRequestOperation operation @@ -270,7 +282,9 @@ public CompletableFuture bulkIndexMe /** * Schedules the processing of group memberships * - *

Schedules the immediate processing of all group memberships uploaded through the indexing API. By default the uploaded group memberships will be processed asynchronously but this API can be used to schedule processing of all memberships on demand. + *

Schedules the immediate processing of all group memberships uploaded through the indexing API. By + * default the uploaded group memberships will be processed asynchronously but this API can be used to + * schedule processing of all memberships on demand. * * @return The async call builder */ @@ -281,9 +295,11 @@ public PostApiIndexV1ProcessallmembershipsRequestBuilder processMemberships() { /** * Schedules the processing of group memberships * - *

Schedules the immediate processing of all group memberships uploaded through the indexing API. By default the uploaded group memberships will be processed asynchronously but this API can be used to schedule processing of all memberships on demand. + *

Schedules the immediate processing of all group memberships uploaded through the indexing API. By + * default the uploaded group memberships will be processed asynchronously but this API can be used to + * schedule processing of all memberships on demand. * - * @return CompletableFuture<PostApiIndexV1ProcessallmembershipsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture processMembershipsDirect() { return processMemberships(Optional.empty()); @@ -292,10 +308,12 @@ public CompletableFuture processMem /** * Schedules the processing of group memberships * - *

Schedules the immediate processing of all group memberships uploaded through the indexing API. By default the uploaded group memberships will be processed asynchronously but this API can be used to schedule processing of all memberships on demand. + *

Schedules the immediate processing of all group memberships uploaded through the indexing API. By + * default the uploaded group memberships will be processed asynchronously but this API can be used to + * schedule processing of all memberships on demand. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1ProcessallmembershipsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture processMemberships(Optional request) { AsyncRequestOperation, PostApiIndexV1ProcessallmembershipsResponse> operation @@ -322,7 +340,7 @@ public PostApiIndexV1DeleteuserRequestBuilder deleteUser() { *

Delete the user from the datasource. Silently succeeds if user is not present. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1DeleteuserResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture deleteUser(DeleteUserRequest request) { AsyncRequestOperation operation @@ -349,7 +367,7 @@ public PostApiIndexV1DeletegroupRequestBuilder deleteGroup() { *

Delete group from the datasource. Silently succeeds if group is not present. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1DeletegroupResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture deleteGroup(DeleteGroupRequest request) { AsyncRequestOperation operation @@ -362,7 +380,8 @@ public CompletableFuture deleteGroup(DeleteGr /** * Delete membership * - *

Delete membership to a group in the specified datasource. Silently succeeds if membership is not present. + *

Delete membership to a group in the specified datasource. Silently succeeds if membership is not + * present. * * @return The async call builder */ @@ -373,10 +392,11 @@ public PostApiIndexV1DeletemembershipRequestBuilder deleteMembership() { /** * Delete membership * - *

Delete membership to a group in the specified datasource. Silently succeeds if membership is not present. + *

Delete membership to a group in the specified datasource. Silently succeeds if membership is not + * present. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1DeletemembershipResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture deleteMembership(DeleteMembershipRequest request) { AsyncRequestOperation operation @@ -389,7 +409,8 @@ public CompletableFuture deleteMembershi /** * Beta users * - *

Allow the datasource be visible to the specified beta users. The default behaviour is datasource being visible to all users if it is enabled and not visible to any user if it is not enabled. + *

Allow the datasource be visible to the specified beta users. The default behaviour is datasource + * being visible to all users if it is enabled and not visible to any user if it is not enabled. * * @return The async call builder */ @@ -400,10 +421,11 @@ public PostApiIndexV1BetausersRequestBuilder authorizeBetaUsers() { /** * Beta users * - *

Allow the datasource be visible to the specified beta users. The default behaviour is datasource being visible to all users if it is enabled and not visible to any user if it is not enabled. + *

Allow the datasource be visible to the specified beta users. The default behaviour is datasource + * being visible to all users if it is enabled and not visible to any user if it is not enabled. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostApiIndexV1BetausersResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture authorizeBetaUsers(GreenlistUsersRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncPins.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncPins.java index fbe2d664..f73a19cb 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncPins.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncPins.java @@ -65,7 +65,7 @@ public EditpinRequestBuilder update() { *

Update an existing user-generated pin. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<EditpinResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture update(EditPinRequest request) { AsyncRequestOperation operation @@ -92,7 +92,7 @@ public GetpinRequestBuilder retrieve() { *

Read pin details given its ID. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<GetpinResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(GetPinRequest request) { AsyncRequestOperation operation @@ -119,7 +119,7 @@ public ListpinsRequestBuilder list() { *

Lists all pins. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<ListpinsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture list(ListpinsRequest request) { AsyncRequestOperation operation @@ -146,7 +146,7 @@ public PinRequestBuilder create() { *

Pin a document as a result for a given search query.Pin results that are known to be a good match. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PinResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture create(PinRequest request) { AsyncRequestOperation operation @@ -173,7 +173,7 @@ public UnpinRequestBuilder remove() { *

Unpin a previously pinned result. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<UnpinResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture remove(Unpin request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncPolicies.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncPolicies.java index ba4ccf87..d121ef91 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncPolicies.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncPolicies.java @@ -71,7 +71,7 @@ public GetpolicyRequestBuilder retrieve() { *

Fetches the specified policy version, or the latest if no version is provided. * * @param id The id of the policy to fetch. - * @return CompletableFuture<GetpolicyResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(String id) { return retrieve(id, Optional.empty()); @@ -84,7 +84,7 @@ public CompletableFuture retrieve(String id) { * * @param id The id of the policy to fetch. * @param version The version of the policy to fetch. Each time a policy is updated, the older version is still stored. If this is left empty, the latest policy is fetched. - * @return CompletableFuture<GetpolicyResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(String id, Optional version) { GetpolicyRequest request = @@ -118,7 +118,7 @@ public UpdatepolicyRequestBuilder update() { * * @param id The id of the policy to fetch. * @param updateDlpReportRequest - * @return CompletableFuture<UpdatepolicyResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture update(String id, UpdateDlpReportRequest updateDlpReportRequest) { UpdatepolicyRequest request = @@ -150,7 +150,7 @@ public ListpoliciesRequestBuilder list() { * *

Lists policies with filtering. * - * @return CompletableFuture<ListpoliciesResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture listDirect() { return list(Optional.empty(), Optional.empty()); @@ -163,7 +163,7 @@ public CompletableFuture listDirect() { * * @param autoHide Filter to return reports with a given value of auto-hide. * @param frequency Filter to return reports with a given frequency. - * @return CompletableFuture<ListpoliciesResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture list(Optional autoHide, Optional frequency) { ListpoliciesRequest request = @@ -196,7 +196,7 @@ public CreatepolicyRequestBuilder create() { *

Creates a new policy with specified specifications and returns its id. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<CreatepolicyResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture create(CreateDlpReportRequest request) { AsyncRequestOperation operation @@ -223,7 +223,7 @@ public DownloadpolicycsvRequestBuilder download() { *

Downloads CSV violations report for a specific policy id. This does not support continuous policies. * * @param id The id of the policy to download violations for. - * @return CompletableFuture<DownloadpolicycsvResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture download(String id) { DownloadpolicycsvRequest request = diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncReports.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncReports.java index 4f9c1d40..a22d5f18 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncReports.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncReports.java @@ -59,7 +59,7 @@ public CreatereportRequestBuilder create() { *

Creates a new one-time report and executes its batch job. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<CreatereportResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture create(UpdateDlpConfigRequest request) { AsyncRequestOperation operation @@ -86,7 +86,7 @@ public DownloadreportcsvRequestBuilder download() { *

Downloads CSV violations report for a specific report id. * * @param id The id of the report to download violations for. - * @return CompletableFuture<DownloadreportcsvResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture download(String id) { DownloadreportcsvRequest request = @@ -118,7 +118,7 @@ public GetreportstatusRequestBuilder status() { *

Fetches the status of the run corresponding to the report-id. * * @param id The id of the report to get run status for. - * @return CompletableFuture<GetreportstatusResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture status(String id) { GetreportstatusRequest request = diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncSearch.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncSearch.java index 8a4be4ef..ea599f3c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncSearch.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncSearch.java @@ -50,7 +50,8 @@ public Search sync() { /** * Search the index (admin) * - *

Retrieves results for search query without respect for permissions. This is available only to privileged users. + *

Retrieves results for search query without respect for permissions. This is available only to + * privileged users. * * @return The async call builder */ @@ -61,10 +62,11 @@ public AdminsearchRequestBuilder queryAsAdmin() { /** * Search the index (admin) * - *

Retrieves results for search query without respect for permissions. This is available only to privileged users. + *

Retrieves results for search query without respect for permissions. This is available only to + * privileged users. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<AdminsearchResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture queryAsAdmin(SearchRequest request) { AsyncRequestOperation operation @@ -91,7 +93,7 @@ public AutocompleteRequestBuilder autocomplete() { *

Retrieve query suggestions, operators and documents for the given partially typed query. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<AutocompleteResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture autocomplete(AutocompleteRequest request) { AsyncRequestOperation operation @@ -104,7 +106,8 @@ public CompletableFuture autocomplete(AutocompleteRequest /** * Feed of documents and events * - *

The personalized feed/home includes different types of contents including suggestions, recents, calendar events and many more. + *

The personalized feed/home includes different types of contents including suggestions, recents, + * calendar events and many more. * * @return The async call builder */ @@ -115,10 +118,11 @@ public FeedRequestBuilder retrieveFeed() { /** * Feed of documents and events * - *

The personalized feed/home includes different types of contents including suggestions, recents, calendar events and many more. + *

The personalized feed/home includes different types of contents including suggestions, recents, + * calendar events and many more. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<FeedResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveFeed(FeedRequest request) { AsyncRequestOperation operation @@ -145,7 +149,7 @@ public RecommendationsRequestBuilder recommendations() { *

Retrieve recommended documents for the given URL or Glean Document ID. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<RecommendationsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture recommendations(RecommendationsRequest request) { AsyncRequestOperation operation @@ -172,7 +176,7 @@ public SearchRequestBuilder query() { *

Retrieve results from the index for the given query and filters. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<SearchResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture query(SearchRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java index b2403a1c..3581f796 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java @@ -43,7 +43,8 @@ public Tools sync() { /** * List available tools * - *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. + *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are + * provided, all available tools are returned. * * @return The async call builder */ @@ -54,9 +55,10 @@ public GetRestApiV1ToolsListRequestBuilder list() { /** * List available tools * - *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. + *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are + * provided, all available tools are returned. * - * @return CompletableFuture<GetRestApiV1ToolsListResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture listDirect() { return list(Optional.empty()); @@ -65,10 +67,11 @@ public CompletableFuture listDirect() { /** * List available tools * - *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. + *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are + * provided, all available tools are returned. * * @param toolNames Optional array of tool names to filter by - * @return CompletableFuture<GetRestApiV1ToolsListResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture list(Optional> toolNames) { GetRestApiV1ToolsListRequest request = @@ -100,7 +103,7 @@ public PostRestApiV1ToolsCallRequestBuilder run() { *

Execute the specified tool with provided parameters * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<PostRestApiV1ToolsCallResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture run(ToolsCallRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncVerification.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncVerification.java index c186b192..e9d60a50 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncVerification.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncVerification.java @@ -46,7 +46,8 @@ public Verification sync() { /** * Create verification * - *

Creates a verification reminder for the document. Users can create verification reminders from different product surfaces. + *

Creates a verification reminder for the document. Users can create verification reminders from + * different product surfaces. * * @return The async call builder */ @@ -57,10 +58,11 @@ public AddverificationreminderRequestBuilder addReminder() { /** * Create verification * - *

Creates a verification reminder for the document. Users can create verification reminders from different product surfaces. + *

Creates a verification reminder for the document. Users can create verification reminders from + * different product surfaces. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<AddverificationreminderResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture addReminder(ReminderRequest request) { AsyncRequestOperation operation @@ -73,7 +75,8 @@ public CompletableFuture addReminder(ReminderRe /** * List verifications * - *

Returns the information to be rendered in verification dashboard. Includes information for each document owned by user regarding their verifications. + *

Returns the information to be rendered in verification dashboard. Includes information for each + * document owned by user regarding their verifications. * * @return The async call builder */ @@ -84,9 +87,10 @@ public ListverificationsRequestBuilder list() { /** * List verifications * - *

Returns the information to be rendered in verification dashboard. Includes information for each document owned by user regarding their verifications. + *

Returns the information to be rendered in verification dashboard. Includes information for each + * document owned by user regarding their verifications. * - * @return CompletableFuture<ListverificationsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture listDirect() { return list(Optional.empty()); @@ -95,10 +99,11 @@ public CompletableFuture listDirect() { /** * List verifications * - *

Returns the information to be rendered in verification dashboard. Includes information for each document owned by user regarding their verifications. + *

Returns the information to be rendered in verification dashboard. Includes information for each + * document owned by user regarding their verifications. * * @param count Maximum number of documents to return - * @return CompletableFuture<ListverificationsResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture list(Optional count) { ListverificationsRequest request = @@ -130,7 +135,7 @@ public VerifyRequestBuilder verify() { *

Verify documents to keep the knowledge up to date within customer corpus. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<VerifyResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture verify(VerifyRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncVisibilityoverrides.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncVisibilityoverrides.java index c2aff812..94fdbbf5 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncVisibilityoverrides.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncVisibilityoverrides.java @@ -56,7 +56,7 @@ public GetdocvisibilityRequestBuilder list() { * *

Fetches the visibility override status of the documents passed. * - * @return CompletableFuture<GetdocvisibilityResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture listDirect() { return list(Optional.empty()); @@ -68,7 +68,7 @@ public CompletableFuture listDirect() { *

Fetches the visibility override status of the documents passed. * * @param docIds List of doc-ids which will have their hide status fetched. - * @return CompletableFuture<GetdocvisibilityResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture list(Optional> docIds) { GetdocvisibilityRequest request = @@ -86,7 +86,8 @@ public CompletableFuture list(OptionalSets the visibility-override state of the documents specified, effectively hiding or un-hiding documents. + *

Sets the visibility-override state of the documents specified, effectively hiding or un-hiding + * documents. * * @return The async call builder */ @@ -97,10 +98,11 @@ public SetdocvisibilityRequestBuilder create() { /** * Hide or unhide docs * - *

Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents. + *

Sets the visibility-override state of the documents specified, effectively hiding or un-hiding + * documents. * * @param request The request object containing all the parameters for the API call. - * @return CompletableFuture<SetdocvisibilityResponse> - The async response + * @return {@code CompletableFuture} - The async response */ public CompletableFuture create(UpdateDocumentVisibilityOverridesRequest request) { AsyncRequestOperation operation diff --git a/src/main/java/com/glean/api_client/glean_api_client/Chat.java b/src/main/java/com/glean/api_client/glean_api_client/Chat.java index 2989b9b4..14ced190 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Chat.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Chat.java @@ -259,7 +259,8 @@ public GetchatResponse retrieve(Optional timezoneOffset, GetChatRequest ge /** * Retrieves all saved Chats * - *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. + *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only + * metadata and no conversational content. * * @return The call builder */ @@ -270,7 +271,8 @@ public ListchatsRequestBuilder list() { /** * Retrieves all saved Chats * - *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. + *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only + * metadata and no conversational content. * * @return The response from the API call * @throws Exception if the API call fails @@ -282,7 +284,8 @@ public ListchatsResponse listDirect() throws Exception { /** * Retrieves all saved Chats * - *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only metadata and no conversational content. + *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only + * metadata and no conversational content. * * @param timezoneOffset The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/ClientDocuments.java b/src/main/java/com/glean/api_client/glean_api_client/ClientDocuments.java index 90bdaf61..87c167f1 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/ClientDocuments.java +++ b/src/main/java/com/glean/api_client/glean_api_client/ClientDocuments.java @@ -74,7 +74,8 @@ public GetdocpermissionsResponse retrievePermissions(GetDocPermissionsRequest re /** * Read documents * - *

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. + *

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. * * @return The call builder */ @@ -85,7 +86,8 @@ public GetdocumentsRequestBuilder retrieve() { /** * Read documents * - *

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. + *

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. * * @return The response from the API call * @throws Exception if the API call fails @@ -97,7 +99,8 @@ public GetdocumentsResponse retrieveDirect() throws Exception { /** * Read documents * - *

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. + *

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. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -112,7 +115,8 @@ public GetdocumentsResponse retrieve(Optional req /** * Read documents by facets * - *

Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) macthing the given facet conditions. + *

Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) + * macthing the given facet conditions. * * @return The call builder */ @@ -123,7 +127,8 @@ public GetdocumentsbyfacetsRequestBuilder retrieveByFacets() { /** * Read documents by facets * - *

Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) macthing the given facet conditions. + *

Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) + * macthing the given facet conditions. * * @return The response from the API call * @throws Exception if the API call fails @@ -135,7 +140,8 @@ public GetdocumentsbyfacetsResponse retrieveByFacetsDirect() throws Exception { /** * Read documents by facets * - *

Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) macthing the given facet conditions. + *

Read the documents including metadata (does not include enhanced metadata via `/documentmetadata`) + * macthing the given facet conditions. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/Datasource.java b/src/main/java/com/glean/api_client/glean_api_client/Datasource.java index b5af3b89..3d978eb0 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Datasource.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Datasource.java @@ -36,9 +36,11 @@ public AsyncDatasource async() { /** * Beta: Get datasource status * - *

Gather information about the datasource's overall status. Currently in beta, might undergo breaking changes without prior notice. + *

Gather information about the datasource's overall status. Currently in beta, might undergo breaking + * changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @return The call builder */ @@ -49,9 +51,11 @@ public PostApiIndexV1DebugDatasourceStatusRequestBuilder status() { /** * Beta: Get datasource status * - *

Gather information about the datasource's overall status. Currently in beta, might undergo breaking changes without prior notice. + *

Gather information about the datasource's overall status. Currently in beta, might undergo breaking + * changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @param datasource The datasource to get debug status for. * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/Entities.java b/src/main/java/com/glean/api_client/glean_api_client/Entities.java index c36b73e9..0b5c06e2 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Entities.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Entities.java @@ -39,7 +39,10 @@ public AsyncEntities async() { /** * List entities * - *

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, except when using FULL_DIRECTORY request type for people entities. + *

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, except when using FULL_DIRECTORY request type for + * people entities. * * @return The call builder */ @@ -50,7 +53,10 @@ public ListentitiesRequestBuilder list() { /** * List entities * - *

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, except when using FULL_DIRECTORY request type for people entities. + *

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, except when using FULL_DIRECTORY request type for + * people entities. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/Glean.java b/src/main/java/com/glean/api_client/glean_api_client/Glean.java index aa53c0aa..417e7195 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Glean.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Glean.java @@ -1,6 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ + package com.glean.api_client.glean_api_client; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -16,10 +17,17 @@ /** * Glean API: # Introduction - * In addition to the data sources that Glean has built-in support for, Glean also provides a REST API that enables customers to put arbitrary content in the search index. This is useful, for example, for doing permissions-aware search over content in internal tools that reside on-prem as well as for searching over applications that Glean does not currently support first class. In addition these APIs allow the customer to push organization data (people info, organization structure etc) into Glean. + * In addition to the data sources that Glean has built-in support for, Glean also provides a REST API + * that enables customers to put arbitrary content in the search index. This is useful, for example, + * for doing permissions-aware search over content in internal tools that reside on-prem as well as for + * searching over applications that Glean does not currently support first class. + * + *

In addition these APIs allow the customer to push organization data (people info, organization + * structure etc) into Glean. * *

# Usage guidelines - * This API is evolving fast. Glean will provide advance notice of any planned backwards incompatible changes along + * This API is evolving fast. Glean will provide advance notice of any planned backwards incompatible + * changes along * with a 6-month sunset period for anything that requires developers to adopt the new versions. * *

# API Clients @@ -30,7 +38,8 @@ * - [Go](https://github.com/gleanwork/api-client-go) * - [Java](https://github.com/gleanwork/api-client-java) * - *

These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice. + *

These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in + * your language of choice. */ public class Glean { private static final Headers _headers = Headers.EMPTY; @@ -59,8 +68,6 @@ public Client client() { public Indexing indexing() { return indexing; } - - private final SDKConfiguration sdkConfiguration; private final AsyncGlean asyncSDK; /** @@ -123,7 +130,7 @@ public Builder serverURL(String serverUrl) { } /** - * Overrides the default server URL with a templated URL populated with the provided parameters. + * Overrides the default server URL with a templated URL populated with the provided parameters. * * @param serverUrl The server URL to use for all requests. * @param params The parameters to use when templating the URL. @@ -184,7 +191,7 @@ public Builder instance(String instance) { if (!server.containsKey("instance")) { continue; } - server.put("instance", instance.toString()); + server.put("instance", instance); } return this; @@ -226,16 +233,15 @@ public static Builder builder() { } public Glean(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - this.sdkConfiguration.initialize(); + sdkConfiguration.initialize(); this.client = new Client(sdkConfiguration); this.indexing = new Indexing(sdkConfiguration); - SdkInitData data = this.sdkConfiguration.hooks().sdkInit( + SdkInitData data = sdkConfiguration.hooks().sdkInit( new SdkInitData( - this.sdkConfiguration.resolvedServerUrl(), - this.sdkConfiguration.client())); - this.sdkConfiguration.setServerUrl(data.baseUrl()); - this.sdkConfiguration.setClient(data.client()); + sdkConfiguration.resolvedServerUrl(), + sdkConfiguration.client())); + sdkConfiguration.setServerUrl(data.baseUrl()); + sdkConfiguration.setClient(data.client()); this.asyncSDK = new AsyncGlean(this, sdkConfiguration); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/IndexingAuthentication.java b/src/main/java/com/glean/api_client/glean_api_client/IndexingAuthentication.java index 6f7ef683..897c6d79 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/IndexingAuthentication.java +++ b/src/main/java/com/glean/api_client/glean_api_client/IndexingAuthentication.java @@ -34,7 +34,13 @@ public AsyncIndexingAuthentication async() { /** * Rotate token * - *

Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the `/rotatetoken` request. Please refer to [Token rotation](https://developers.glean.com/indexing/authentication/token-rotation) documentation for more information. + *

Rotates the secret value inside the Indexing API token and returns the new raw secret. All other + * properties of the token are unchanged. In order to rotate the secret value, include the token as the + * bearer token in the `/rotatetoken` request. + * + *

Please refer to [Token + * rotation](https://developers.glean.com/indexing/authentication/token-rotation) documentation for + * more information. * * @return The call builder */ @@ -45,7 +51,13 @@ public PostApiIndexV1RotatetokenRequestBuilder rotateToken() { /** * Rotate token * - *

Rotates the secret value inside the Indexing API token and returns the new raw secret. All other properties of the token are unchanged. In order to rotate the secret value, include the token as the bearer token in the `/rotatetoken` request. Please refer to [Token rotation](https://developers.glean.com/indexing/authentication/token-rotation) documentation for more information. + *

Rotates the secret value inside the Indexing API token and returns the new raw secret. All other + * properties of the token are unchanged. In order to rotate the secret value, include the token as the + * bearer token in the `/rotatetoken` request. + * + *

Please refer to [Token + * rotation](https://developers.glean.com/indexing/authentication/token-rotation) documentation for + * more information. * * @return The response from the API call * @throws Exception if the API call fails diff --git a/src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java b/src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java index c19c6e3b..9d21668a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java +++ b/src/main/java/com/glean/api_client/glean_api_client/IndexingDocuments.java @@ -102,7 +102,9 @@ public PostApiIndexV1IndexdocumentResponse addOrUpdate(IndexDocumentRequest requ /** * Index documents * - *

Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) documentation for an explanation of when to use this endpoint. + *

Adds or updates multiple documents in the index. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) + * documentation for an explanation of when to use this endpoint. * * @return The call builder */ @@ -113,7 +115,9 @@ public PostApiIndexV1IndexdocumentsRequestBuilder index() { /** * Index documents * - *

Adds or updates multiple documents in the index. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) documentation for an explanation of when to use this endpoint. + *

Adds or updates multiple documents in the index. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-indexing/choosing-indexdocuments-vs-bulkindexdocuments) + * documentation for an explanation of when to use this endpoint. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -128,7 +132,9 @@ public PostApiIndexV1IndexdocumentsResponse index(IndexDocumentsRequest request) /** * Bulk index documents * - *

Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @return The call builder */ @@ -139,7 +145,9 @@ public PostApiIndexV1BulkindexdocumentsRequestBuilder bulkIndex() { /** * Bulk index documents * - *

Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the documents in a datasource using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -154,15 +162,20 @@ public PostApiIndexV1BulkindexdocumentsResponse bulkIndex(BulkIndexDocumentsRequ /** * Schedules the processing of uploaded documents * - *

Schedules the immediate processing of documents uploaded through the indexing API. By default the uploaded documents will be processed asynchronously but this API can be used to schedule processing of all documents on demand. + *

Schedules the immediate processing of documents uploaded through the indexing API. By default the + * uploaded documents will be processed asynchronously but this API can be used to schedule processing + * of all documents on demand. * - *

If a `datasource` parameter is specified, processing is limited to that custom datasource. Without it, processing applies to all documents across all custom datasources. + *

If a `datasource` parameter is specified, processing is limited to that custom datasource. Without + * it, processing applies to all documents across all custom datasources. * #### Rate Limits - * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 response code. Here's how the rate limit works: + * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 + * response code. Here's how the rate limit works: * 1. Calling `/processalldocuments` for datasource `foo` prevents another call for `foo` for 3 hours. * 2. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for `bar`. * 3. Calling `/processalldocuments` for all datasources prevents any datasource calls for 3 hours. - * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all datasources. + * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all + * datasources. * *

For more frequent document processing, contact Glean support. * @@ -175,15 +188,20 @@ public PostApiIndexV1ProcessalldocumentsRequestBuilder processAll() { /** * Schedules the processing of uploaded documents * - *

Schedules the immediate processing of documents uploaded through the indexing API. By default the uploaded documents will be processed asynchronously but this API can be used to schedule processing of all documents on demand. + *

Schedules the immediate processing of documents uploaded through the indexing API. By default the + * uploaded documents will be processed asynchronously but this API can be used to schedule processing + * of all documents on demand. * - *

If a `datasource` parameter is specified, processing is limited to that custom datasource. Without it, processing applies to all documents across all custom datasources. + *

If a `datasource` parameter is specified, processing is limited to that custom datasource. Without + * it, processing applies to all documents across all custom datasources. * #### Rate Limits - * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 response code. Here's how the rate limit works: + * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 + * response code. Here's how the rate limit works: * 1. Calling `/processalldocuments` for datasource `foo` prevents another call for `foo` for 3 hours. * 2. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for `bar`. * 3. Calling `/processalldocuments` for all datasources prevents any datasource calls for 3 hours. - * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all datasources. + * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all + * datasources. * *

For more frequent document processing, contact Glean support. * @@ -197,15 +215,20 @@ public PostApiIndexV1ProcessalldocumentsResponse processAllDirect() throws Excep /** * Schedules the processing of uploaded documents * - *

Schedules the immediate processing of documents uploaded through the indexing API. By default the uploaded documents will be processed asynchronously but this API can be used to schedule processing of all documents on demand. + *

Schedules the immediate processing of documents uploaded through the indexing API. By default the + * uploaded documents will be processed asynchronously but this API can be used to schedule processing + * of all documents on demand. * - *

If a `datasource` parameter is specified, processing is limited to that custom datasource. Without it, processing applies to all documents across all custom datasources. + *

If a `datasource` parameter is specified, processing is limited to that custom datasource. Without + * it, processing applies to all documents across all custom datasources. * #### Rate Limits - * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 response code. Here's how the rate limit works: + * This endpoint is rate-limited to one usage every 3 hours. Exceeding this limit results in a 429 + * response code. Here's how the rate limit works: * 1. Calling `/processalldocuments` for datasource `foo` prevents another call for `foo` for 3 hours. * 2. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for `bar`. * 3. Calling `/processalldocuments` for all datasources prevents any datasource calls for 3 hours. - * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all datasources. + * 4. Calling `/processalldocuments` for datasource `foo` doesn't affect immediate calls for all + * datasources. * *

For more frequent document processing, contact Glean support. * @@ -248,9 +271,11 @@ public PostApiIndexV1DeletedocumentResponse delete(DeleteDocumentRequest request /** * Beta: Get document information * - *

Gives various information that would help in debugging related to a particular document. Currently in beta, might undergo breaking changes without prior notice. + *

Gives various information that would help in debugging related to a particular document. Currently + * in beta, might undergo breaking changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @return The call builder */ @@ -261,9 +286,11 @@ public PostApiIndexV1DebugDatasourceDocumentRequestBuilder debug() { /** * Beta: Get document information * - *

Gives various information that would help in debugging related to a particular document. Currently in beta, might undergo breaking changes without prior notice. + *

Gives various information that would help in debugging related to a particular document. Currently + * in beta, might undergo breaking changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @param datasource The datasource to which the document belongs * @param debugDocumentRequest Describes the request body of the /debug/{datasource}/document API call. @@ -285,9 +312,11 @@ public PostApiIndexV1DebugDatasourceDocumentResponse debug(String datasource, De /** * Beta: Get information of a batch of documents * - *

Gives various information that would help in debugging related to a batch of documents. Currently in beta, might undergo breaking changes without prior notice. + *

Gives various information that would help in debugging related to a batch of documents. Currently in + * beta, might undergo breaking changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @return The call builder */ @@ -298,9 +327,11 @@ public PostApiIndexV1DebugDatasourceDocumentsRequestBuilder debugMany() { /** * Beta: Get information of a batch of documents * - *

Gives various information that would help in debugging related to a batch of documents. Currently in beta, might undergo breaking changes without prior notice. + *

Gives various information that would help in debugging related to a batch of documents. Currently in + * beta, might undergo breaking changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @param datasource The datasource to which the document belongs * @param debugDocumentsRequest Describes the request body of the /debug/{datasource}/documents API call. @@ -324,7 +355,8 @@ public PostApiIndexV1DebugDatasourceDocumentsResponse debugMany(String datasourc * *

Check if a given user has access to access a document in a custom datasource * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @return The call builder */ @@ -337,7 +369,8 @@ public PostApiIndexV1CheckdocumentaccessRequestBuilder checkAccess() { * *

Check if a given user has access to access a document in a custom datasource * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -354,7 +387,9 @@ public PostApiIndexV1CheckdocumentaccessResponse checkAccess(CheckDocumentAccess * *

Intended for debugging/validation. Fetches the current upload and indexing status of documents. * - *

Tip: Use [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) for richer information. + *

Tip: Use + * [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) + * for richer information. * * @return The call builder * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. @@ -369,7 +404,9 @@ public PostApiIndexV1GetdocumentstatusRequestBuilder status() { * *

Intended for debugging/validation. Fetches the current upload and indexing status of documents. * - *

Tip: Use [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) for richer information. + *

Tip: Use + * [/debug/{datasource}/document](https://developers.glean.com/indexing/debugging/datasource-document) + * for richer information. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -388,7 +425,9 @@ public PostApiIndexV1GetdocumentstatusResponse status(GetDocumentStatusRequest r * *

Fetches document count for the specified custom datasource. * - *

Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information. + *

Tip: Use + * [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for + * richer information. * * @return The call builder * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. @@ -403,7 +442,9 @@ public PostApiIndexV1GetdocumentcountRequestBuilder count() { * *

Fetches document count for the specified custom datasource. * - *

Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information. + *

Tip: Use + * [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for + * richer information. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/IndexingShortcuts.java b/src/main/java/com/glean/api_client/glean_api_client/IndexingShortcuts.java index e32734ed..1eb3b704 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/IndexingShortcuts.java +++ b/src/main/java/com/glean/api_client/glean_api_client/IndexingShortcuts.java @@ -39,7 +39,12 @@ public AsyncIndexingShortcuts async() { /** * Bulk index external shortcuts * - *

Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://help.glean.com/en/articles/5628838-how-go-links-work) page. + *

Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this + * endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that + * would be hosted by Glean, please use the `/uploadshortcuts` endpoint. + * + *

For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to + * [this](https://help.glean.com/en/articles/5628838-how-go-links-work) page. * * @return The call builder */ @@ -50,7 +55,12 @@ public PostApiIndexV1BulkindexshortcutsRequestBuilder bulkIndex() { /** * Bulk index external shortcuts * - *

Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that would be hosted by Glean, please use the `/uploadshortcuts` endpoint. For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to [this](https://help.glean.com/en/articles/5628838-how-go-links-work) page. + *

Replaces all the currently indexed shortcuts using paginated batch API calls. Note that this + * endpoint is used for indexing shortcuts not hosted by Glean. If you want to upload shortcuts that + * would be hosted by Glean, please use the `/uploadshortcuts` endpoint. + * + *

For information on what you can do with Golinks, which are Glean-hosted shortcuts, please refer to + * [this](https://help.glean.com/en/articles/5628838-how-go-links-work) page. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -65,7 +75,8 @@ public PostApiIndexV1BulkindexshortcutsResponse bulkIndex(BulkIndexShortcutsRequ /** * Upload shortcuts * - *

Creates glean shortcuts for uploaded shortcuts info. Glean would host the shortcuts, and they can be managed in the knowledge tab once uploaded. + *

Creates glean shortcuts for uploaded shortcuts info. Glean would host the shortcuts, and they can be + * managed in the knowledge tab once uploaded. * * @return The call builder */ @@ -76,7 +87,8 @@ public PostApiIndexV1UploadshortcutsRequestBuilder upload() { /** * Upload shortcuts * - *

Creates glean shortcuts for uploaded shortcuts info. Glean would host the shortcuts, and they can be managed in the knowledge tab once uploaded. + *

Creates glean shortcuts for uploaded shortcuts info. Glean would host the shortcuts, and they can be + * managed in the knowledge tab once uploaded. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/Insights.java b/src/main/java/com/glean/api_client/glean_api_client/Insights.java index f332084e..58266048 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Insights.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Insights.java @@ -32,9 +32,9 @@ public AsyncInsights async() { } /** - * Read insights + * Get insights * - *

Reads the aggregate information for each user, query, and content. + *

Gets the aggregate usage insights data displayed in the Insights Dashboards. * * @return The call builder */ @@ -43,9 +43,9 @@ public InsightsRequestBuilder retrieve() { } /** - * Read insights + * Get insights * - *

Reads the aggregate information for each user, query, and content. + *

Gets the aggregate usage insights data displayed in the Insights Dashboards. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/People.java b/src/main/java/com/glean/api_client/glean_api_client/People.java index a4788f8a..ba6624ab 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/People.java +++ b/src/main/java/com/glean/api_client/glean_api_client/People.java @@ -70,9 +70,11 @@ public AsyncPeople async() { /** * Beta: Get user information * - *

Gives various information that would help in debugging related to a particular user. Currently in beta, might undergo breaking changes without prior notice. + *

Gives various information that would help in debugging related to a particular user. Currently in + * beta, might undergo breaking changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @return The call builder */ @@ -83,9 +85,11 @@ public PostApiIndexV1DebugDatasourceUserRequestBuilder debug() { /** * Beta: Get user information * - *

Gives various information that would help in debugging related to a particular user. Currently in beta, might undergo breaking changes without prior notice. + *

Gives various information that would help in debugging related to a particular user. Currently in + * beta, might undergo breaking changes without prior notice. * - *

Tip: Refer to the [Troubleshooting tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. + *

Tip: Refer to the [Troubleshooting + * tutorial](https://developers.glean.com/indexing/debugging/datasource-config) for more information. * * @param datasource The datasource to which the user belongs * @param debugUserRequest Describes the request body of the /debug/{datasource}/user API call @@ -109,7 +113,9 @@ public PostApiIndexV1DebugDatasourceUserResponse debug(String datasource, DebugU * *

Fetches user count for the specified custom datasource. * - *

Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information. + *

Tip: Use + * [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for + * richer information. * * @return The call builder * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. @@ -124,7 +130,9 @@ public PostApiIndexV1GetusercountRequestBuilder count() { * *

Fetches user count for the specified custom datasource. * - *

Tip: Use [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for richer information. + *

Tip: Use + * [/debug/{datasource}/status](https://developers.glean.com/indexing/debugging/datasource-status) for + * richer information. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -167,7 +175,9 @@ public PostApiIndexV1IndexemployeeResponse index(IndexEmployeeRequest request) t /** * Bulk index employees * - *

Replaces all the currently indexed employees using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces all the currently indexed employees using paginated batch API calls. Please refer to the + * [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for + * an explanation of how to use bulk endpoints. * * @return The call builder */ @@ -178,7 +188,9 @@ public PostApiIndexV1BulkindexemployeesRequestBuilder bulkIndex() { /** * Bulk index employees * - *

Replaces all the currently indexed employees using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces all the currently indexed employees using paginated batch API calls. Please refer to the + * [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for + * an explanation of how to use bulk endpoints. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -193,7 +205,9 @@ public PostApiIndexV1BulkindexemployeesResponse bulkIndex(BulkIndexEmployeesRequ /** * Schedules the processing of uploaded employees and teams * - *

Schedules the immediate processing of employees and teams uploaded through the indexing API. By default all uploaded people data will be processed asynchronously but this API can be used to schedule its processing on demand. + *

Schedules the immediate processing of employees and teams uploaded through the indexing API. By + * default all uploaded people data will be processed asynchronously but this API can be used to + * schedule its processing on demand. * * @return The call builder */ @@ -204,7 +218,9 @@ public PostApiIndexV1ProcessallemployeesandteamsRequestBuilder processAllEmploye /** * Schedules the processing of uploaded employees and teams * - *

Schedules the immediate processing of employees and teams uploaded through the indexing API. By default all uploaded people data will be processed asynchronously but this API can be used to schedule its processing on demand. + *

Schedules the immediate processing of employees and teams uploaded through the indexing API. By + * default all uploaded people data will be processed asynchronously but this API can be used to + * schedule its processing on demand. * * @return The response from the API call * @throws Exception if the API call fails @@ -296,7 +312,9 @@ public PostApiIndexV1DeleteteamResponse deleteTeam(DeleteTeamRequest request) th /** * Bulk index teams * - *

Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @return The call builder */ @@ -307,7 +325,9 @@ public PostApiIndexV1BulkindexteamsRequestBuilder bulkIndexTeams() { /** * Bulk index teams * - *

Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces all the currently indexed teams using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/Permissions.java b/src/main/java/com/glean/api_client/glean_api_client/Permissions.java index bc85fb25..ac5b845e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Permissions.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Permissions.java @@ -132,7 +132,9 @@ public PostApiIndexV1IndexuserResponse indexUser(IndexUserRequest request) throw /** * Bulk index users * - *

Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @return The call builder */ @@ -143,7 +145,9 @@ public PostApiIndexV1BulkindexusersRequestBuilder bulkIndexUsers() { /** * Bulk index users * - *

Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the users in a datasource using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -184,7 +188,9 @@ public PostApiIndexV1IndexgroupResponse indexGroup(IndexGroupRequest request) th /** * Bulk index groups * - *

Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @return The call builder */ @@ -195,7 +201,9 @@ public PostApiIndexV1BulkindexgroupsRequestBuilder bulkIndexGroups() { /** * Bulk index groups * - *

Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the groups in a datasource using paginated batch API calls. Please refer to the [bulk + * indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an + * explanation of how to use bulk endpoints. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -236,7 +244,9 @@ public PostApiIndexV1IndexmembershipResponse indexMembership(IndexMembershipRequ /** * Bulk index memberships for a group * - *

Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer + * to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) + * documentation for an explanation of how to use bulk endpoints. * * @return The call builder */ @@ -247,7 +257,9 @@ public PostApiIndexV1BulkindexmembershipsRequestBuilder bulkIndexMemberships() { /** * Bulk index memberships for a group * - *

Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) documentation for an explanation of how to use bulk endpoints. + *

Replaces the memberships for a group in a datasource using paginated batch API calls. Please refer + * to the [bulk indexing](https://developers.glean.com/indexing/documents/bulk-upload-model) + * documentation for an explanation of how to use bulk endpoints. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -262,7 +274,9 @@ public PostApiIndexV1BulkindexmembershipsResponse bulkIndexMemberships(BulkIndex /** * Schedules the processing of group memberships * - *

Schedules the immediate processing of all group memberships uploaded through the indexing API. By default the uploaded group memberships will be processed asynchronously but this API can be used to schedule processing of all memberships on demand. + *

Schedules the immediate processing of all group memberships uploaded through the indexing API. By + * default the uploaded group memberships will be processed asynchronously but this API can be used to + * schedule processing of all memberships on demand. * * @return The call builder */ @@ -273,7 +287,9 @@ public PostApiIndexV1ProcessallmembershipsRequestBuilder processMemberships() { /** * Schedules the processing of group memberships * - *

Schedules the immediate processing of all group memberships uploaded through the indexing API. By default the uploaded group memberships will be processed asynchronously but this API can be used to schedule processing of all memberships on demand. + *

Schedules the immediate processing of all group memberships uploaded through the indexing API. By + * default the uploaded group memberships will be processed asynchronously but this API can be used to + * schedule processing of all memberships on demand. * * @return The response from the API call * @throws Exception if the API call fails @@ -285,7 +301,9 @@ public PostApiIndexV1ProcessallmembershipsResponse processMembershipsDirect() th /** * Schedules the processing of group memberships * - *

Schedules the immediate processing of all group memberships uploaded through the indexing API. By default the uploaded group memberships will be processed asynchronously but this API can be used to schedule processing of all memberships on demand. + *

Schedules the immediate processing of all group memberships uploaded through the indexing API. By + * default the uploaded group memberships will be processed asynchronously but this API can be used to + * schedule processing of all memberships on demand. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -352,7 +370,8 @@ public PostApiIndexV1DeletegroupResponse deleteGroup(DeleteGroupRequest request) /** * Delete membership * - *

Delete membership to a group in the specified datasource. Silently succeeds if membership is not present. + *

Delete membership to a group in the specified datasource. Silently succeeds if membership is not + * present. * * @return The call builder */ @@ -363,7 +382,8 @@ public PostApiIndexV1DeletemembershipRequestBuilder deleteMembership() { /** * Delete membership * - *

Delete membership to a group in the specified datasource. Silently succeeds if membership is not present. + *

Delete membership to a group in the specified datasource. Silently succeeds if membership is not + * present. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -378,7 +398,8 @@ public PostApiIndexV1DeletemembershipResponse deleteMembership(DeleteMembershipR /** * Beta users * - *

Allow the datasource be visible to the specified beta users. The default behaviour is datasource being visible to all users if it is enabled and not visible to any user if it is not enabled. + *

Allow the datasource be visible to the specified beta users. The default behaviour is datasource + * being visible to all users if it is enabled and not visible to any user if it is not enabled. * * @return The call builder */ @@ -389,7 +410,8 @@ public PostApiIndexV1BetausersRequestBuilder authorizeBetaUsers() { /** * Beta users * - *

Allow the datasource be visible to the specified beta users. The default behaviour is datasource being visible to all users if it is enabled and not visible to any user if it is not enabled. + *

Allow the datasource be visible to the specified beta users. The default behaviour is datasource + * being visible to all users if it is enabled and not visible to any user if it is not enabled. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java index a39ea93c..8c87256e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java +++ b/src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java @@ -24,8 +24,8 @@ public class SDKConfiguration { private static final String LANGUAGE = "java"; public static final String OPENAPI_DOC_VERSION = "0.9.0"; - public static final String SDK_VERSION = "0.9.1"; - public static final String GEN_VERSION = "2.716.3"; + public static final String SDK_VERSION = "0.10.0"; + public static final String GEN_VERSION = "2.716.16"; private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/com/glean/api_client/glean_api_client/Search.java b/src/main/java/com/glean/api_client/glean_api_client/Search.java index 072c93b1..51101c49 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Search.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Search.java @@ -49,7 +49,8 @@ public AsyncSearch async() { /** * Search the index (admin) * - *

Retrieves results for search query without respect for permissions. This is available only to privileged users. + *

Retrieves results for search query without respect for permissions. This is available only to + * privileged users. * * @return The call builder */ @@ -60,7 +61,8 @@ public AdminsearchRequestBuilder queryAsAdmin() { /** * Search the index (admin) * - *

Retrieves results for search query without respect for permissions. This is available only to privileged users. + *

Retrieves results for search query without respect for permissions. This is available only to + * privileged users. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -101,7 +103,8 @@ public AutocompleteResponse autocomplete(AutocompleteRequest request) throws Exc /** * Feed of documents and events * - *

The personalized feed/home includes different types of contents including suggestions, recents, calendar events and many more. + *

The personalized feed/home includes different types of contents including suggestions, recents, + * calendar events and many more. * * @return The call builder */ @@ -112,7 +115,8 @@ public FeedRequestBuilder retrieveFeed() { /** * Feed of documents and events * - *

The personalized feed/home includes different types of contents including suggestions, recents, calendar events and many more. + *

The personalized feed/home includes different types of contents including suggestions, recents, + * calendar events and many more. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/Tools.java b/src/main/java/com/glean/api_client/glean_api_client/Tools.java index 9f4fe551..69399a29 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Tools.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Tools.java @@ -42,7 +42,8 @@ public AsyncTools async() { /** * List available tools * - *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. + *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are + * provided, all available tools are returned. * * @return The call builder */ @@ -53,7 +54,8 @@ public GetRestApiV1ToolsListRequestBuilder list() { /** * List available tools * - *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. + *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are + * provided, all available tools are returned. * * @return The response from the API call * @throws Exception if the API call fails @@ -65,7 +67,8 @@ public GetRestApiV1ToolsListResponse listDirect() throws Exception { /** * List available tools * - *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are provided, all available tools are returned. + *

Returns a filtered set of available tools based on optional tool name parameters. If no filters are + * provided, all available tools are returned. * * @param toolNames Optional array of tool names to filter by * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/Verification.java b/src/main/java/com/glean/api_client/glean_api_client/Verification.java index d76c1ce7..920e4903 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Verification.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Verification.java @@ -45,7 +45,8 @@ public AsyncVerification async() { /** * Create verification * - *

Creates a verification reminder for the document. Users can create verification reminders from different product surfaces. + *

Creates a verification reminder for the document. Users can create verification reminders from + * different product surfaces. * * @return The call builder */ @@ -56,7 +57,8 @@ public AddverificationreminderRequestBuilder addReminder() { /** * Create verification * - *

Creates a verification reminder for the document. Users can create verification reminders from different product surfaces. + *

Creates a verification reminder for the document. Users can create verification reminders from + * different product surfaces. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call @@ -71,7 +73,8 @@ public AddverificationreminderResponse addReminder(ReminderRequest request) thro /** * List verifications * - *

Returns the information to be rendered in verification dashboard. Includes information for each document owned by user regarding their verifications. + *

Returns the information to be rendered in verification dashboard. Includes information for each + * document owned by user regarding their verifications. * * @return The call builder */ @@ -82,7 +85,8 @@ public ListverificationsRequestBuilder list() { /** * List verifications * - *

Returns the information to be rendered in verification dashboard. Includes information for each document owned by user regarding their verifications. + *

Returns the information to be rendered in verification dashboard. Includes information for each + * document owned by user regarding their verifications. * * @return The response from the API call * @throws Exception if the API call fails @@ -94,7 +98,8 @@ public ListverificationsResponse listDirect() throws Exception { /** * List verifications * - *

Returns the information to be rendered in verification dashboard. Includes information for each document owned by user regarding their verifications. + *

Returns the information to be rendered in verification dashboard. Includes information for each + * document owned by user regarding their verifications. * * @param count Maximum number of documents to return * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/Visibilityoverrides.java b/src/main/java/com/glean/api_client/glean_api_client/Visibilityoverrides.java index e12a8d86..863b4833 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Visibilityoverrides.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Visibilityoverrides.java @@ -85,7 +85,8 @@ public GetdocvisibilityResponse list(Optional> docIds) th /** * Hide or unhide docs * - *

Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents. + *

Sets the visibility-override state of the documents specified, effectively hiding or un-hiding + * documents. * * @return The call builder */ @@ -96,7 +97,8 @@ public SetdocvisibilityRequestBuilder create() { /** * Hide or unhide docs * - *

Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents. + *

Sets the visibility-override state of the documents specified, effectively hiding or un-hiding + * documents. * * @param request The request object containing all the parameters for the API call. * @return The response from the API call diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ActivityEvent.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ActivityEvent.java index 3e8aff4a..cd9b2a12 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ActivityEvent.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ActivityEvent.java @@ -18,7 +18,8 @@ public class ActivityEvent { /** - * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. + * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest + * received event of a given UUID is considered valid by the server and subsequent are ignored. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") @@ -75,7 +76,8 @@ public ActivityEvent( } /** - * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. + * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest + * received event of a given UUID is considered valid by the server and subsequent are ignored. */ @JsonIgnore public Optional id() { @@ -118,7 +120,8 @@ public static Builder builder() { /** - * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. + * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest + * received event of a given UUID is considered valid by the server and subsequent are ignored. */ public ActivityEvent withId(String id) { Utils.checkNotNull(id, "id"); @@ -128,7 +131,8 @@ public ActivityEvent withId(String id) { /** - * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. + * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest + * received event of a given UUID is considered valid by the server and subsequent are ignored. */ public ActivityEvent withId(Optional id) { Utils.checkNotNull(id, "id"); @@ -229,7 +233,8 @@ private Builder() { /** - * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. + * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest + * received event of a given UUID is considered valid by the server and subsequent are ignored. */ public Builder id(String id) { Utils.checkNotNull(id, "id"); @@ -238,7 +243,8 @@ public Builder id(String id) { } /** - * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. + * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest + * received event of a given UUID is considered valid by the server and subsequent are ignored. */ public Builder id(Optional id) { Utils.checkNotNull(id, "id"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ActivityEventParams.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ActivityEventParams.java index 9ee966e8..4fcbe110 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ActivityEventParams.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ActivityEventParams.java @@ -39,14 +39,16 @@ public class ActivityEventParams { private Optional datasource; /** - * The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the event + * The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the + * event */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("instanceOnlyName") private Optional instanceOnlyName; /** - * Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the foreground. + * Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the + * foreground. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("duration") @@ -74,7 +76,8 @@ public class ActivityEventParams { private Optional title; /** - * Indicates that the parameters are incomplete and more parameters may be sent with the same action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. + * Indicates that the parameters are incomplete and more parameters may be sent with the same + * action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("truncated") @@ -142,7 +145,8 @@ public Optional datasource() { } /** - * The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the event + * The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the + * event */ @JsonIgnore public Optional instanceOnlyName() { @@ -150,7 +154,8 @@ public Optional instanceOnlyName() { } /** - * Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the foreground. + * Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the + * foreground. */ @JsonIgnore public Optional duration() { @@ -182,7 +187,8 @@ public Optional title() { } /** - * Indicates that the parameters are incomplete and more parameters may be sent with the same action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. + * Indicates that the parameters are incomplete and more parameters may be sent with the same + * action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. */ @JsonIgnore public Optional truncated() { @@ -252,7 +258,8 @@ public ActivityEventParams withDatasource(Optional datasource) { } /** - * The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the event + * The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the + * event */ public ActivityEventParams withInstanceOnlyName(String instanceOnlyName) { Utils.checkNotNull(instanceOnlyName, "instanceOnlyName"); @@ -262,7 +269,8 @@ public ActivityEventParams withInstanceOnlyName(String instanceOnlyName) { /** - * The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the event + * The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the + * event */ public ActivityEventParams withInstanceOnlyName(Optional instanceOnlyName) { Utils.checkNotNull(instanceOnlyName, "instanceOnlyName"); @@ -271,7 +279,8 @@ public ActivityEventParams withInstanceOnlyName(Optional instanceOnlyNam } /** - * Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the foreground. + * Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the + * foreground. */ public ActivityEventParams withDuration(long duration) { Utils.checkNotNull(duration, "duration"); @@ -281,7 +290,8 @@ public ActivityEventParams withDuration(long duration) { /** - * Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the foreground. + * Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the + * foreground. */ public ActivityEventParams withDuration(Optional duration) { Utils.checkNotNull(duration, "duration"); @@ -347,7 +357,8 @@ public ActivityEventParams withTitle(Optional title) { } /** - * Indicates that the parameters are incomplete and more parameters may be sent with the same action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. + * Indicates that the parameters are incomplete and more parameters may be sent with the same + * action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. */ public ActivityEventParams withTruncated(boolean truncated) { Utils.checkNotNull(truncated, "truncated"); @@ -357,7 +368,8 @@ public ActivityEventParams withTruncated(boolean truncated) { /** - * Indicates that the parameters are incomplete and more parameters may be sent with the same action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. + * Indicates that the parameters are incomplete and more parameters may be sent with the same + * action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. */ public ActivityEventParams withTruncated(Optional truncated) { Utils.checkNotNull(truncated, "truncated"); @@ -492,7 +504,8 @@ public Builder datasource(Optional datasource) { /** - * The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the event + * The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the + * event */ public Builder instanceOnlyName(String instanceOnlyName) { Utils.checkNotNull(instanceOnlyName, "instanceOnlyName"); @@ -501,7 +514,8 @@ public Builder instanceOnlyName(String instanceOnlyName) { } /** - * The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the event + * The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the + * event */ public Builder instanceOnlyName(Optional instanceOnlyName) { Utils.checkNotNull(instanceOnlyName, "instanceOnlyName"); @@ -511,7 +525,8 @@ public Builder instanceOnlyName(Optional instanceOnlyName) { /** - * Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the foreground. + * Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the + * foreground. */ public Builder duration(long duration) { Utils.checkNotNull(duration, "duration"); @@ -520,7 +535,8 @@ public Builder duration(long duration) { } /** - * Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the foreground. + * Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the + * foreground. */ public Builder duration(Optional duration) { Utils.checkNotNull(duration, "duration"); @@ -587,7 +603,8 @@ public Builder title(Optional title) { /** - * Indicates that the parameters are incomplete and more parameters may be sent with the same action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. + * Indicates that the parameters are incomplete and more parameters may be sent with the same + * action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. */ public Builder truncated(boolean truncated) { Utils.checkNotNull(truncated, "truncated"); @@ -596,7 +613,8 @@ public Builder truncated(boolean truncated) { } /** - * Indicates that the parameters are incomplete and more parameters may be sent with the same action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. + * Indicates that the parameters are incomplete and more parameters may be sent with the same + * action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. */ public Builder truncated(Optional truncated) { Utils.checkNotNull(truncated, "truncated"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AdditionalFieldDefinition.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AdditionalFieldDefinition.java index 57882d76..da878b1f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AdditionalFieldDefinition.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AdditionalFieldDefinition.java @@ -22,7 +22,8 @@ */ public class AdditionalFieldDefinition { /** - * Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic characters with no numbers, spaces, hyphens or underscores. + * Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic + * characters with no numbers, spaces, hyphens or underscores. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("key") @@ -34,16 +35,18 @@ public class AdditionalFieldDefinition { *

HypertextField is defined as * ``` * { - * anchor: string, // Anchor text for the hypertext field. - * hyperlink: string, // URL for the hypertext field. + * anchor: string, // Anchor text for the hypertext field. + * hyperlink: string, // URL for the hypertext field. * } * ``` * Example: ```{"anchor":"Glean","hyperlink":"https://glean.com"}``` * *

When OpenAPI Generator supports oneOf, we will semantically enforce this in the docs. * - *

**Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of dictionaries. In that case, the key in that dictionary will be ignored. - * Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" will be ignored and can even be passed in as an empty string. + *

**Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of + * dictionaries. In that case, the key in that dictionary will be ignored. + * Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" + * will be ignored and can even be passed in as an empty string. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("value") @@ -64,7 +67,8 @@ public AdditionalFieldDefinition() { } /** - * Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic characters with no numbers, spaces, hyphens or underscores. + * Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic + * characters with no numbers, spaces, hyphens or underscores. */ @JsonIgnore public Optional key() { @@ -77,16 +81,18 @@ public Optional key() { *

HypertextField is defined as * ``` * { - * anchor: string, // Anchor text for the hypertext field. - * hyperlink: string, // URL for the hypertext field. + * anchor: string, // Anchor text for the hypertext field. + * hyperlink: string, // URL for the hypertext field. * } * ``` * Example: ```{"anchor":"Glean","hyperlink":"https://glean.com"}``` * *

When OpenAPI Generator supports oneOf, we will semantically enforce this in the docs. * - *

**Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of dictionaries. In that case, the key in that dictionary will be ignored. - * Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" will be ignored and can even be passed in as an empty string. + *

**Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of + * dictionaries. In that case, the key in that dictionary will be ignored. + * Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" + * will be ignored and can even be passed in as an empty string. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -100,7 +106,8 @@ public static Builder builder() { /** - * Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic characters with no numbers, spaces, hyphens or underscores. + * Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic + * characters with no numbers, spaces, hyphens or underscores. */ public AdditionalFieldDefinition withKey(String key) { Utils.checkNotNull(key, "key"); @@ -110,7 +117,8 @@ public AdditionalFieldDefinition withKey(String key) { /** - * Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic characters with no numbers, spaces, hyphens or underscores. + * Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic + * characters with no numbers, spaces, hyphens or underscores. */ public AdditionalFieldDefinition withKey(Optional key) { Utils.checkNotNull(key, "key"); @@ -124,16 +132,18 @@ public AdditionalFieldDefinition withKey(Optional key) { *

HypertextField is defined as * ``` * { - * anchor: string, // Anchor text for the hypertext field. - * hyperlink: string, // URL for the hypertext field. + * anchor: string, // Anchor text for the hypertext field. + * hyperlink: string, // URL for the hypertext field. * } * ``` * Example: ```{"anchor":"Glean","hyperlink":"https://glean.com"}``` * *

When OpenAPI Generator supports oneOf, we will semantically enforce this in the docs. * - *

**Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of dictionaries. In that case, the key in that dictionary will be ignored. - * Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" will be ignored and can even be passed in as an empty string. + *

**Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of + * dictionaries. In that case, the key in that dictionary will be ignored. + * Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" + * will be ignored and can even be passed in as an empty string. */ public AdditionalFieldDefinition withValue(List value) { Utils.checkNotNull(value, "value"); @@ -148,16 +158,18 @@ public AdditionalFieldDefinition withValue(List value) { *

HypertextField is defined as * ``` * { - * anchor: string, // Anchor text for the hypertext field. - * hyperlink: string, // URL for the hypertext field. + * anchor: string, // Anchor text for the hypertext field. + * hyperlink: string, // URL for the hypertext field. * } * ``` * Example: ```{"anchor":"Glean","hyperlink":"https://glean.com"}``` * *

When OpenAPI Generator supports oneOf, we will semantically enforce this in the docs. * - *

**Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of dictionaries. In that case, the key in that dictionary will be ignored. - * Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" will be ignored and can even be passed in as an empty string. + *

**Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of + * dictionaries. In that case, the key in that dictionary will be ignored. + * Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" + * will be ignored and can even be passed in as an empty string. */ public AdditionalFieldDefinition withValue(Optional> value) { Utils.checkNotNull(value, "value"); @@ -205,7 +217,8 @@ private Builder() { /** - * Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic characters with no numbers, spaces, hyphens or underscores. + * Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic + * characters with no numbers, spaces, hyphens or underscores. */ public Builder key(String key) { Utils.checkNotNull(key, "key"); @@ -214,7 +227,8 @@ public Builder key(String key) { } /** - * Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic characters with no numbers, spaces, hyphens or underscores. + * Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic + * characters with no numbers, spaces, hyphens or underscores. */ public Builder key(Optional key) { Utils.checkNotNull(key, "key"); @@ -229,16 +243,18 @@ public Builder key(Optional key) { *

HypertextField is defined as * ``` * { - * anchor: string, // Anchor text for the hypertext field. - * hyperlink: string, // URL for the hypertext field. + * anchor: string, // Anchor text for the hypertext field. + * hyperlink: string, // URL for the hypertext field. * } * ``` * Example: ```{"anchor":"Glean","hyperlink":"https://glean.com"}``` * *

When OpenAPI Generator supports oneOf, we will semantically enforce this in the docs. * - *

**Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of dictionaries. In that case, the key in that dictionary will be ignored. - * Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" will be ignored and can even be passed in as an empty string. + *

**Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of + * dictionaries. In that case, the key in that dictionary will be ignored. + * Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" + * will be ignored and can even be passed in as an empty string. */ public Builder value(List value) { Utils.checkNotNull(value, "value"); @@ -252,16 +268,18 @@ public Builder value(List value) { *

HypertextField is defined as * ``` * { - * anchor: string, // Anchor text for the hypertext field. - * hyperlink: string, // URL for the hypertext field. + * anchor: string, // Anchor text for the hypertext field. + * hyperlink: string, // URL for the hypertext field. * } * ``` * Example: ```{"anchor":"Glean","hyperlink":"https://glean.com"}``` * *

When OpenAPI Generator supports oneOf, we will semantically enforce this in the docs. * - *

**Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of dictionaries. In that case, the key in that dictionary will be ignored. - * Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" will be ignored and can even be passed in as an empty string. + *

**Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of + * dictionaries. In that case, the key in that dictionary will be ignored. + * Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" + * will be ignored and can even be passed in as an empty string. */ public Builder value(Optional> value) { Utils.checkNotNull(value, "value"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Agent.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Agent.java index 9a0ee4c9..1f61e8f6 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Agent.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Agent.java @@ -44,8 +44,8 @@ public class Agent { /** * Describes features that the agent supports. example: { - * "ap.io.messages": true, - * "ap.io.streaming": true + * "ap.io.messages": true, + * "ap.io.streaming": true * } */ @JsonProperty("capabilities") @@ -113,8 +113,8 @@ public Optional metadata() { /** * Describes features that the agent supports. example: { - * "ap.io.messages": true, - * "ap.io.streaming": true + * "ap.io.messages": true, + * "ap.io.streaming": true * } */ @JsonIgnore @@ -185,8 +185,8 @@ public Agent withMetadata(Optional metadata) { /** * Describes features that the agent supports. example: { - * "ap.io.messages": true, - * "ap.io.streaming": true + * "ap.io.messages": true, + * "ap.io.streaming": true * } */ public Agent withCapabilities(AgentCapabilities capabilities) { @@ -307,8 +307,8 @@ public Builder metadata(Optional metadata) { /** * Describes features that the agent supports. example: { - * "ap.io.messages": true, - * "ap.io.streaming": true + * "ap.io.messages": true, + * "ap.io.streaming": true * } */ public Builder capabilities(AgentCapabilities capabilities) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentCapabilities.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentCapabilities.java index 2407d09d..8dd6413d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentCapabilities.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentCapabilities.java @@ -23,20 +23,22 @@ * AgentCapabilities * *

Describes features that the agent supports. example: { - * "ap.io.messages": true, - * "ap.io.streaming": true + * "ap.io.messages": true, + * "ap.io.streaming": true * } */ public class AgentCapabilities { /** - * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent. + * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when + * running the agent. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ap.io.messages") private Optional apIoMessages; /** - * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming. + * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents + * currently support streaming. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ap.io.streaming") @@ -62,7 +64,8 @@ public AgentCapabilities() { } /** - * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent. + * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when + * running the agent. */ @JsonIgnore public Optional apIoMessages() { @@ -70,7 +73,8 @@ public Optional apIoMessages() { } /** - * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming. + * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents + * currently support streaming. */ @JsonIgnore public Optional apIoStreaming() { @@ -88,7 +92,8 @@ public static Builder builder() { /** - * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent. + * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when + * running the agent. */ public AgentCapabilities withApIoMessages(boolean apIoMessages) { Utils.checkNotNull(apIoMessages, "apIoMessages"); @@ -98,7 +103,8 @@ public AgentCapabilities withApIoMessages(boolean apIoMessages) { /** - * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent. + * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when + * running the agent. */ public AgentCapabilities withApIoMessages(Optional apIoMessages) { Utils.checkNotNull(apIoMessages, "apIoMessages"); @@ -107,7 +113,8 @@ public AgentCapabilities withApIoMessages(Optional apIoMessages) { } /** - * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming. + * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents + * currently support streaming. */ public AgentCapabilities withApIoStreaming(boolean apIoStreaming) { Utils.checkNotNull(apIoStreaming, "apIoStreaming"); @@ -117,7 +124,8 @@ public AgentCapabilities withApIoStreaming(boolean apIoStreaming) { /** - * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming. + * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents + * currently support streaming. */ public AgentCapabilities withApIoStreaming(Optional apIoStreaming) { Utils.checkNotNull(apIoStreaming, "apIoStreaming"); @@ -182,7 +190,8 @@ private Builder() { /** - * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent. + * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when + * running the agent. */ public Builder apIoMessages(boolean apIoMessages) { Utils.checkNotNull(apIoMessages, "apIoMessages"); @@ -191,7 +200,8 @@ public Builder apIoMessages(boolean apIoMessages) { } /** - * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent. + * Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when + * running the agent. */ public Builder apIoMessages(Optional apIoMessages) { Utils.checkNotNull(apIoMessages, "apIoMessages"); @@ -201,7 +211,8 @@ public Builder apIoMessages(Optional apIoMessages) { /** - * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming. + * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents + * currently support streaming. */ public Builder apIoStreaming(boolean apIoStreaming) { Utils.checkNotNull(apIoStreaming, "apIoStreaming"); @@ -210,7 +221,8 @@ public Builder apIoStreaming(boolean apIoStreaming) { } /** - * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming. + * Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents + * currently support streaming. */ public Builder apIoStreaming(Optional apIoStreaming) { Utils.checkNotNull(apIoStreaming, "apIoStreaming"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentConfig.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentConfig.java index f80344d6..08885837 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentConfig.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentConfig.java @@ -28,7 +28,8 @@ public class AgentConfig { private Optional agent; /** - * The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values + * The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` + * values */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("toolSets") @@ -68,7 +69,8 @@ public Optional agent() { } /** - * The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values + * The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` + * values */ @SuppressWarnings("unchecked") @JsonIgnore @@ -110,7 +112,8 @@ public AgentConfig withAgent(Optional agent) { } /** - * The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values + * The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` + * values */ public AgentConfig withToolSets(ToolSets toolSets) { Utils.checkNotNull(toolSets, "toolSets"); @@ -120,7 +123,8 @@ public AgentConfig withToolSets(ToolSets toolSets) { /** - * The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values + * The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` + * values */ public AgentConfig withToolSets(Optional toolSets) { Utils.checkNotNull(toolSets, "toolSets"); @@ -210,7 +214,8 @@ public Builder agent(Optional agent) { /** - * The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values + * The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` + * values */ public Builder toolSets(ToolSets toolSets) { Utils.checkNotNull(toolSets, "toolSets"); @@ -219,7 +224,8 @@ public Builder toolSets(ToolSets toolSets) { } /** - * The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values + * The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` + * values */ public Builder toolSets(Optional toolSets) { Utils.checkNotNull(toolSets, "toolSets"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsInsightsV2Request.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsInsightsV2Request.java new file mode 100644 index 00000000..ba29d4f9 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentsInsightsV2Request.java @@ -0,0 +1,236 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Optional; + + +public class AgentsInsightsV2Request { + /** + * IDs of the Agents for which Insights should be returned. An empty array signifies all. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("agentIds") + private Optional> agentIds; + + /** + * Departments for which Insights are requested. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("departments") + private Optional> departments; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("dayRange") + private Optional dayRange; + + @JsonCreator + public AgentsInsightsV2Request( + @JsonProperty("agentIds") Optional> agentIds, + @JsonProperty("departments") Optional> departments, + @JsonProperty("dayRange") Optional dayRange) { + Utils.checkNotNull(agentIds, "agentIds"); + Utils.checkNotNull(departments, "departments"); + Utils.checkNotNull(dayRange, "dayRange"); + this.agentIds = agentIds; + this.departments = departments; + this.dayRange = dayRange; + } + + public AgentsInsightsV2Request() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * IDs of the Agents for which Insights should be returned. An empty array signifies all. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> agentIds() { + return (Optional>) agentIds; + } + + /** + * Departments for which Insights are requested. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> departments() { + return (Optional>) departments; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional dayRange() { + return (Optional) dayRange; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * IDs of the Agents for which Insights should be returned. An empty array signifies all. + */ + public AgentsInsightsV2Request withAgentIds(List agentIds) { + Utils.checkNotNull(agentIds, "agentIds"); + this.agentIds = Optional.ofNullable(agentIds); + return this; + } + + + /** + * IDs of the Agents for which Insights should be returned. An empty array signifies all. + */ + public AgentsInsightsV2Request withAgentIds(Optional> agentIds) { + Utils.checkNotNull(agentIds, "agentIds"); + this.agentIds = agentIds; + return this; + } + + /** + * Departments for which Insights are requested. + */ + public AgentsInsightsV2Request withDepartments(List departments) { + Utils.checkNotNull(departments, "departments"); + this.departments = Optional.ofNullable(departments); + return this; + } + + + /** + * Departments for which Insights are requested. + */ + public AgentsInsightsV2Request withDepartments(Optional> departments) { + Utils.checkNotNull(departments, "departments"); + this.departments = departments; + return this; + } + + public AgentsInsightsV2Request withDayRange(Period dayRange) { + Utils.checkNotNull(dayRange, "dayRange"); + this.dayRange = Optional.ofNullable(dayRange); + return this; + } + + + public AgentsInsightsV2Request withDayRange(Optional dayRange) { + Utils.checkNotNull(dayRange, "dayRange"); + this.dayRange = dayRange; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AgentsInsightsV2Request other = (AgentsInsightsV2Request) o; + return + Utils.enhancedDeepEquals(this.agentIds, other.agentIds) && + Utils.enhancedDeepEquals(this.departments, other.departments) && + Utils.enhancedDeepEquals(this.dayRange, other.dayRange); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + agentIds, departments, dayRange); + } + + @Override + public String toString() { + return Utils.toString(AgentsInsightsV2Request.class, + "agentIds", agentIds, + "departments", departments, + "dayRange", dayRange); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional> agentIds = Optional.empty(); + + private Optional> departments = Optional.empty(); + + private Optional dayRange = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * IDs of the Agents for which Insights should be returned. An empty array signifies all. + */ + public Builder agentIds(List agentIds) { + Utils.checkNotNull(agentIds, "agentIds"); + this.agentIds = Optional.ofNullable(agentIds); + return this; + } + + /** + * IDs of the Agents for which Insights should be returned. An empty array signifies all. + */ + public Builder agentIds(Optional> agentIds) { + Utils.checkNotNull(agentIds, "agentIds"); + this.agentIds = agentIds; + return this; + } + + + /** + * Departments for which Insights are requested. + */ + public Builder departments(List departments) { + Utils.checkNotNull(departments, "departments"); + this.departments = Optional.ofNullable(departments); + return this; + } + + /** + * Departments for which Insights are requested. + */ + public Builder departments(Optional> departments) { + Utils.checkNotNull(departments, "departments"); + this.departments = departments; + return this; + } + + + public Builder dayRange(Period dayRange) { + Utils.checkNotNull(dayRange, "dayRange"); + this.dayRange = Optional.ofNullable(dayRange); + return this; + } + + public Builder dayRange(Optional dayRange) { + Utils.checkNotNull(dayRange, "dayRange"); + this.dayRange = dayRange; + return this; + } + + public AgentsInsightsV2Request build() { + + return new AgentsInsightsV2Request( + agentIds, departments, dayRange); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AllowlistOptions.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AllowlistOptions.java index 3837295d..5ed72996 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AllowlistOptions.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AllowlistOptions.java @@ -18,7 +18,8 @@ /** * AllowlistOptions * - *

Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term in the allow-list, it will not be counted as a violation. + *

Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a + * term in the allow-list, it will not be counted as a violation. */ public class AllowlistOptions { /** diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Announcement.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Announcement.java index 0aaa466f..b036c02f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Announcement.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Announcement.java @@ -64,7 +64,8 @@ public class Announcement { private Optional banner; /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -92,7 +93,8 @@ public class Announcement { private Optional channel; /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("postType") @@ -106,7 +108,10 @@ public class Announcement { private Optional isPrioritized; /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewUrl") @@ -310,7 +315,8 @@ public Optional banner() { } /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -344,7 +350,8 @@ public Optional channel() { } /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -361,7 +368,10 @@ public Optional isPrioritized() { } /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ @JsonIgnore public Optional viewUrl() { @@ -559,7 +569,8 @@ public Announcement withBanner(Optional banner) { } /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ public Announcement withAudienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -569,7 +580,8 @@ public Announcement withAudienceFilters(List audienceFilters) { /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ public Announcement withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -635,7 +647,8 @@ public Announcement withChannel(Optional channel) } /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ public Announcement withPostType(AnnouncementPostType postType) { Utils.checkNotNull(postType, "postType"); @@ -645,7 +658,8 @@ public Announcement withPostType(AnnouncementPostType postType) { /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ public Announcement withPostType(Optional postType) { Utils.checkNotNull(postType, "postType"); @@ -673,7 +687,10 @@ public Announcement withIsPrioritized(Optional isPrioritized) { } /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ public Announcement withViewUrl(String viewUrl) { Utils.checkNotNull(viewUrl, "viewUrl"); @@ -683,7 +700,10 @@ public Announcement withViewUrl(String viewUrl) { /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ public Announcement withViewUrl(Optional viewUrl) { Utils.checkNotNull(viewUrl, "viewUrl"); @@ -1101,7 +1121,8 @@ public Builder banner(Optional banner) { /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -1110,7 +1131,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -1177,7 +1199,8 @@ public Builder channel(Optional channel) { /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ public Builder postType(AnnouncementPostType postType) { Utils.checkNotNull(postType, "postType"); @@ -1186,7 +1209,8 @@ public Builder postType(AnnouncementPostType postType) { } /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ public Builder postType(Optional postType) { Utils.checkNotNull(postType, "postType"); @@ -1215,7 +1239,10 @@ public Builder isPrioritized(Optional isPrioritized) { /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ public Builder viewUrl(String viewUrl) { Utils.checkNotNull(viewUrl, "viewUrl"); @@ -1224,7 +1251,10 @@ public Builder viewUrl(String viewUrl) { } /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ public Builder viewUrl(Optional viewUrl) { Utils.checkNotNull(viewUrl, "viewUrl"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AnnouncementPostType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AnnouncementPostType.java index dd667540..23ac4815 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AnnouncementPostType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AnnouncementPostType.java @@ -11,7 +11,8 @@ /** * AnnouncementPostType * - *

This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + *

This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ public enum AnnouncementPostType { TEXT("TEXT"), diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Answer.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Answer.java index de784214..c41b4317 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Answer.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Answer.java @@ -27,7 +27,8 @@ public class Answer { private long id; /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("docId") @@ -53,7 +54,8 @@ public class Answer { private Optional bodyText; /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -63,7 +65,8 @@ public class Answer { private Optional boardId; /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -265,7 +268,8 @@ public long id() { } /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ @JsonIgnore public Optional docId() { @@ -295,7 +299,8 @@ public Optional bodyText() { } /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -306,7 +311,8 @@ public Optional boardId() { } /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -449,7 +455,8 @@ public Answer withId(long id) { } /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public Answer withDocId(String docId) { Utils.checkNotNull(docId, "docId"); @@ -459,7 +466,8 @@ public Answer withDocId(String docId) { /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public Answer withDocId(Optional docId) { Utils.checkNotNull(docId, "docId"); @@ -519,7 +527,8 @@ public Answer withBodyText(Optional bodyText) { } /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -532,7 +541,8 @@ public Answer withBoardId(long boardId) { /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -544,7 +554,8 @@ public Answer withBoardId(Optional boardId) { } /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ public Answer withAudienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -554,7 +565,8 @@ public Answer withAudienceFilters(List audienceFilters) { /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ public Answer withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -971,7 +983,8 @@ public Builder id(long id) { /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public Builder docId(String docId) { Utils.checkNotNull(docId, "docId"); @@ -980,7 +993,8 @@ public Builder docId(String docId) { } /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public Builder docId(Optional docId) { Utils.checkNotNull(docId, "docId"); @@ -1041,7 +1055,8 @@ public Builder bodyText(Optional bodyText) { /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -1053,7 +1068,8 @@ public Builder boardId(long boardId) { } /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -1066,7 +1082,8 @@ public Builder boardId(Optional boardId) { /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -1075,7 +1092,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AnswerBoard.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AnswerBoard.java index c25b11d7..7d6fb85a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AnswerBoard.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AnswerBoard.java @@ -46,7 +46,8 @@ public class AnswerBoard { private Optional> removedRoles; /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -84,7 +85,8 @@ public class AnswerBoard { private Optional updatedBy; /** - * The number of items currently in the Answer Board. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Answer Board. Separated from the actual items so we can grab + * the count without items. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("itemCount") @@ -186,7 +188,8 @@ public Optional> removedRoles() { } /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -231,7 +234,8 @@ public Optional updatedBy() { } /** - * The number of items currently in the Answer Board. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Answer Board. Separated from the actual items so we can grab + * the count without items. */ @JsonIgnore public Optional itemCount() { @@ -309,7 +313,8 @@ public AnswerBoard withRemovedRoles(Optional audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -319,7 +324,8 @@ public AnswerBoard withAudienceFilters(List audienceFilters) { /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public AnswerBoard withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -402,7 +408,8 @@ public AnswerBoard withUpdatedBy(Optional updatedBy) { } /** - * The number of items currently in the Answer Board. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Answer Board. Separated from the actual items so we can grab + * the count without items. */ public AnswerBoard withItemCount(long itemCount) { Utils.checkNotNull(itemCount, "itemCount"); @@ -412,7 +419,8 @@ public AnswerBoard withItemCount(long itemCount) { /** - * The number of items currently in the Answer Board. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Answer Board. Separated from the actual items so we can grab + * the count without items. */ public AnswerBoard withItemCount(Optional itemCount) { Utils.checkNotNull(itemCount, "itemCount"); @@ -585,7 +593,8 @@ public Builder removedRoles(Optional> remo /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -594,7 +603,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -679,7 +689,8 @@ public Builder updatedBy(Optional updatedBy) { /** - * The number of items currently in the Answer Board. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Answer Board. Separated from the actual items so we can grab + * the count without items. */ public Builder itemCount(long itemCount) { Utils.checkNotNull(itemCount, "itemCount"); @@ -688,7 +699,8 @@ public Builder itemCount(long itemCount) { } /** - * The number of items currently in the Answer Board. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Answer Board. Separated from the actual items so we can grab + * the count without items. */ public Builder itemCount(Optional itemCount) { Utils.checkNotNull(itemCount, "itemCount"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AnswerCreationData.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AnswerCreationData.java index 9cb9cd06..b5f228f8 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AnswerCreationData.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AnswerCreationData.java @@ -39,7 +39,8 @@ public class AnswerCreationData { private Optional bodyText; /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -49,7 +50,8 @@ public class AnswerCreationData { private Optional boardId; /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -168,7 +170,8 @@ public Optional bodyText() { } /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -179,7 +182,8 @@ public Optional boardId() { } /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -298,7 +302,8 @@ public AnswerCreationData withBodyText(Optional bodyText) { } /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -311,7 +316,8 @@ public AnswerCreationData withBoardId(long boardId) { /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -323,7 +329,8 @@ public AnswerCreationData withBoardId(Optional boardId) { } /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ public AnswerCreationData withAudienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -333,7 +340,8 @@ public AnswerCreationData withAudienceFilters(List audienceFilters) /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ public AnswerCreationData withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -591,7 +599,8 @@ public Builder bodyText(Optional bodyText) { /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -603,7 +612,8 @@ public Builder boardId(long boardId) { } /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -616,7 +626,8 @@ public Builder boardId(Optional boardId) { /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -625,7 +636,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AppResult.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AppResult.java index 6bb50e4d..5f00b526 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AppResult.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AppResult.java @@ -22,14 +22,16 @@ public class AppResult { private String datasource; /** - * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as + * Bug or Feature Request). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("docType") private Optional docType; /** - * Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from Gdrive) + * Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from + * Gdrive) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("mimeType") @@ -73,7 +75,8 @@ public String datasource() { } /** - * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as + * Bug or Feature Request). */ @JsonIgnore public Optional docType() { @@ -81,7 +84,8 @@ public Optional docType() { } /** - * Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from Gdrive) + * Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from + * Gdrive) */ @JsonIgnore public Optional mimeType() { @@ -111,7 +115,8 @@ public AppResult withDatasource(String datasource) { } /** - * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as + * Bug or Feature Request). */ public AppResult withDocType(String docType) { Utils.checkNotNull(docType, "docType"); @@ -121,7 +126,8 @@ public AppResult withDocType(String docType) { /** - * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as + * Bug or Feature Request). */ public AppResult withDocType(Optional docType) { Utils.checkNotNull(docType, "docType"); @@ -130,7 +136,8 @@ public AppResult withDocType(Optional docType) { } /** - * Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from Gdrive) + * Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from + * Gdrive) */ public AppResult withMimeType(String mimeType) { Utils.checkNotNull(mimeType, "mimeType"); @@ -140,7 +147,8 @@ public AppResult withMimeType(String mimeType) { /** - * Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from Gdrive) + * Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from + * Gdrive) */ public AppResult withMimeType(Optional mimeType) { Utils.checkNotNull(mimeType, "mimeType"); @@ -226,7 +234,8 @@ public Builder datasource(String datasource) { /** - * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as + * Bug or Feature Request). */ public Builder docType(String docType) { Utils.checkNotNull(docType, "docType"); @@ -235,7 +244,8 @@ public Builder docType(String docType) { } /** - * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as + * Bug or Feature Request). */ public Builder docType(Optional docType) { Utils.checkNotNull(docType, "docType"); @@ -245,7 +255,8 @@ public Builder docType(Optional docType) { /** - * Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from Gdrive) + * Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from + * Gdrive) */ public Builder mimeType(String mimeType) { Utils.checkNotNull(mimeType, "mimeType"); @@ -254,7 +265,8 @@ public Builder mimeType(String mimeType) { } /** - * Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from Gdrive) + * Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from + * Gdrive) */ public Builder mimeType(Optional mimeType) { Utils.checkNotNull(mimeType, "mimeType"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthConfig.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthConfig.java index a3b2ce7b..0a841803 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthConfig.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthConfig.java @@ -39,7 +39,8 @@ public class AuthConfig { /** * The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. @@ -156,7 +157,8 @@ public Optional usesCentralAuth() { /** * The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. @@ -272,7 +274,8 @@ public AuthConfig withUsesCentralAuth(Optional usesCentralAuth) { /** * The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. @@ -286,7 +289,8 @@ public AuthConfig withType(AuthConfigType type) { /** * The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. @@ -544,7 +548,8 @@ public Builder usesCentralAuth(Optional usesCentralAuth) { /** * The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. @@ -557,7 +562,8 @@ public Builder type(AuthConfigType type) { /** * The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthConfigType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthConfigType.java index d3a06600..9f02eb0a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthConfigType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthConfigType.java @@ -12,7 +12,8 @@ * AuthConfigType * *

The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthToken.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthToken.java index 9f83dfa0..df725109 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthToken.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthToken.java @@ -35,7 +35,8 @@ public class AuthToken { private Optional tokenType; /** - * Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that support multilogin. + * Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that + * support multilogin. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("authUser") @@ -98,7 +99,8 @@ public Optional tokenType() { } /** - * Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that support multilogin. + * Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that + * support multilogin. */ @JsonIgnore public Optional authUser() { @@ -157,7 +159,8 @@ public AuthToken withTokenType(Optional tokenType) { } /** - * Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that support multilogin. + * Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that + * support multilogin. */ public AuthToken withAuthUser(String authUser) { Utils.checkNotNull(authUser, "authUser"); @@ -167,7 +170,8 @@ public AuthToken withAuthUser(String authUser) { /** - * Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that support multilogin. + * Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that + * support multilogin. */ public AuthToken withAuthUser(Optional authUser) { Utils.checkNotNull(authUser, "authUser"); @@ -291,7 +295,8 @@ public Builder tokenType(Optional tokenType) { /** - * Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that support multilogin. + * Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that + * support multilogin. */ public Builder authUser(String authUser) { Utils.checkNotNull(authUser, "authUser"); @@ -300,7 +305,8 @@ public Builder authUser(String authUser) { } /** - * Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that support multilogin. + * Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that + * support multilogin. */ public Builder authUser(Optional authUser) { Utils.checkNotNull(authUser, "authUser"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthType.java index 29ac5449..a7efa6dc 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AuthType.java @@ -12,7 +12,8 @@ * AuthType * *

The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AutocompleteRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AutocompleteRequest.java index 083c3a72..9aaef254 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AutocompleteRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AutocompleteRequest.java @@ -36,7 +36,8 @@ public class AutocompleteRequest { private Optional query; /** - * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are unfiltered if missing. + * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are + * unfiltered if missing. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("datasourcesFilter") @@ -124,7 +125,8 @@ public Optional query() { } /** - * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are unfiltered if missing. + * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are + * unfiltered if missing. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -217,7 +219,8 @@ public AutocompleteRequest withQuery(Optional query) { } /** - * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are unfiltered if missing. + * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are + * unfiltered if missing. */ public AutocompleteRequest withDatasourcesFilter(List datasourcesFilter) { Utils.checkNotNull(datasourcesFilter, "datasourcesFilter"); @@ -227,7 +230,8 @@ public AutocompleteRequest withDatasourcesFilter(List datasourcesFilter) /** - * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are unfiltered if missing. + * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are + * unfiltered if missing. */ public AutocompleteRequest withDatasourcesFilter(Optional> datasourcesFilter) { Utils.checkNotNull(datasourcesFilter, "datasourcesFilter"); @@ -422,7 +426,8 @@ public Builder query(Optional query) { /** - * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are unfiltered if missing. + * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are + * unfiltered if missing. */ public Builder datasourcesFilter(List datasourcesFilter) { Utils.checkNotNull(datasourcesFilter, "datasourcesFilter"); @@ -431,7 +436,8 @@ public Builder datasourcesFilter(List datasourcesFilter) { } /** - * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are unfiltered if missing. + * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are + * unfiltered if missing. */ public Builder datasourcesFilter(Optional> datasourcesFilter) { Utils.checkNotNull(datasourcesFilter, "datasourcesFilter"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AutocompleteResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AutocompleteResponse.java index d6288b05..b6f3cd01 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AutocompleteResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AutocompleteResponse.java @@ -26,7 +26,8 @@ public class AutocompleteResponse { private Optional> experimentIds; /** - * An opaque token that represents this particular set of autocomplete results. To be used for /feedback reporting. + * An opaque token that represents this particular set of autocomplete results. To be used for + * /feedback reporting. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trackingToken") @@ -102,7 +103,8 @@ public Optional> experimentIds() { } /** - * An opaque token that represents this particular set of autocomplete results. To be used for /feedback reporting. + * An opaque token that represents this particular set of autocomplete results. To be used for + * /feedback reporting. */ @JsonIgnore public Optional trackingToken() { @@ -169,7 +171,8 @@ public AutocompleteResponse withExperimentIds(Optional> exp } /** - * An opaque token that represents this particular set of autocomplete results. To be used for /feedback reporting. + * An opaque token that represents this particular set of autocomplete results. To be used for + * /feedback reporting. */ public AutocompleteResponse withTrackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -179,7 +182,8 @@ public AutocompleteResponse withTrackingToken(String trackingToken) { /** - * An opaque token that represents this particular set of autocomplete results. To be used for /feedback reporting. + * An opaque token that represents this particular set of autocomplete results. To be used for + * /feedback reporting. */ public AutocompleteResponse withTrackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -345,7 +349,8 @@ public Builder experimentIds(Optional> experimentIds) { /** - * An opaque token that represents this particular set of autocomplete results. To be used for /feedback reporting. + * An opaque token that represents this particular set of autocomplete results. To be used for + * /feedback reporting. */ public Builder trackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -354,7 +359,8 @@ public Builder trackingToken(String trackingToken) { } /** - * An opaque token that represents this particular set of autocomplete results. To be used for /feedback reporting. + * An opaque token that represents this particular set of autocomplete results. To be used for + * /feedback reporting. */ public Builder trackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AutocompleteResult.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AutocompleteResult.java index 24dc3b91..ead0a5e4 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AutocompleteResult.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AutocompleteResult.java @@ -47,7 +47,8 @@ public class AutocompleteResult { private Optional operatorMetadata; /** - * An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new issue" for jira. + * An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new + * issue" for jira. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("quicklink") @@ -64,7 +65,8 @@ public class AutocompleteResult { private Optional url; /** - * A single object that can support any object in the work graph. Only a single object will be populated. + * A single object that can support any object in the work graph. Only a single object will be + * populated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("structuredResult") @@ -164,7 +166,8 @@ public Optional operatorMetadata() { } /** - * An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new issue" for jira. + * An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new + * issue" for jira. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -184,7 +187,8 @@ public Optional url() { } /** - * A single object that can support any object in the work graph. Only a single object will be populated. + * A single object that can support any object in the work graph. Only a single object will be + * populated. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -285,7 +289,8 @@ public AutocompleteResult withOperatorMetadata(Optional quicklink) { Utils.checkNotNull(quicklink, "quicklink"); @@ -330,7 +336,8 @@ public AutocompleteResult withUrl(Optional url) { } /** - * A single object that can support any object in the work graph. Only a single object will be populated. + * A single object that can support any object in the work graph. Only a single object will be + * populated. */ public AutocompleteResult withStructuredResult(StructuredResult structuredResult) { Utils.checkNotNull(structuredResult, "structuredResult"); @@ -340,7 +347,8 @@ public AutocompleteResult withStructuredResult(StructuredResult structuredResult /** - * A single object that can support any object in the work graph. Only a single object will be populated. + * A single object that can support any object in the work graph. Only a single object will be + * populated. */ public AutocompleteResult withStructuredResult(Optional structuredResult) { Utils.checkNotNull(structuredResult, "structuredResult"); @@ -536,7 +544,8 @@ public Builder operatorMetadata(Optional operatorMet /** - * An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new issue" for jira. + * An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new + * issue" for jira. */ public Builder quicklink(Quicklink quicklink) { Utils.checkNotNull(quicklink, "quicklink"); @@ -545,7 +554,8 @@ public Builder quicklink(Quicklink quicklink) { } /** - * An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new issue" for jira. + * An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new + * issue" for jira. */ public Builder quicklink(Optional quicklink) { Utils.checkNotNull(quicklink, "quicklink"); @@ -581,7 +591,8 @@ public Builder url(Optional url) { /** - * A single object that can support any object in the work graph. Only a single object will be populated. + * A single object that can support any object in the work graph. Only a single object will be + * populated. */ public Builder structuredResult(StructuredResult structuredResult) { Utils.checkNotNull(structuredResult, "structuredResult"); @@ -590,7 +601,8 @@ public Builder structuredResult(StructuredResult structuredResult) { } /** - * A single object that can support any object in the work graph. Only a single object will be populated. + * A single object that can support any object in the work graph. Only a single object will be + * populated. */ public Builder structuredResult(Optional structuredResult) { Utils.checkNotNull(structuredResult, "structuredResult"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexDocumentsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexDocumentsRequest.java index e8ca886d..361042ae 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexDocumentsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexDocumentsRequest.java @@ -42,7 +42,8 @@ public class BulkIndexDocumentsRequest { private Optional isLastPage; /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("forceRestartUpload") @@ -61,7 +62,8 @@ public class BulkIndexDocumentsRequest { private List documents; /** - * True if older documents need to be force deleted after the upload completes. Defaults to older documents being deleted asynchronously. This must only be set when `isLastPage = true` + * True if older documents need to be force deleted after the upload completes. Defaults to older + * documents being deleted asynchronously. This must only be set when `isLastPage = true` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disableStaleDocumentDeletionCheck") @@ -126,7 +128,8 @@ public Optional isLastPage() { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonIgnore public Optional forceRestartUpload() { @@ -150,7 +153,8 @@ public List documents() { } /** - * True if older documents need to be force deleted after the upload completes. Defaults to older documents being deleted asynchronously. This must only be set when `isLastPage = true` + * True if older documents need to be force deleted after the upload completes. Defaults to older + * documents being deleted asynchronously. This must only be set when `isLastPage = true` */ @JsonIgnore public Optional disableStaleDocumentDeletionCheck() { @@ -210,7 +214,8 @@ public BulkIndexDocumentsRequest withIsLastPage(Optional isLastPage) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexDocumentsRequest withForceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -220,7 +225,8 @@ public BulkIndexDocumentsRequest withForceRestartUpload(boolean forceRestartUplo /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexDocumentsRequest withForceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -247,7 +253,8 @@ public BulkIndexDocumentsRequest withDocuments(List document } /** - * True if older documents need to be force deleted after the upload completes. Defaults to older documents being deleted asynchronously. This must only be set when `isLastPage = true` + * True if older documents need to be force deleted after the upload completes. Defaults to older + * documents being deleted asynchronously. This must only be set when `isLastPage = true` */ public BulkIndexDocumentsRequest withDisableStaleDocumentDeletionCheck(boolean disableStaleDocumentDeletionCheck) { Utils.checkNotNull(disableStaleDocumentDeletionCheck, "disableStaleDocumentDeletionCheck"); @@ -257,7 +264,8 @@ public BulkIndexDocumentsRequest withDisableStaleDocumentDeletionCheck(boolean d /** - * True if older documents need to be force deleted after the upload completes. Defaults to older documents being deleted asynchronously. This must only be set when `isLastPage = true` + * True if older documents need to be force deleted after the upload completes. Defaults to older + * documents being deleted asynchronously. This must only be set when `isLastPage = true` */ public BulkIndexDocumentsRequest withDisableStaleDocumentDeletionCheck(Optional disableStaleDocumentDeletionCheck) { Utils.checkNotNull(disableStaleDocumentDeletionCheck, "disableStaleDocumentDeletionCheck"); @@ -375,7 +383,8 @@ public Builder isLastPage(Optional isLastPage) { /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -384,7 +393,8 @@ public Builder forceRestartUpload(boolean forceRestartUpload) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -414,7 +424,8 @@ public Builder documents(List documents) { /** - * True if older documents need to be force deleted after the upload completes. Defaults to older documents being deleted asynchronously. This must only be set when `isLastPage = true` + * True if older documents need to be force deleted after the upload completes. Defaults to older + * documents being deleted asynchronously. This must only be set when `isLastPage = true` */ public Builder disableStaleDocumentDeletionCheck(boolean disableStaleDocumentDeletionCheck) { Utils.checkNotNull(disableStaleDocumentDeletionCheck, "disableStaleDocumentDeletionCheck"); @@ -423,7 +434,8 @@ public Builder disableStaleDocumentDeletionCheck(boolean disableStaleDocumentDel } /** - * True if older documents need to be force deleted after the upload completes. Defaults to older documents being deleted asynchronously. This must only be set when `isLastPage = true` + * True if older documents need to be force deleted after the upload completes. Defaults to older + * documents being deleted asynchronously. This must only be set when `isLastPage = true` */ public Builder disableStaleDocumentDeletionCheck(Optional disableStaleDocumentDeletionCheck) { Utils.checkNotNull(disableStaleDocumentDeletionCheck, "disableStaleDocumentDeletionCheck"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexEmployeesRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexEmployeesRequest.java index 137eb0d1..b1c2765e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexEmployeesRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexEmployeesRequest.java @@ -42,7 +42,8 @@ public class BulkIndexEmployeesRequest { private Optional isLastPage; /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("forceRestartUpload") @@ -55,7 +56,9 @@ public class BulkIndexEmployeesRequest { private List employees; /** - * True if older employee data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than 20%. This must only be set when `isLastPage = true` + * True if older employee data needs to be force deleted after the upload completes. Defaults to older + * data being deleted only if the percentage of data being deleted is less than 20%. This must only be + * set when `isLastPage = true` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disableStaleDataDeletionCheck") @@ -115,7 +118,8 @@ public Optional isLastPage() { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonIgnore public Optional forceRestartUpload() { @@ -131,7 +135,9 @@ public List employees() { } /** - * True if older employee data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than 20%. This must only be set when `isLastPage = true` + * True if older employee data needs to be force deleted after the upload completes. Defaults to older + * data being deleted only if the percentage of data being deleted is less than 20%. This must only be + * set when `isLastPage = true` */ @JsonIgnore public Optional disableStaleDataDeletionCheck() { @@ -191,7 +197,8 @@ public BulkIndexEmployeesRequest withIsLastPage(Optional isLastPage) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexEmployeesRequest withForceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -201,7 +208,8 @@ public BulkIndexEmployeesRequest withForceRestartUpload(boolean forceRestartUplo /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexEmployeesRequest withForceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -219,7 +227,9 @@ public BulkIndexEmployeesRequest withEmployees(List empl } /** - * True if older employee data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than 20%. This must only be set when `isLastPage = true` + * True if older employee data needs to be force deleted after the upload completes. Defaults to older + * data being deleted only if the percentage of data being deleted is less than 20%. This must only be + * set when `isLastPage = true` */ public BulkIndexEmployeesRequest withDisableStaleDataDeletionCheck(boolean disableStaleDataDeletionCheck) { Utils.checkNotNull(disableStaleDataDeletionCheck, "disableStaleDataDeletionCheck"); @@ -229,7 +239,9 @@ public BulkIndexEmployeesRequest withDisableStaleDataDeletionCheck(boolean disab /** - * True if older employee data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than 20%. This must only be set when `isLastPage = true` + * True if older employee data needs to be force deleted after the upload completes. Defaults to older + * data being deleted only if the percentage of data being deleted is less than 20%. This must only be + * set when `isLastPage = true` */ public BulkIndexEmployeesRequest withDisableStaleDataDeletionCheck(Optional disableStaleDataDeletionCheck) { Utils.checkNotNull(disableStaleDataDeletionCheck, "disableStaleDataDeletionCheck"); @@ -342,7 +354,8 @@ public Builder isLastPage(Optional isLastPage) { /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -351,7 +364,8 @@ public Builder forceRestartUpload(boolean forceRestartUpload) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -371,7 +385,9 @@ public Builder employees(List employees) { /** - * True if older employee data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than 20%. This must only be set when `isLastPage = true` + * True if older employee data needs to be force deleted after the upload completes. Defaults to older + * data being deleted only if the percentage of data being deleted is less than 20%. This must only be + * set when `isLastPage = true` */ public Builder disableStaleDataDeletionCheck(boolean disableStaleDataDeletionCheck) { Utils.checkNotNull(disableStaleDataDeletionCheck, "disableStaleDataDeletionCheck"); @@ -380,7 +396,9 @@ public Builder disableStaleDataDeletionCheck(boolean disableStaleDataDeletionChe } /** - * True if older employee data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than 20%. This must only be set when `isLastPage = true` + * True if older employee data needs to be force deleted after the upload completes. Defaults to older + * data being deleted only if the percentage of data being deleted is less than 20%. This must only be + * set when `isLastPage = true` */ public Builder disableStaleDataDeletionCheck(Optional disableStaleDataDeletionCheck) { Utils.checkNotNull(disableStaleDataDeletionCheck, "disableStaleDataDeletionCheck"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexGroupsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexGroupsRequest.java index 59ed52cc..4160b120 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexGroupsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexGroupsRequest.java @@ -42,7 +42,8 @@ public class BulkIndexGroupsRequest { private Optional isLastPage; /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("forceRestartUpload") @@ -61,7 +62,9 @@ public class BulkIndexGroupsRequest { private List groups; /** - * True if older group data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` + * True if older group data needs to be force deleted after the upload completes. Defaults to older + * data being deleted only if the percentage of data being deleted is less than a reasonable threshold. + * This must only be set when `isLastPage = true` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disableStaleDataDeletionCheck") @@ -126,7 +129,8 @@ public Optional isLastPage() { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonIgnore public Optional forceRestartUpload() { @@ -150,7 +154,9 @@ public List groups() { } /** - * True if older group data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` + * True if older group data needs to be force deleted after the upload completes. Defaults to older + * data being deleted only if the percentage of data being deleted is less than a reasonable threshold. + * This must only be set when `isLastPage = true` */ @JsonIgnore public Optional disableStaleDataDeletionCheck() { @@ -210,7 +216,8 @@ public BulkIndexGroupsRequest withIsLastPage(Optional isLastPage) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexGroupsRequest withForceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -220,7 +227,8 @@ public BulkIndexGroupsRequest withForceRestartUpload(boolean forceRestartUpload) /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexGroupsRequest withForceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -247,7 +255,9 @@ public BulkIndexGroupsRequest withGroups(List groups) } /** - * True if older group data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` + * True if older group data needs to be force deleted after the upload completes. Defaults to older + * data being deleted only if the percentage of data being deleted is less than a reasonable threshold. + * This must only be set when `isLastPage = true` */ public BulkIndexGroupsRequest withDisableStaleDataDeletionCheck(boolean disableStaleDataDeletionCheck) { Utils.checkNotNull(disableStaleDataDeletionCheck, "disableStaleDataDeletionCheck"); @@ -257,7 +267,9 @@ public BulkIndexGroupsRequest withDisableStaleDataDeletionCheck(boolean disableS /** - * True if older group data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` + * True if older group data needs to be force deleted after the upload completes. Defaults to older + * data being deleted only if the percentage of data being deleted is less than a reasonable threshold. + * This must only be set when `isLastPage = true` */ public BulkIndexGroupsRequest withDisableStaleDataDeletionCheck(Optional disableStaleDataDeletionCheck) { Utils.checkNotNull(disableStaleDataDeletionCheck, "disableStaleDataDeletionCheck"); @@ -375,7 +387,8 @@ public Builder isLastPage(Optional isLastPage) { /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -384,7 +397,8 @@ public Builder forceRestartUpload(boolean forceRestartUpload) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -414,7 +428,9 @@ public Builder groups(List groups) { /** - * True if older group data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` + * True if older group data needs to be force deleted after the upload completes. Defaults to older + * data being deleted only if the percentage of data being deleted is less than a reasonable threshold. + * This must only be set when `isLastPage = true` */ public Builder disableStaleDataDeletionCheck(boolean disableStaleDataDeletionCheck) { Utils.checkNotNull(disableStaleDataDeletionCheck, "disableStaleDataDeletionCheck"); @@ -423,7 +439,9 @@ public Builder disableStaleDataDeletionCheck(boolean disableStaleDataDeletionChe } /** - * True if older group data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` + * True if older group data needs to be force deleted after the upload completes. Defaults to older + * data being deleted only if the percentage of data being deleted is less than a reasonable threshold. + * This must only be set when `isLastPage = true` */ public Builder disableStaleDataDeletionCheck(Optional disableStaleDataDeletionCheck) { Utils.checkNotNull(disableStaleDataDeletionCheck, "disableStaleDataDeletionCheck"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexMembershipsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexMembershipsRequest.java index 38eb8447..01037e86 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexMembershipsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexMembershipsRequest.java @@ -42,7 +42,8 @@ public class BulkIndexMembershipsRequest { private Optional isLastPage; /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("forceRestartUpload") @@ -126,7 +127,8 @@ public Optional isLastPage() { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonIgnore public Optional forceRestartUpload() { @@ -210,7 +212,8 @@ public BulkIndexMembershipsRequest withIsLastPage(Optional isLastPage) } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexMembershipsRequest withForceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -220,7 +223,8 @@ public BulkIndexMembershipsRequest withForceRestartUpload(boolean forceRestartUp /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexMembershipsRequest withForceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -375,7 +379,8 @@ public Builder isLastPage(Optional isLastPage) { /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -384,7 +389,8 @@ public Builder forceRestartUpload(boolean forceRestartUpload) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexShortcutsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexShortcutsRequest.java index 7eb6ba3d..7515c754 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexShortcutsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexShortcutsRequest.java @@ -42,7 +42,8 @@ public class BulkIndexShortcutsRequest { private Optional isLastPage; /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("forceRestartUpload") @@ -105,7 +106,8 @@ public Optional isLastPage() { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonIgnore public Optional forceRestartUpload() { @@ -173,7 +175,8 @@ public BulkIndexShortcutsRequest withIsLastPage(Optional isLastPage) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexShortcutsRequest withForceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -183,7 +186,8 @@ public BulkIndexShortcutsRequest withForceRestartUpload(boolean forceRestartUplo /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexShortcutsRequest withForceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -301,7 +305,8 @@ public Builder isLastPage(Optional isLastPage) { /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -310,7 +315,8 @@ public Builder forceRestartUpload(boolean forceRestartUpload) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexTeamsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexTeamsRequest.java index 77e2262b..733a14c3 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexTeamsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexTeamsRequest.java @@ -42,7 +42,8 @@ public class BulkIndexTeamsRequest { private Optional isLastPage; /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("forceRestartUpload") @@ -105,7 +106,8 @@ public Optional isLastPage() { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonIgnore public Optional forceRestartUpload() { @@ -173,7 +175,8 @@ public BulkIndexTeamsRequest withIsLastPage(Optional isLastPage) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexTeamsRequest withForceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -183,7 +186,8 @@ public BulkIndexTeamsRequest withForceRestartUpload(boolean forceRestartUpload) /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexTeamsRequest withForceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -301,7 +305,8 @@ public Builder isLastPage(Optional isLastPage) { /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -310,7 +315,8 @@ public Builder forceRestartUpload(boolean forceRestartUpload) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexUsersRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexUsersRequest.java index 0faf4b55..71056ced 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexUsersRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkIndexUsersRequest.java @@ -42,7 +42,8 @@ public class BulkIndexUsersRequest { private Optional isLastPage; /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("forceRestartUpload") @@ -61,7 +62,9 @@ public class BulkIndexUsersRequest { private List users; /** - * True if older user data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` + * True if older user data needs to be force deleted after the upload completes. Defaults to older data + * being deleted only if the percentage of data being deleted is less than a reasonable threshold. This + * must only be set when `isLastPage = true` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disableStaleDataDeletionCheck") @@ -126,7 +129,8 @@ public Optional isLastPage() { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonIgnore public Optional forceRestartUpload() { @@ -150,7 +154,9 @@ public List users() { } /** - * True if older user data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` + * True if older user data needs to be force deleted after the upload completes. Defaults to older data + * being deleted only if the percentage of data being deleted is less than a reasonable threshold. This + * must only be set when `isLastPage = true` */ @JsonIgnore public Optional disableStaleDataDeletionCheck() { @@ -210,7 +216,8 @@ public BulkIndexUsersRequest withIsLastPage(Optional isLastPage) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexUsersRequest withForceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -220,7 +227,8 @@ public BulkIndexUsersRequest withForceRestartUpload(boolean forceRestartUpload) /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public BulkIndexUsersRequest withForceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -247,7 +255,9 @@ public BulkIndexUsersRequest withUsers(List users) { } /** - * True if older user data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` + * True if older user data needs to be force deleted after the upload completes. Defaults to older data + * being deleted only if the percentage of data being deleted is less than a reasonable threshold. This + * must only be set when `isLastPage = true` */ public BulkIndexUsersRequest withDisableStaleDataDeletionCheck(boolean disableStaleDataDeletionCheck) { Utils.checkNotNull(disableStaleDataDeletionCheck, "disableStaleDataDeletionCheck"); @@ -257,7 +267,9 @@ public BulkIndexUsersRequest withDisableStaleDataDeletionCheck(boolean disableSt /** - * True if older user data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` + * True if older user data needs to be force deleted after the upload completes. Defaults to older data + * being deleted only if the percentage of data being deleted is less than a reasonable threshold. This + * must only be set when `isLastPage = true` */ public BulkIndexUsersRequest withDisableStaleDataDeletionCheck(Optional disableStaleDataDeletionCheck) { Utils.checkNotNull(disableStaleDataDeletionCheck, "disableStaleDataDeletionCheck"); @@ -375,7 +387,8 @@ public Builder isLastPage(Optional isLastPage) { /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -384,7 +397,8 @@ public Builder forceRestartUpload(boolean forceRestartUpload) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -414,7 +428,9 @@ public Builder users(List users) { /** - * True if older user data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` + * True if older user data needs to be force deleted after the upload completes. Defaults to older data + * being deleted only if the percentage of data being deleted is less than a reasonable threshold. This + * must only be set when `isLastPage = true` */ public Builder disableStaleDataDeletionCheck(boolean disableStaleDataDeletionCheck) { Utils.checkNotNull(disableStaleDataDeletionCheck, "disableStaleDataDeletionCheck"); @@ -423,7 +439,9 @@ public Builder disableStaleDataDeletionCheck(boolean disableStaleDataDeletionChe } /** - * True if older user data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` + * True if older user data needs to be force deleted after the upload completes. Defaults to older data + * being deleted only if the percentage of data being deleted is less than a reasonable threshold. This + * must only be set when `isLastPage = true` */ public Builder disableStaleDataDeletionCheck(Optional disableStaleDataDeletionCheck) { Utils.checkNotNull(disableStaleDataDeletionCheck, "disableStaleDataDeletionCheck"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkUploadHistoryEvent.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkUploadHistoryEvent.java index 05da0e04..7de3dc0c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkUploadHistoryEvent.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/BulkUploadHistoryEvent.java @@ -49,7 +49,8 @@ public class BulkUploadHistoryEvent { private Optional status; /** - * The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED + * The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD + * COMPLETED, DELETION PAUSED, INDEXING COMPLETED */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("processingState") @@ -113,7 +114,8 @@ public Optional status() { } /** - * The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED + * The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD + * COMPLETED, DELETION PAUSED, INDEXING COMPLETED */ @SuppressWarnings("unchecked") @JsonIgnore @@ -203,7 +205,8 @@ public BulkUploadHistoryEvent withStatus(Optional processingState) { Utils.checkNotNull(processingState, "processingState"); @@ -350,7 +354,8 @@ public Builder status(Optional status) { /** - * The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED + * The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD + * COMPLETED, DELETION PAUSED, INDEXING COMPLETED */ public Builder processingState(ProcessingState processingState) { Utils.checkNotNull(processingState, "processingState"); @@ -359,7 +364,8 @@ public Builder processingState(ProcessingState processingState) { } /** - * The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED + * The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD + * COMPLETED, DELETION PAUSED, INDEXING COMPLETED */ public Builder processingState(Optional processingState) { Utils.checkNotNull(processingState, "processingState"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/CalendarAttendee.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/CalendarAttendee.java index 7d62ae9e..ed30a47e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/CalendarAttendee.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/CalendarAttendee.java @@ -26,7 +26,8 @@ public class CalendarAttendee { private Optional isOrganizer; /** - * Whether or not this attendee is in a group. Needed temporarily at least to support both flat attendees and tree for compatibility. + * Whether or not this attendee is in a group. Needed temporarily at least to support both flat + * attendees and tree for compatibility. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("isInGroup") @@ -82,7 +83,8 @@ public Optional isOrganizer() { } /** - * Whether or not this attendee is in a group. Needed temporarily at least to support both flat attendees and tree for compatibility. + * Whether or not this attendee is in a group. Needed temporarily at least to support both flat + * attendees and tree for compatibility. */ @JsonIgnore public Optional isInGroup() { @@ -134,7 +136,8 @@ public CalendarAttendee withIsOrganizer(Optional isOrganizer) { } /** - * Whether or not this attendee is in a group. Needed temporarily at least to support both flat attendees and tree for compatibility. + * Whether or not this attendee is in a group. Needed temporarily at least to support both flat + * attendees and tree for compatibility. */ public CalendarAttendee withIsInGroup(boolean isInGroup) { Utils.checkNotNull(isInGroup, "isInGroup"); @@ -144,7 +147,8 @@ public CalendarAttendee withIsInGroup(boolean isInGroup) { /** - * Whether or not this attendee is in a group. Needed temporarily at least to support both flat attendees and tree for compatibility. + * Whether or not this attendee is in a group. Needed temporarily at least to support both flat + * attendees and tree for compatibility. */ public CalendarAttendee withIsInGroup(Optional isInGroup) { Utils.checkNotNull(isInGroup, "isInGroup"); @@ -262,7 +266,8 @@ public Builder isOrganizer(Optional isOrganizer) { /** - * Whether or not this attendee is in a group. Needed temporarily at least to support both flat attendees and tree for compatibility. + * Whether or not this attendee is in a group. Needed temporarily at least to support both flat + * attendees and tree for compatibility. */ public Builder isInGroup(boolean isInGroup) { Utils.checkNotNull(isInGroup, "isInGroup"); @@ -271,7 +276,8 @@ public Builder isInGroup(boolean isInGroup) { } /** - * Whether or not this attendee is in a group. Needed temporarily at least to support both flat attendees and tree for compatibility. + * Whether or not this attendee is in a group. Needed temporarily at least to support both flat + * attendees and tree for compatibility. */ public Builder isInGroup(Optional isInGroup) { Utils.checkNotNull(isInGroup, "isInGroup"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessage.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessage.java index ac407ddb..3fe2b7b7 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessage.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessage.java @@ -52,7 +52,8 @@ public class ChatMessage { private Optional> uploadedFileIds; /** - * A list of rich data used to represent the response or formulate a request. These are linearly stitched together to support richer data formats beyond simple text. + * A list of rich data used to represent the response or formulate a request. These are linearly + * stitched together to support richer data formats beyond simple text. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("fragments") @@ -66,7 +67,8 @@ public class ChatMessage { private Optional ts; /** - * A unique server-side generated ID used to identify a message, automatically populated for any USER authored messages. + * A unique server-side generated ID used to identify a message, automatically populated for any USER + * authored messages. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("messageId") @@ -80,7 +82,8 @@ public class ChatMessage { private Optional messageTrackingToken; /** - * Semantically groups content of a certain type. It can be used for purposes such as differential UI treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. + * Semantically groups content of a certain type. It can be used for purposes such as differential UI + * treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("messageType") @@ -171,7 +174,8 @@ public Optional> uploadedFileIds() { } /** - * A list of rich data used to represent the response or formulate a request. These are linearly stitched together to support richer data formats beyond simple text. + * A list of rich data used to represent the response or formulate a request. These are linearly + * stitched together to support richer data formats beyond simple text. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -188,7 +192,8 @@ public Optional ts() { } /** - * A unique server-side generated ID used to identify a message, automatically populated for any USER authored messages. + * A unique server-side generated ID used to identify a message, automatically populated for any USER + * authored messages. */ @JsonIgnore public Optional messageId() { @@ -204,7 +209,8 @@ public Optional messageTrackingToken() { } /** - * Semantically groups content of a certain type. It can be used for purposes such as differential UI treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. + * Semantically groups content of a certain type. It can be used for purposes such as differential UI + * treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -299,7 +305,8 @@ public ChatMessage withUploadedFileIds(Optional> uploaded } /** - * A list of rich data used to represent the response or formulate a request. These are linearly stitched together to support richer data formats beyond simple text. + * A list of rich data used to represent the response or formulate a request. These are linearly + * stitched together to support richer data formats beyond simple text. */ public ChatMessage withFragments(List fragments) { Utils.checkNotNull(fragments, "fragments"); @@ -309,7 +316,8 @@ public ChatMessage withFragments(List fragments) { /** - * A list of rich data used to represent the response or formulate a request. These are linearly stitched together to support richer data formats beyond simple text. + * A list of rich data used to represent the response or formulate a request. These are linearly + * stitched together to support richer data formats beyond simple text. */ public ChatMessage withFragments(Optional> fragments) { Utils.checkNotNull(fragments, "fragments"); @@ -337,7 +345,8 @@ public ChatMessage withTs(Optional ts) { } /** - * A unique server-side generated ID used to identify a message, automatically populated for any USER authored messages. + * A unique server-side generated ID used to identify a message, automatically populated for any USER + * authored messages. */ public ChatMessage withMessageId(String messageId) { Utils.checkNotNull(messageId, "messageId"); @@ -347,7 +356,8 @@ public ChatMessage withMessageId(String messageId) { /** - * A unique server-side generated ID used to identify a message, automatically populated for any USER authored messages. + * A unique server-side generated ID used to identify a message, automatically populated for any USER + * authored messages. */ public ChatMessage withMessageId(Optional messageId) { Utils.checkNotNull(messageId, "messageId"); @@ -375,7 +385,8 @@ public ChatMessage withMessageTrackingToken(Optional messageTrackingToke } /** - * Semantically groups content of a certain type. It can be used for purposes such as differential UI treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. + * Semantically groups content of a certain type. It can be used for purposes such as differential UI + * treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. */ public ChatMessage withMessageType(MessageType messageType) { Utils.checkNotNull(messageType, "messageType"); @@ -385,7 +396,8 @@ public ChatMessage withMessageType(MessageType messageType) { /** - * Semantically groups content of a certain type. It can be used for purposes such as differential UI treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. + * Semantically groups content of a certain type. It can be used for purposes such as differential UI + * treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. */ public ChatMessage withMessageType(Optional messageType) { Utils.checkNotNull(messageType, "messageType"); @@ -564,7 +576,8 @@ public Builder uploadedFileIds(Optional> uploadedFileIds) /** - * A list of rich data used to represent the response or formulate a request. These are linearly stitched together to support richer data formats beyond simple text. + * A list of rich data used to represent the response or formulate a request. These are linearly + * stitched together to support richer data formats beyond simple text. */ public Builder fragments(List fragments) { Utils.checkNotNull(fragments, "fragments"); @@ -573,7 +586,8 @@ public Builder fragments(List fragments) { } /** - * A list of rich data used to represent the response or formulate a request. These are linearly stitched together to support richer data formats beyond simple text. + * A list of rich data used to represent the response or formulate a request. These are linearly + * stitched together to support richer data formats beyond simple text. */ public Builder fragments(Optional> fragments) { Utils.checkNotNull(fragments, "fragments"); @@ -602,7 +616,8 @@ public Builder ts(Optional ts) { /** - * A unique server-side generated ID used to identify a message, automatically populated for any USER authored messages. + * A unique server-side generated ID used to identify a message, automatically populated for any USER + * authored messages. */ public Builder messageId(String messageId) { Utils.checkNotNull(messageId, "messageId"); @@ -611,7 +626,8 @@ public Builder messageId(String messageId) { } /** - * A unique server-side generated ID used to identify a message, automatically populated for any USER authored messages. + * A unique server-side generated ID used to identify a message, automatically populated for any USER + * authored messages. */ public Builder messageId(Optional messageId) { Utils.checkNotNull(messageId, "messageId"); @@ -640,7 +656,8 @@ public Builder messageTrackingToken(Optional messageTrackingToken) { /** - * Semantically groups content of a certain type. It can be used for purposes such as differential UI treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. + * Semantically groups content of a certain type. It can be used for purposes such as differential UI + * treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. */ public Builder messageType(MessageType messageType) { Utils.checkNotNull(messageType, "messageType"); @@ -649,7 +666,8 @@ public Builder messageType(MessageType messageType) { } /** - * Semantically groups content of a certain type. It can be used for purposes such as differential UI treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. + * Semantically groups content of a certain type. It can be used for purposes such as differential UI + * treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. */ public Builder messageType(Optional messageType) { Utils.checkNotNull(messageType, "messageType"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageCitation.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageCitation.java index 51e727cc..94fb112d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageCitation.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageCitation.java @@ -22,7 +22,8 @@ */ public class ChatMessageCitation { /** - * An opaque token that represents this particular result in this particular ChatMessage. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular ChatMessage. To be used + * for /feedback reporting. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trackingToken") @@ -77,7 +78,8 @@ public ChatMessageCitation() { } /** - * An opaque token that represents this particular result in this particular ChatMessage. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular ChatMessage. To be used + * for /feedback reporting. */ @JsonIgnore public Optional trackingToken() { @@ -120,7 +122,8 @@ public static Builder builder() { /** - * An opaque token that represents this particular result in this particular ChatMessage. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular ChatMessage. To be used + * for /feedback reporting. */ public ChatMessageCitation withTrackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -130,7 +133,8 @@ public ChatMessageCitation withTrackingToken(String trackingToken) { /** - * An opaque token that represents this particular result in this particular ChatMessage. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular ChatMessage. To be used + * for /feedback reporting. */ public ChatMessageCitation withTrackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -255,7 +259,8 @@ private Builder() { /** - * An opaque token that represents this particular result in this particular ChatMessage. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular ChatMessage. To be used + * for /feedback reporting. */ public Builder trackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -264,7 +269,8 @@ public Builder trackingToken(String trackingToken) { } /** - * An opaque token that represents this particular result in this particular ChatMessage. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular ChatMessage. To be used + * for /feedback reporting. */ public Builder trackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageFragment.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageFragment.java index 2bd3781b..39ba9dd6 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageFragment.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatMessageFragment.java @@ -18,7 +18,13 @@ /** * ChatMessageFragment * - *

Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file. + *

Represents a part of a ChatMessage that originates from a single action/tool. It is designed to + * support rich data formats beyond simple text, allowing for a more dynamic and interactive chat + * experience. Each fragment can include various types of content, such as text, search queries, action + * information, and more. + * + *

Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, + * writeAction, followupAction, agentRecommendation or file. */ public class ChatMessageFragment { /** @@ -29,7 +35,8 @@ public class ChatMessageFragment { private Optional> structuredResults; /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trackingToken") @@ -105,7 +112,8 @@ public Optional> structuredResults() { } /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ @JsonIgnore public Optional trackingToken() { @@ -172,7 +180,8 @@ public ChatMessageFragment withStructuredResults(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -348,7 +358,8 @@ public Builder structuredResults(Optional> stru /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ public Builder trackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -357,7 +368,8 @@ public Builder trackingToken(String trackingToken) { } /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ public Builder trackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatRequest.java index c3fe4ece..8eba9249 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatRequest.java @@ -27,14 +27,16 @@ public class ChatRequest { private Optional saveChat; /** - * The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true. + * The id of the Chat that context should be retrieved from and messages added to. An empty id starts a + * new Chat, and the Chat is saved if saveChat is true. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("chatId") private Optional chatId; /** - * A list of chat messages, from most recent to least recent. At least one message must specify a USER author. + * A list of chat messages, from most recent to least recent. At least one message must specify a USER + * author. */ @JsonProperty("messages") private List messages; @@ -57,7 +59,8 @@ public class ChatRequest { private Optional exclusions; /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("timeoutMillis") @@ -69,21 +72,30 @@ public class ChatRequest { private Optional sessionInfo; /** - * The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. + * The ID of the application this request originates from, used to determine the configuration of + * underlying chat processes. This should correspond to the ID set during admin setup. If not + * specified, the default chat experience will be used. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("applicationId") private Optional applicationId; /** - * The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User chat message' are invokable through this API. If not specified, the default chat experience will be used. + * The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User + * chat message' are invokable through this API. If not specified, the default chat experience will be + * used. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("agentId") private Optional agentId; /** - * If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. + * If set, response lines will be streamed one-by-one as they become available. Each will be a + * ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be + * returned at once. + * + *

Note that if this is set and the model being used does not support streaming, the model's response + * will not be streamed, but other messages from the endpoint still will be. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("stream") @@ -143,7 +155,8 @@ public Optional saveChat() { } /** - * The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true. + * The id of the Chat that context should be retrieved from and messages added to. An empty id starts a + * new Chat, and the Chat is saved if saveChat is true. */ @JsonIgnore public Optional chatId() { @@ -151,7 +164,8 @@ public Optional chatId() { } /** - * A list of chat messages, from most recent to least recent. At least one message must specify a USER author. + * A list of chat messages, from most recent to least recent. At least one message must specify a USER + * author. */ @JsonIgnore public List messages() { @@ -180,7 +194,8 @@ public Optional exclusions() { } /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ @JsonIgnore public Optional timeoutMillis() { @@ -194,7 +209,9 @@ public Optional sessionInfo() { } /** - * The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. + * The ID of the application this request originates from, used to determine the configuration of + * underlying chat processes. This should correspond to the ID set during admin setup. If not + * specified, the default chat experience will be used. */ @JsonIgnore public Optional applicationId() { @@ -202,7 +219,9 @@ public Optional applicationId() { } /** - * The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User chat message' are invokable through this API. If not specified, the default chat experience will be used. + * The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User + * chat message' are invokable through this API. If not specified, the default chat experience will be + * used. */ @JsonIgnore public Optional agentId() { @@ -210,7 +229,12 @@ public Optional agentId() { } /** - * If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. + * If set, response lines will be streamed one-by-one as they become available. Each will be a + * ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be + * returned at once. + * + *

Note that if this is set and the model being used does not support streaming, the model's response + * will not be streamed, but other messages from the endpoint still will be. */ @JsonIgnore public Optional stream() { @@ -242,7 +266,8 @@ public ChatRequest withSaveChat(Optional saveChat) { } /** - * The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true. + * The id of the Chat that context should be retrieved from and messages added to. An empty id starts a + * new Chat, and the Chat is saved if saveChat is true. */ public ChatRequest withChatId(String chatId) { Utils.checkNotNull(chatId, "chatId"); @@ -252,7 +277,8 @@ public ChatRequest withChatId(String chatId) { /** - * The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true. + * The id of the Chat that context should be retrieved from and messages added to. An empty id starts a + * new Chat, and the Chat is saved if saveChat is true. */ public ChatRequest withChatId(Optional chatId) { Utils.checkNotNull(chatId, "chatId"); @@ -261,7 +287,8 @@ public ChatRequest withChatId(Optional chatId) { } /** - * A list of chat messages, from most recent to least recent. At least one message must specify a USER author. + * A list of chat messages, from most recent to least recent. At least one message must specify a USER + * author. */ public ChatRequest withMessages(List messages) { Utils.checkNotNull(messages, "messages"); @@ -315,7 +342,8 @@ public ChatRequest withExclusions(Optional exc } /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ public ChatRequest withTimeoutMillis(long timeoutMillis) { Utils.checkNotNull(timeoutMillis, "timeoutMillis"); @@ -325,7 +353,8 @@ public ChatRequest withTimeoutMillis(long timeoutMillis) { /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ public ChatRequest withTimeoutMillis(Optional timeoutMillis) { Utils.checkNotNull(timeoutMillis, "timeoutMillis"); @@ -347,7 +376,9 @@ public ChatRequest withSessionInfo(Optional sessionInfo) } /** - * The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. + * The ID of the application this request originates from, used to determine the configuration of + * underlying chat processes. This should correspond to the ID set during admin setup. If not + * specified, the default chat experience will be used. */ public ChatRequest withApplicationId(String applicationId) { Utils.checkNotNull(applicationId, "applicationId"); @@ -357,7 +388,9 @@ public ChatRequest withApplicationId(String applicationId) { /** - * The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. + * The ID of the application this request originates from, used to determine the configuration of + * underlying chat processes. This should correspond to the ID set during admin setup. If not + * specified, the default chat experience will be used. */ public ChatRequest withApplicationId(Optional applicationId) { Utils.checkNotNull(applicationId, "applicationId"); @@ -366,7 +399,9 @@ public ChatRequest withApplicationId(Optional applicationId) { } /** - * The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User chat message' are invokable through this API. If not specified, the default chat experience will be used. + * The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User + * chat message' are invokable through this API. If not specified, the default chat experience will be + * used. */ public ChatRequest withAgentId(String agentId) { Utils.checkNotNull(agentId, "agentId"); @@ -376,7 +411,9 @@ public ChatRequest withAgentId(String agentId) { /** - * The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User chat message' are invokable through this API. If not specified, the default chat experience will be used. + * The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User + * chat message' are invokable through this API. If not specified, the default chat experience will be + * used. */ public ChatRequest withAgentId(Optional agentId) { Utils.checkNotNull(agentId, "agentId"); @@ -385,7 +422,12 @@ public ChatRequest withAgentId(Optional agentId) { } /** - * If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. + * If set, response lines will be streamed one-by-one as they become available. Each will be a + * ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be + * returned at once. + * + *

Note that if this is set and the model being used does not support streaming, the model's response + * will not be streamed, but other messages from the endpoint still will be. */ public ChatRequest withStream(boolean stream) { Utils.checkNotNull(stream, "stream"); @@ -395,7 +437,12 @@ public ChatRequest withStream(boolean stream) { /** - * If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. + * If set, response lines will be streamed one-by-one as they become available. Each will be a + * ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be + * returned at once. + * + *

Note that if this is set and the model being used does not support streaming, the model's response + * will not be streamed, but other messages from the endpoint still will be. */ public ChatRequest withStream(Optional stream) { Utils.checkNotNull(stream, "stream"); @@ -501,7 +548,8 @@ public Builder saveChat(Optional saveChat) { /** - * The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true. + * The id of the Chat that context should be retrieved from and messages added to. An empty id starts a + * new Chat, and the Chat is saved if saveChat is true. */ public Builder chatId(String chatId) { Utils.checkNotNull(chatId, "chatId"); @@ -510,7 +558,8 @@ public Builder chatId(String chatId) { } /** - * The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true. + * The id of the Chat that context should be retrieved from and messages added to. An empty id starts a + * new Chat, and the Chat is saved if saveChat is true. */ public Builder chatId(Optional chatId) { Utils.checkNotNull(chatId, "chatId"); @@ -520,7 +569,8 @@ public Builder chatId(Optional chatId) { /** - * A list of chat messages, from most recent to least recent. At least one message must specify a USER author. + * A list of chat messages, from most recent to least recent. At least one message must specify a USER + * author. */ public Builder messages(List messages) { Utils.checkNotNull(messages, "messages"); @@ -575,7 +625,8 @@ public Builder exclusions(Optional exclusions) /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ public Builder timeoutMillis(long timeoutMillis) { Utils.checkNotNull(timeoutMillis, "timeoutMillis"); @@ -584,7 +635,8 @@ public Builder timeoutMillis(long timeoutMillis) { } /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ public Builder timeoutMillis(Optional timeoutMillis) { Utils.checkNotNull(timeoutMillis, "timeoutMillis"); @@ -607,7 +659,9 @@ public Builder sessionInfo(Optional sessionInfo) { /** - * The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. + * The ID of the application this request originates from, used to determine the configuration of + * underlying chat processes. This should correspond to the ID set during admin setup. If not + * specified, the default chat experience will be used. */ public Builder applicationId(String applicationId) { Utils.checkNotNull(applicationId, "applicationId"); @@ -616,7 +670,9 @@ public Builder applicationId(String applicationId) { } /** - * The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. + * The ID of the application this request originates from, used to determine the configuration of + * underlying chat processes. This should correspond to the ID set during admin setup. If not + * specified, the default chat experience will be used. */ public Builder applicationId(Optional applicationId) { Utils.checkNotNull(applicationId, "applicationId"); @@ -626,7 +682,9 @@ public Builder applicationId(Optional applicationId) { /** - * The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User chat message' are invokable through this API. If not specified, the default chat experience will be used. + * The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User + * chat message' are invokable through this API. If not specified, the default chat experience will be + * used. */ public Builder agentId(String agentId) { Utils.checkNotNull(agentId, "agentId"); @@ -635,7 +693,9 @@ public Builder agentId(String agentId) { } /** - * The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User chat message' are invokable through this API. If not specified, the default chat experience will be used. + * The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User + * chat message' are invokable through this API. If not specified, the default chat experience will be + * used. */ public Builder agentId(Optional agentId) { Utils.checkNotNull(agentId, "agentId"); @@ -645,7 +705,12 @@ public Builder agentId(Optional agentId) { /** - * If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. + * If set, response lines will be streamed one-by-one as they become available. Each will be a + * ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be + * returned at once. + * + *

Note that if this is set and the model being used does not support streaming, the model's response + * will not be streamed, but other messages from the endpoint still will be. */ public Builder stream(boolean stream) { Utils.checkNotNull(stream, "stream"); @@ -654,7 +719,12 @@ public Builder stream(boolean stream) { } /** - * If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. + * If set, response lines will be streamed one-by-one as they become available. Each will be a + * ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be + * returned at once. + * + *

Note that if this is set and the model being used does not support streaming, the model's response + * will not be streamed, but other messages from the endpoint still will be. */ public Builder stream(Optional stream) { Utils.checkNotNull(stream, "stream"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatRestrictionFilters.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatRestrictionFilters.java index 84ad3f54..bdd65310 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatRestrictionFilters.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatRestrictionFilters.java @@ -18,7 +18,11 @@ public class ChatRestrictionFilters { /** - * Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. + * Specifications for containers that should be used as part of the restriction (include/exclude). + * Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, + * Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. + * + *

Recursive memberships do not apply for Collections. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("containerSpecs") @@ -52,7 +56,11 @@ public ChatRestrictionFilters() { } /** - * Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. + * Specifications for containers that should be used as part of the restriction (include/exclude). + * Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, + * Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. + * + *

Recursive memberships do not apply for Collections. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -78,7 +86,11 @@ public static Builder builder() { /** - * Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. + * Specifications for containers that should be used as part of the restriction (include/exclude). + * Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, + * Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. + * + *

Recursive memberships do not apply for Collections. */ public ChatRestrictionFilters withContainerSpecs(List containerSpecs) { Utils.checkNotNull(containerSpecs, "containerSpecs"); @@ -88,7 +100,11 @@ public ChatRestrictionFilters withContainerSpecs(List contain /** - * Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. + * Specifications for containers that should be used as part of the restriction (include/exclude). + * Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, + * Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. + * + *

Recursive memberships do not apply for Collections. */ public ChatRestrictionFilters withContainerSpecs(Optional> containerSpecs) { Utils.checkNotNull(containerSpecs, "containerSpecs"); @@ -166,7 +182,11 @@ private Builder() { /** - * Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. + * Specifications for containers that should be used as part of the restriction (include/exclude). + * Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, + * Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. + * + *

Recursive memberships do not apply for Collections. */ public Builder containerSpecs(List containerSpecs) { Utils.checkNotNull(containerSpecs, "containerSpecs"); @@ -175,7 +195,11 @@ public Builder containerSpecs(List containerSpecs) { } /** - * Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. + * Specifications for containers that should be used as part of the restriction (include/exclude). + * Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, + * Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. + * + *

Recursive memberships do not apply for Collections. */ public Builder containerSpecs(Optional> containerSpecs) { Utils.checkNotNull(containerSpecs, "containerSpecs"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatZeroStateSuggestionOptions.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatZeroStateSuggestionOptions.java index 1b4650be..b7d2d996 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatZeroStateSuggestionOptions.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ChatZeroStateSuggestionOptions.java @@ -16,7 +16,8 @@ public class ChatZeroStateSuggestionOptions { /** - * The Chat Application ID this feed request should be scoped to. Empty means there is no Chat Application ID.. + * The Chat Application ID this feed request should be scoped to. Empty means there is no Chat + * Application ID.. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("applicationId") @@ -34,7 +35,8 @@ public ChatZeroStateSuggestionOptions() { } /** - * The Chat Application ID this feed request should be scoped to. Empty means there is no Chat Application ID.. + * The Chat Application ID this feed request should be scoped to. Empty means there is no Chat + * Application ID.. */ @JsonIgnore public Optional applicationId() { @@ -47,7 +49,8 @@ public static Builder builder() { /** - * The Chat Application ID this feed request should be scoped to. Empty means there is no Chat Application ID.. + * The Chat Application ID this feed request should be scoped to. Empty means there is no Chat + * Application ID.. */ public ChatZeroStateSuggestionOptions withApplicationId(String applicationId) { Utils.checkNotNull(applicationId, "applicationId"); @@ -57,7 +60,8 @@ public ChatZeroStateSuggestionOptions withApplicationId(String applicationId) { /** - * The Chat Application ID this feed request should be scoped to. Empty means there is no Chat Application ID.. + * The Chat Application ID this feed request should be scoped to. Empty means there is no Chat + * Application ID.. */ public ChatZeroStateSuggestionOptions withApplicationId(Optional applicationId) { Utils.checkNotNull(applicationId, "applicationId"); @@ -101,7 +105,8 @@ private Builder() { /** - * The Chat Application ID this feed request should be scoped to. Empty means there is no Chat Application ID.. + * The Chat Application ID this feed request should be scoped to. Empty means there is no Chat + * Application ID.. */ public Builder applicationId(String applicationId) { Utils.checkNotNull(applicationId, "applicationId"); @@ -110,7 +115,8 @@ public Builder applicationId(String applicationId) { } /** - * The Chat Application ID this feed request should be scoped to. Empty means there is no Chat Application ID.. + * The Chat Application ID this feed request should be scoped to. Empty means there is no Chat + * Application ID.. */ public Builder applicationId(Optional applicationId) { Utils.checkNotNull(applicationId, "applicationId"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Collection.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Collection.java index e151c739..d7f4018d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Collection.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Collection.java @@ -47,7 +47,8 @@ public class Collection { private Optional> removedRoles; /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -118,14 +119,16 @@ public class Collection { private Optional updatedBy; /** - * The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Collection. Separated from the actual items so we can grab the + * count without items. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("itemCount") private Optional itemCount; /** - * The number of children Collections. Separated from the actual children so we can grab the count without children. + * The number of children Collections. Separated from the actual children so we can grab the count + * without children. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("childCount") @@ -286,7 +289,8 @@ public Optional> removedRoles() { } /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -369,7 +373,8 @@ public Optional updatedBy() { } /** - * The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Collection. Separated from the actual items so we can grab the + * count without items. */ @JsonIgnore public Optional itemCount() { @@ -377,7 +382,8 @@ public Optional itemCount() { } /** - * The number of children Collections. Separated from the actual children so we can grab the count without children. + * The number of children Collections. Separated from the actual children so we can grab the count + * without children. */ @JsonIgnore public Optional childCount() { @@ -488,7 +494,8 @@ public Collection withRemovedRoles(Optional audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -498,7 +505,8 @@ public Collection withAudienceFilters(List audienceFilters) { /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public Collection withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -670,7 +678,8 @@ public Collection withUpdatedBy(Optional updatedBy) { } /** - * The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Collection. Separated from the actual items so we can grab the + * count without items. */ public Collection withItemCount(long itemCount) { Utils.checkNotNull(itemCount, "itemCount"); @@ -680,7 +689,8 @@ public Collection withItemCount(long itemCount) { /** - * The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Collection. Separated from the actual items so we can grab the + * count without items. */ public Collection withItemCount(Optional itemCount) { Utils.checkNotNull(itemCount, "itemCount"); @@ -689,7 +699,8 @@ public Collection withItemCount(Optional itemCount) { } /** - * The number of children Collections. Separated from the actual children so we can grab the count without children. + * The number of children Collections. Separated from the actual children so we can grab the count + * without children. */ public Collection withChildCount(long childCount) { Utils.checkNotNull(childCount, "childCount"); @@ -699,7 +710,8 @@ public Collection withChildCount(long childCount) { /** - * The number of children Collections. Separated from the actual children so we can grab the count without children. + * The number of children Collections. Separated from the actual children so we can grab the count + * without children. */ public Collection withChildCount(Optional childCount) { Utils.checkNotNull(childCount, "childCount"); @@ -985,7 +997,8 @@ public Builder removedRoles(Optional> remo /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -994,7 +1007,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -1168,7 +1182,8 @@ public Builder updatedBy(Optional updatedBy) { /** - * The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Collection. Separated from the actual items so we can grab the + * count without items. */ public Builder itemCount(long itemCount) { Utils.checkNotNull(itemCount, "itemCount"); @@ -1177,7 +1192,8 @@ public Builder itemCount(long itemCount) { } /** - * The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Collection. Separated from the actual items so we can grab the + * count without items. */ public Builder itemCount(Optional itemCount) { Utils.checkNotNull(itemCount, "itemCount"); @@ -1187,7 +1203,8 @@ public Builder itemCount(Optional itemCount) { /** - * The number of children Collections. Separated from the actual children so we can grab the count without children. + * The number of children Collections. Separated from the actual children so we can grab the count + * without children. */ public Builder childCount(long childCount) { Utils.checkNotNull(childCount, "childCount"); @@ -1196,7 +1213,8 @@ public Builder childCount(long childCount) { } /** - * The number of children Collections. Separated from the actual children so we can grab the count without children. + * The number of children Collections. Separated from the actual children so we can grab the count + * without children. */ public Builder childCount(Optional childCount) { Utils.checkNotNull(childCount, "childCount"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/CollectionItemDescriptor.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/CollectionItemDescriptor.java index 35477896..a4a7a882 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/CollectionItemDescriptor.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/CollectionItemDescriptor.java @@ -52,7 +52,8 @@ public class CollectionItemDescriptor { private Optional documentId; /** - * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection + * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end + * of the Collection */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("newNextItemId") @@ -135,7 +136,8 @@ public Optional documentId() { } /** - * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection + * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end + * of the Collection */ @JsonIgnore public Optional newNextItemId() { @@ -249,7 +251,8 @@ public CollectionItemDescriptor withDocumentId(Optional documentId) { } /** - * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection + * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end + * of the Collection */ public CollectionItemDescriptor withNewNextItemId(String newNextItemId) { Utils.checkNotNull(newNextItemId, "newNextItemId"); @@ -259,7 +262,8 @@ public CollectionItemDescriptor withNewNextItemId(String newNextItemId) { /** - * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection + * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end + * of the Collection */ public CollectionItemDescriptor withNewNextItemId(Optional newNextItemId) { Utils.checkNotNull(newNextItemId, "newNextItemId"); @@ -437,7 +441,8 @@ public Builder documentId(Optional documentId) { /** - * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection + * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end + * of the Collection */ public Builder newNextItemId(String newNextItemId) { Utils.checkNotNull(newNextItemId, "newNextItemId"); @@ -446,7 +451,8 @@ public Builder newNextItemId(String newNextItemId) { } /** - * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection + * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end + * of the Collection */ public Builder newNextItemId(Optional newNextItemId) { Utils.checkNotNull(newNextItemId, "newNextItemId"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/CollectionPinTarget.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/CollectionPinTarget.java index d5c2ea5d..1dee6c3c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/CollectionPinTarget.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/CollectionPinTarget.java @@ -23,7 +23,8 @@ public class CollectionPinTarget { private CollectionPinnableCategories category; /** - * Optional. If category supports values, then the additional value for the category e.g. department name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. + * Optional. If category supports values, then the additional value for the category e.g. department + * name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("value") @@ -63,7 +64,8 @@ public CollectionPinnableCategories category() { } /** - * Optional. If category supports values, then the additional value for the category e.g. department name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. + * Optional. If category supports values, then the additional value for the category e.g. department + * name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. */ @JsonIgnore public Optional value() { @@ -94,7 +96,8 @@ public CollectionPinTarget withCategory(CollectionPinnableCategories category) { } /** - * Optional. If category supports values, then the additional value for the category e.g. department name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. + * Optional. If category supports values, then the additional value for the category e.g. department + * name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. */ public CollectionPinTarget withValue(String value) { Utils.checkNotNull(value, "value"); @@ -104,7 +107,8 @@ public CollectionPinTarget withValue(String value) { /** - * Optional. If category supports values, then the additional value for the category e.g. department name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. + * Optional. If category supports values, then the additional value for the category e.g. department + * name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. */ public CollectionPinTarget withValue(Optional value) { Utils.checkNotNull(value, "value"); @@ -185,7 +189,8 @@ public Builder category(CollectionPinnableCategories category) { /** - * Optional. If category supports values, then the additional value for the category e.g. department name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. + * Optional. If category supports values, then the additional value for the category e.g. department + * name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. */ public Builder value(String value) { Utils.checkNotNull(value, "value"); @@ -194,7 +199,8 @@ public Builder value(String value) { } /** - * Optional. If category supports values, then the additional value for the category e.g. department name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. + * Optional. If category supports values, then the additional value for the category e.g. department + * name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. */ public Builder value(Optional value) { Utils.checkNotNull(value, "value"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/CollectionPinnedMetadata.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/CollectionPinnedMetadata.java index 68dec25f..9064dc04 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/CollectionPinnedMetadata.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/CollectionPinnedMetadata.java @@ -25,7 +25,9 @@ public class CollectionPinnedMetadata { private Optional> existingPins; /** - * List of targets this Collection can be pinned to, excluding the targets this Collection is already pinned to. We also include Collection ID already is pinned to each eligible target, which will be 0 if the target has no pinned Collection. + * List of targets this Collection can be pinned to, excluding the targets this Collection is already + * pinned to. We also include Collection ID already is pinned to each eligible target, which will be 0 + * if the target has no pinned Collection. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("eligiblePins") @@ -55,7 +57,9 @@ public Optional> existingPins() { } /** - * List of targets this Collection can be pinned to, excluding the targets this Collection is already pinned to. We also include Collection ID already is pinned to each eligible target, which will be 0 if the target has no pinned Collection. + * List of targets this Collection can be pinned to, excluding the targets this Collection is already + * pinned to. We also include Collection ID already is pinned to each eligible target, which will be 0 + * if the target has no pinned Collection. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -88,7 +92,9 @@ public CollectionPinnedMetadata withExistingPins(Optional eligiblePins) { Utils.checkNotNull(eligiblePins, "eligiblePins"); @@ -98,7 +104,9 @@ public CollectionPinnedMetadata withEligiblePins(List eli /** - * List of targets this Collection can be pinned to, excluding the targets this Collection is already pinned to. We also include Collection ID already is pinned to each eligible target, which will be 0 if the target has no pinned Collection. + * List of targets this Collection can be pinned to, excluding the targets this Collection is already + * pinned to. We also include Collection ID already is pinned to each eligible target, which will be 0 + * if the target has no pinned Collection. */ public CollectionPinnedMetadata withEligiblePins(Optional> eligiblePins) { Utils.checkNotNull(eligiblePins, "eligiblePins"); @@ -165,7 +173,9 @@ public Builder existingPins(Optional> existi /** - * List of targets this Collection can be pinned to, excluding the targets this Collection is already pinned to. We also include Collection ID already is pinned to each eligible target, which will be 0 if the target has no pinned Collection. + * List of targets this Collection can be pinned to, excluding the targets this Collection is already + * pinned to. We also include Collection ID already is pinned to each eligible target, which will be 0 + * if the target has no pinned Collection. */ public Builder eligiblePins(List eligiblePins) { Utils.checkNotNull(eligiblePins, "eligiblePins"); @@ -174,7 +184,9 @@ public Builder eligiblePins(List eligiblePins) { } /** - * List of targets this Collection can be pinned to, excluding the targets this Collection is already pinned to. We also include Collection ID already is pinned to each eligible target, which will be 0 if the target has no pinned Collection. + * List of targets this Collection can be pinned to, excluding the targets this Collection is already + * pinned to. We also include Collection ID already is pinned to each eligible target, which will be 0 + * if the target has no pinned Collection. */ public Builder eligiblePins(Optional> eligiblePins) { Utils.checkNotNull(eligiblePins, "eligiblePins"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/CommentDefinition.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/CommentDefinition.java index 44430aa1..4608c2c6 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/CommentDefinition.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/CommentDefinition.java @@ -22,13 +22,15 @@ */ public class CommentDefinition { /** - * The document specific id for the comment. This field is case insensitive and should not be more than 200 characters in length. + * The document specific id for the comment. This field is case insensitive and should not be more than + * 200 characters in length. */ @JsonProperty("id") private String id; /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("author") @@ -56,7 +58,8 @@ public class CommentDefinition { private Optional updatedAt; /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedBy") @@ -91,7 +94,8 @@ public CommentDefinition( } /** - * The document specific id for the comment. This field is case insensitive and should not be more than 200 characters in length. + * The document specific id for the comment. This field is case insensitive and should not be more than + * 200 characters in length. */ @JsonIgnore public String id() { @@ -99,7 +103,8 @@ public String id() { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -133,7 +138,8 @@ public Optional updatedAt() { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -147,7 +153,8 @@ public static Builder builder() { /** - * The document specific id for the comment. This field is case insensitive and should not be more than 200 characters in length. + * The document specific id for the comment. This field is case insensitive and should not be more than + * 200 characters in length. */ public CommentDefinition withId(String id) { Utils.checkNotNull(id, "id"); @@ -156,7 +163,8 @@ public CommentDefinition withId(String id) { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public CommentDefinition withAuthor(UserReferenceDefinition author) { Utils.checkNotNull(author, "author"); @@ -166,7 +174,8 @@ public CommentDefinition withAuthor(UserReferenceDefinition author) { /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public CommentDefinition withAuthor(Optional author) { Utils.checkNotNull(author, "author"); @@ -232,7 +241,8 @@ public CommentDefinition withUpdatedAt(Optional updatedAt) { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public CommentDefinition withUpdatedBy(UserReferenceDefinition updatedBy) { Utils.checkNotNull(updatedBy, "updatedBy"); @@ -242,7 +252,8 @@ public CommentDefinition withUpdatedBy(UserReferenceDefinition updatedBy) { /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public CommentDefinition withUpdatedBy(Optional updatedBy) { Utils.checkNotNull(updatedBy, "updatedBy"); @@ -307,7 +318,8 @@ private Builder() { /** - * The document specific id for the comment. This field is case insensitive and should not be more than 200 characters in length. + * The document specific id for the comment. This field is case insensitive and should not be more than + * 200 characters in length. */ public Builder id(String id) { Utils.checkNotNull(id, "id"); @@ -317,7 +329,8 @@ public Builder id(String id) { /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public Builder author(UserReferenceDefinition author) { Utils.checkNotNull(author, "author"); @@ -326,7 +339,8 @@ public Builder author(UserReferenceDefinition author) { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public Builder author(Optional author) { Utils.checkNotNull(author, "author"); @@ -393,7 +407,8 @@ public Builder updatedAt(Optional updatedAt) { /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public Builder updatedBy(UserReferenceDefinition updatedBy) { Utils.checkNotNull(updatedBy, "updatedBy"); @@ -402,7 +417,8 @@ public Builder updatedBy(UserReferenceDefinition updatedBy) { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public Builder updatedBy(Optional updatedBy) { Utils.checkNotNull(updatedBy, "updatedBy"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Company.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Company.java index 9a65c8ab..171f3066 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Company.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Company.java @@ -41,7 +41,8 @@ public class Company { private Optional> websiteUrls; /** - * The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all + * valid (but not third-party-authenticated URLs). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("logoUrl") @@ -188,7 +189,8 @@ public Optional> websiteUrls() { } /** - * The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all + * valid (but not third-party-authenticated URLs). */ @JsonIgnore public Optional logoUrl() { @@ -320,7 +322,8 @@ public Company withWebsiteUrls(Optional> websiteUrls) { } /** - * The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all + * valid (but not third-party-authenticated URLs). */ public Company withLogoUrl(String logoUrl) { Utils.checkNotNull(logoUrl, "logoUrl"); @@ -330,7 +333,8 @@ public Company withLogoUrl(String logoUrl) { /** - * The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all + * valid (but not third-party-authenticated URLs). */ public Company withLogoUrl(Optional logoUrl) { Utils.checkNotNull(logoUrl, "logoUrl"); @@ -645,7 +649,8 @@ public Builder websiteUrls(Optional> websiteUrls) { /** - * The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all + * valid (but not third-party-authenticated URLs). */ public Builder logoUrl(String logoUrl) { Utils.checkNotNull(logoUrl, "logoUrl"); @@ -654,7 +659,8 @@ public Builder logoUrl(String logoUrl) { } /** - * The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all + * valid (but not third-party-authenticated URLs). */ public Builder logoUrl(Optional logoUrl) { Utils.checkNotNull(logoUrl, "logoUrl"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/CreateAnnouncementRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/CreateAnnouncementRequest.java index 44b0d592..b11f9768 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/CreateAnnouncementRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/CreateAnnouncementRequest.java @@ -60,7 +60,8 @@ public class CreateAnnouncementRequest { private Optional banner; /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -88,7 +89,8 @@ public class CreateAnnouncementRequest { private Optional channel; /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("postType") @@ -102,7 +104,10 @@ public class CreateAnnouncementRequest { private Optional isPrioritized; /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewUrl") @@ -216,7 +221,8 @@ public Optional banner() { } /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -250,7 +256,8 @@ public Optional channel() { } /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -267,7 +274,10 @@ public Optional isPrioritized() { } /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ @JsonIgnore public Optional viewUrl() { @@ -365,7 +375,8 @@ public CreateAnnouncementRequest withBanner(Optional banner } /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ public CreateAnnouncementRequest withAudienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -375,7 +386,8 @@ public CreateAnnouncementRequest withAudienceFilters(List audienceF /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ public CreateAnnouncementRequest withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -441,7 +453,8 @@ public CreateAnnouncementRequest withChannel(Optional postType) { Utils.checkNotNull(postType, "postType"); @@ -479,7 +493,10 @@ public CreateAnnouncementRequest withIsPrioritized(Optional isPrioritiz } /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ public CreateAnnouncementRequest withViewUrl(String viewUrl) { Utils.checkNotNull(viewUrl, "viewUrl"); @@ -489,7 +506,10 @@ public CreateAnnouncementRequest withViewUrl(String viewUrl) { /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ public CreateAnnouncementRequest withViewUrl(Optional viewUrl) { Utils.checkNotNull(viewUrl, "viewUrl"); @@ -677,7 +697,8 @@ public Builder banner(Optional banner) { /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -686,7 +707,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -753,7 +775,8 @@ public Builder channel(Optional chan /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ public Builder postType(CreateAnnouncementRequestPostType postType) { Utils.checkNotNull(postType, "postType"); @@ -762,7 +785,8 @@ public Builder postType(CreateAnnouncementRequestPostType postType) { } /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ public Builder postType(Optional postType) { Utils.checkNotNull(postType, "postType"); @@ -791,7 +815,10 @@ public Builder isPrioritized(Optional isPrioritized) { /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ public Builder viewUrl(String viewUrl) { Utils.checkNotNull(viewUrl, "viewUrl"); @@ -800,7 +827,10 @@ public Builder viewUrl(String viewUrl) { } /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ public Builder viewUrl(Optional viewUrl) { Utils.checkNotNull(viewUrl, "viewUrl"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/CreateAnnouncementRequestPostType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/CreateAnnouncementRequestPostType.java index ecec0b49..93084aac 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/CreateAnnouncementRequestPostType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/CreateAnnouncementRequestPostType.java @@ -11,7 +11,8 @@ /** * CreateAnnouncementRequestPostType * - *

This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + *

This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ public enum CreateAnnouncementRequestPostType { TEXT("TEXT"), diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/CreateCollectionRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/CreateCollectionRequest.java index e9aeffc5..fb75f89f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/CreateCollectionRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/CreateCollectionRequest.java @@ -47,7 +47,8 @@ public class CreateCollectionRequest { private Optional> removedRoles; /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -87,7 +88,8 @@ public class CreateCollectionRequest { private Optional allowedDatasource; /** - * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection. Only used if parentId is specified. + * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end + * of the Collection. Only used if parentId is specified. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("newNextItemId") @@ -173,7 +175,8 @@ public Optional> removedRoles() { } /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -220,7 +223,8 @@ public Optional allowedDatasource() { } /** - * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection. Only used if parentId is specified. + * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end + * of the Collection. Only used if parentId is specified. */ @JsonIgnore public Optional newNextItemId() { @@ -299,7 +303,8 @@ public CreateCollectionRequest withRemovedRoles(Optional audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -309,7 +314,8 @@ public CreateCollectionRequest withAudienceFilters(List audienceFil /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public CreateCollectionRequest withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -407,7 +413,8 @@ public CreateCollectionRequest withAllowedDatasource(Optional allowedDat } /** - * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection. Only used if parentId is specified. + * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end + * of the Collection. Only used if parentId is specified. */ public CreateCollectionRequest withNewNextItemId(String newNextItemId) { Utils.checkNotNull(newNextItemId, "newNextItemId"); @@ -417,7 +424,8 @@ public CreateCollectionRequest withNewNextItemId(String newNextItemId) { /** - * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection. Only used if parentId is specified. + * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end + * of the Collection. Only used if parentId is specified. */ public CreateCollectionRequest withNewNextItemId(Optional newNextItemId) { Utils.checkNotNull(newNextItemId, "newNextItemId"); @@ -571,7 +579,8 @@ public Builder removedRoles(Optional> remo /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -580,7 +589,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -679,7 +689,8 @@ public Builder allowedDatasource(Optional allowedDatasource) { /** - * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection. Only used if parentId is specified. + * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end + * of the Collection. Only used if parentId is specified. */ public Builder newNextItemId(String newNextItemId) { Utils.checkNotNull(newNextItemId, "newNextItemId"); @@ -688,7 +699,8 @@ public Builder newNextItemId(String newNextItemId) { } /** - * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection. Only used if parentId is specified. + * The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end + * of the Collection. Only used if parentId is specified. */ public Builder newNextItemId(Optional newNextItemId) { Utils.checkNotNull(newNextItemId, "newNextItemId"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/CustomDatasourceConfig.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/CustomDatasourceConfig.java index f3fbb17c..bfe3adb2 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/CustomDatasourceConfig.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/CustomDatasourceConfig.java @@ -38,21 +38,32 @@ public class CustomDatasourceConfig { private Optional displayName; /** - * The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED. Please refer to [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. + * The type of this datasource. It is an important signal for relevance and must be specified and + * cannot be UNCATEGORIZED. Please refer to + * [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("datasourceCategory") private Optional datasourceCategory; /** - * Regular expression that matches URLs of documents of the datasource instance. The behavior for multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false). Please add a regex as specific as possible to this datasource instance.** + * Regular expression that matches URLs of documents of the datasource instance. The behavior for + * multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity + * datasources, but not required if the datasource is used to push custom entities (ie. + * + *

datasources where isEntityDatasource is false). Please add a regex as specific as possible to this + * datasource instance.** */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("urlRegex") private Optional urlRegex; /** - * The URL to an image to be displayed as an icon for this datasource instance. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL to an image to be displayed as an icon for this datasource instance. Must have a + * transparency mask. SVG are recommended over PNG. + * + *

Public, scio-authenticated and Base64 encoded data URLs are all valid (but not + * third-party-authenticated URLs). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("iconUrl") @@ -73,7 +84,8 @@ public class CustomDatasourceConfig { private Optional suggestionText; /** - * The URL of the landing page for this datasource instance. Should point to the most useful page for users, not the company marketing page. + * The URL of the landing page for this datasource instance. Should point to the most useful page for + * users, not the company marketing page. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("homeUrl") @@ -87,7 +99,11 @@ public class CustomDatasourceConfig { private Optional> crawlerSeedUrls; /** - * The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have + * a transparency mask. SVG are recommended over PNG. + * + *

Public, scio-authenticated and Base64 encoded data URLs are all valid (but not + * third-party-authenticated URLs). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("iconDarkUrl") @@ -101,14 +117,16 @@ public class CustomDatasourceConfig { private Optional> hideBuiltInFacets; /** - * A list of regular expressions to apply to an arbitrary URL to transform it into a canonical URL for this datasource instance. Regexes are to be applied in the order specified in this list. + * A list of regular expressions to apply to an arbitrary URL to transform it into a canonical URL for + * this datasource instance. Regexes are to be applied in the order specified in this list. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("canonicalizingURLRegex") private Optional> canonicalizingURLRegex; /** - * A list of regular expressions to apply to an arbitrary title to transform it into a title that will be displayed in the search results + * A list of regular expressions to apply to an arbitrary title to transform it into a title that will + * be displayed in the search results */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("canonicalizingTitleRegex") @@ -127,14 +145,18 @@ public class CustomDatasourceConfig { private Optional connectorType; /** - * List of actions for this datasource instance that will show up in autocomplete and app card, e.g. "Create new issue" for jira + * List of actions for this datasource instance that will show up in autocomplete and app card, e.g. + * "Create new issue" for jira */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("quicklinks") private Optional> quicklinks; /** - * The name of a render config to use for displaying results from this datasource. Any well known datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details + * The name of a render config to use for displaying results from this datasource. Any well known + * datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. + * + *

Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("renderConfigPreset") @@ -155,7 +177,9 @@ public class CustomDatasourceConfig { private Optional isOnPrem; /** - * True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load. + * True if browser activity is able to report the correct URL for VIEW events. Set this to true if the + * URLs reported by Chrome are constant throughout each page load. Set this to false if the page has + * Javascript that modifies the URL during or after the load. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trustUrlRegexForViewActivity") @@ -176,7 +200,8 @@ public class CustomDatasourceConfig { private Optional stripFragmentInCanonicalUrl; /** - * If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. + * If the datasource uses another datasource for identity info, then the name of the datasource. The + * identity datasource must exist already. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("identityDatasourceName") @@ -204,7 +229,8 @@ public class CustomDatasourceConfig { private Optional isEntityDatasource; /** - * True if this datasource will be used for testing purpose only. Documents from such a datasource wouldn't have any effect on search rankings. + * True if this datasource will be used for testing purpose only. Documents from such a datasource + * wouldn't have any effect on search rankings. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("isTestDatasource") @@ -325,7 +351,9 @@ public Optional displayName() { } /** - * The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED. Please refer to [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. + * The type of this datasource. It is an important signal for relevance and must be specified and + * cannot be UNCATEGORIZED. Please refer to + * [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -334,7 +362,12 @@ public Optional datasourceCategory() { } /** - * Regular expression that matches URLs of documents of the datasource instance. The behavior for multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false). Please add a regex as specific as possible to this datasource instance.** + * Regular expression that matches URLs of documents of the datasource instance. The behavior for + * multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity + * datasources, but not required if the datasource is used to push custom entities (ie. + * + *

datasources where isEntityDatasource is false). Please add a regex as specific as possible to this + * datasource instance.** */ @JsonIgnore public Optional urlRegex() { @@ -342,7 +375,11 @@ public Optional urlRegex() { } /** - * The URL to an image to be displayed as an icon for this datasource instance. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL to an image to be displayed as an icon for this datasource instance. Must have a + * transparency mask. SVG are recommended over PNG. + * + *

Public, scio-authenticated and Base64 encoded data URLs are all valid (but not + * third-party-authenticated URLs). */ @JsonIgnore public Optional iconUrl() { @@ -367,7 +404,8 @@ public Optional suggestionText() { } /** - * The URL of the landing page for this datasource instance. Should point to the most useful page for users, not the company marketing page. + * The URL of the landing page for this datasource instance. Should point to the most useful page for + * users, not the company marketing page. */ @JsonIgnore public Optional homeUrl() { @@ -384,7 +422,11 @@ public Optional> crawlerSeedUrls() { } /** - * The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have + * a transparency mask. SVG are recommended over PNG. + * + *

Public, scio-authenticated and Base64 encoded data URLs are all valid (but not + * third-party-authenticated URLs). */ @JsonIgnore public Optional iconDarkUrl() { @@ -401,7 +443,8 @@ public Optional> hideBuiltInFacets() { } /** - * A list of regular expressions to apply to an arbitrary URL to transform it into a canonical URL for this datasource instance. Regexes are to be applied in the order specified in this list. + * A list of regular expressions to apply to an arbitrary URL to transform it into a canonical URL for + * this datasource instance. Regexes are to be applied in the order specified in this list. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -410,7 +453,8 @@ public Optional> canonicalizingURLRegex() { } /** - * A list of regular expressions to apply to an arbitrary title to transform it into a title that will be displayed in the search results + * A list of regular expressions to apply to an arbitrary title to transform it into a title that will + * be displayed in the search results */ @SuppressWarnings("unchecked") @JsonIgnore @@ -433,7 +477,8 @@ public Optional connectorType() { } /** - * List of actions for this datasource instance that will show up in autocomplete and app card, e.g. "Create new issue" for jira + * List of actions for this datasource instance that will show up in autocomplete and app card, e.g. + * "Create new issue" for jira */ @SuppressWarnings("unchecked") @JsonIgnore @@ -442,7 +487,10 @@ public Optional> quicklinks() { } /** - * The name of a render config to use for displaying results from this datasource. Any well known datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details + * The name of a render config to use for displaying results from this datasource. Any well known + * datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. + * + *

Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details */ @JsonIgnore public Optional renderConfigPreset() { @@ -467,7 +515,9 @@ public Optional isOnPrem() { } /** - * True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load. + * True if browser activity is able to report the correct URL for VIEW events. Set this to true if the + * URLs reported by Chrome are constant throughout each page load. Set this to false if the page has + * Javascript that modifies the URL during or after the load. */ @JsonIgnore public Optional trustUrlRegexForViewActivity() { @@ -491,7 +541,8 @@ public Optional stripFragmentInCanonicalUrl() { } /** - * If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. + * If the datasource uses another datasource for identity info, then the name of the datasource. The + * identity datasource must exist already. */ @JsonIgnore public Optional identityDatasourceName() { @@ -523,7 +574,8 @@ public Optional isEntityDatasource() { } /** - * True if this datasource will be used for testing purpose only. Documents from such a datasource wouldn't have any effect on search rankings. + * True if this datasource will be used for testing purpose only. Documents from such a datasource + * wouldn't have any effect on search rankings. */ @JsonIgnore public Optional isTestDatasource() { @@ -564,7 +616,9 @@ public CustomDatasourceConfig withDisplayName(Optional displayName) { } /** - * The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED. Please refer to [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. + * The type of this datasource. It is an important signal for relevance and must be specified and + * cannot be UNCATEGORIZED. Please refer to + * [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. */ public CustomDatasourceConfig withDatasourceCategory(DatasourceCategory datasourceCategory) { Utils.checkNotNull(datasourceCategory, "datasourceCategory"); @@ -574,7 +628,9 @@ public CustomDatasourceConfig withDatasourceCategory(DatasourceCategory datasour /** - * The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED. Please refer to [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. + * The type of this datasource. It is an important signal for relevance and must be specified and + * cannot be UNCATEGORIZED. Please refer to + * [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. */ public CustomDatasourceConfig withDatasourceCategory(Optional datasourceCategory) { Utils.checkNotNull(datasourceCategory, "datasourceCategory"); @@ -583,7 +639,12 @@ public CustomDatasourceConfig withDatasourceCategory(Optionaldatasources where isEntityDatasource is false). Please add a regex as specific as possible to this + * datasource instance.** */ public CustomDatasourceConfig withUrlRegex(String urlRegex) { Utils.checkNotNull(urlRegex, "urlRegex"); @@ -593,7 +654,12 @@ public CustomDatasourceConfig withUrlRegex(String urlRegex) { /** - * Regular expression that matches URLs of documents of the datasource instance. The behavior for multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false). Please add a regex as specific as possible to this datasource instance.** + * Regular expression that matches URLs of documents of the datasource instance. The behavior for + * multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity + * datasources, but not required if the datasource is used to push custom entities (ie. + * + *

datasources where isEntityDatasource is false). Please add a regex as specific as possible to this + * datasource instance.** */ public CustomDatasourceConfig withUrlRegex(Optional urlRegex) { Utils.checkNotNull(urlRegex, "urlRegex"); @@ -602,7 +668,11 @@ public CustomDatasourceConfig withUrlRegex(Optional urlRegex) { } /** - * The URL to an image to be displayed as an icon for this datasource instance. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL to an image to be displayed as an icon for this datasource instance. Must have a + * transparency mask. SVG are recommended over PNG. + * + *

Public, scio-authenticated and Base64 encoded data URLs are all valid (but not + * third-party-authenticated URLs). */ public CustomDatasourceConfig withIconUrl(String iconUrl) { Utils.checkNotNull(iconUrl, "iconUrl"); @@ -612,7 +682,11 @@ public CustomDatasourceConfig withIconUrl(String iconUrl) { /** - * The URL to an image to be displayed as an icon for this datasource instance. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL to an image to be displayed as an icon for this datasource instance. Must have a + * transparency mask. SVG are recommended over PNG. + * + *

Public, scio-authenticated and Base64 encoded data URLs are all valid (but not + * third-party-authenticated URLs). */ public CustomDatasourceConfig withIconUrl(Optional iconUrl) { Utils.checkNotNull(iconUrl, "iconUrl"); @@ -659,7 +733,8 @@ public CustomDatasourceConfig withSuggestionText(Optional suggestionText } /** - * The URL of the landing page for this datasource instance. Should point to the most useful page for users, not the company marketing page. + * The URL of the landing page for this datasource instance. Should point to the most useful page for + * users, not the company marketing page. */ public CustomDatasourceConfig withHomeUrl(String homeUrl) { Utils.checkNotNull(homeUrl, "homeUrl"); @@ -669,7 +744,8 @@ public CustomDatasourceConfig withHomeUrl(String homeUrl) { /** - * The URL of the landing page for this datasource instance. Should point to the most useful page for users, not the company marketing page. + * The URL of the landing page for this datasource instance. Should point to the most useful page for + * users, not the company marketing page. */ public CustomDatasourceConfig withHomeUrl(Optional homeUrl) { Utils.checkNotNull(homeUrl, "homeUrl"); @@ -697,7 +773,11 @@ public CustomDatasourceConfig withCrawlerSeedUrls(OptionalPublic, scio-authenticated and Base64 encoded data URLs are all valid (but not + * third-party-authenticated URLs). */ public CustomDatasourceConfig withIconDarkUrl(String iconDarkUrl) { Utils.checkNotNull(iconDarkUrl, "iconDarkUrl"); @@ -707,7 +787,11 @@ public CustomDatasourceConfig withIconDarkUrl(String iconDarkUrl) { /** - * The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have + * a transparency mask. SVG are recommended over PNG. + * + *

Public, scio-authenticated and Base64 encoded data URLs are all valid (but not + * third-party-authenticated URLs). */ public CustomDatasourceConfig withIconDarkUrl(Optional iconDarkUrl) { Utils.checkNotNull(iconDarkUrl, "iconDarkUrl"); @@ -735,7 +819,8 @@ public CustomDatasourceConfig withHideBuiltInFacets(Optional canonicalizingURLRegex) { Utils.checkNotNull(canonicalizingURLRegex, "canonicalizingURLRegex"); @@ -745,7 +830,8 @@ public CustomDatasourceConfig withCanonicalizingURLRegex(List> canonicalizingURLRegex) { Utils.checkNotNull(canonicalizingURLRegex, "canonicalizingURLRegex"); @@ -754,7 +840,8 @@ public CustomDatasourceConfig withCanonicalizingURLRegex(Optional canonicalizingTitleRegex) { Utils.checkNotNull(canonicalizingTitleRegex, "canonicalizingTitleRegex"); @@ -764,7 +851,8 @@ public CustomDatasourceConfig withCanonicalizingTitleRegex(List> canonicalizingTitleRegex) { Utils.checkNotNull(canonicalizingTitleRegex, "canonicalizingTitleRegex"); @@ -805,7 +893,8 @@ public CustomDatasourceConfig withConnectorType(Optional quicklinks) { Utils.checkNotNull(quicklinks, "quicklinks"); @@ -815,7 +904,8 @@ public CustomDatasourceConfig withQuicklinks(List quicklinks) { /** - * List of actions for this datasource instance that will show up in autocomplete and app card, e.g. "Create new issue" for jira + * List of actions for this datasource instance that will show up in autocomplete and app card, e.g. + * "Create new issue" for jira */ public CustomDatasourceConfig withQuicklinks(Optional> quicklinks) { Utils.checkNotNull(quicklinks, "quicklinks"); @@ -824,7 +914,10 @@ public CustomDatasourceConfig withQuicklinks(Optional> } /** - * The name of a render config to use for displaying results from this datasource. Any well known datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details + * The name of a render config to use for displaying results from this datasource. Any well known + * datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. + * + *

Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details */ public CustomDatasourceConfig withRenderConfigPreset(String renderConfigPreset) { Utils.checkNotNull(renderConfigPreset, "renderConfigPreset"); @@ -834,7 +927,10 @@ public CustomDatasourceConfig withRenderConfigPreset(String renderConfigPreset) /** - * The name of a render config to use for displaying results from this datasource. Any well known datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details + * The name of a render config to use for displaying results from this datasource. Any well known + * datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. + * + *

Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details */ public CustomDatasourceConfig withRenderConfigPreset(Optional renderConfigPreset) { Utils.checkNotNull(renderConfigPreset, "renderConfigPreset"); @@ -881,7 +977,9 @@ public CustomDatasourceConfig withIsOnPrem(Optional isOnPrem) { } /** - * True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load. + * True if browser activity is able to report the correct URL for VIEW events. Set this to true if the + * URLs reported by Chrome are constant throughout each page load. Set this to false if the page has + * Javascript that modifies the URL during or after the load. */ public CustomDatasourceConfig withTrustUrlRegexForViewActivity(boolean trustUrlRegexForViewActivity) { Utils.checkNotNull(trustUrlRegexForViewActivity, "trustUrlRegexForViewActivity"); @@ -891,7 +989,9 @@ public CustomDatasourceConfig withTrustUrlRegexForViewActivity(boolean trustUrlR /** - * True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load. + * True if browser activity is able to report the correct URL for VIEW events. Set this to true if the + * URLs reported by Chrome are constant throughout each page load. Set this to false if the page has + * Javascript that modifies the URL during or after the load. */ public CustomDatasourceConfig withTrustUrlRegexForViewActivity(Optional trustUrlRegexForViewActivity) { Utils.checkNotNull(trustUrlRegexForViewActivity, "trustUrlRegexForViewActivity"); @@ -938,7 +1038,8 @@ public CustomDatasourceConfig withStripFragmentInCanonicalUrl(Optional } /** - * If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. + * If the datasource uses another datasource for identity info, then the name of the datasource. The + * identity datasource must exist already. */ public CustomDatasourceConfig withIdentityDatasourceName(String identityDatasourceName) { Utils.checkNotNull(identityDatasourceName, "identityDatasourceName"); @@ -948,7 +1049,8 @@ public CustomDatasourceConfig withIdentityDatasourceName(String identityDatasour /** - * If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. + * If the datasource uses another datasource for identity info, then the name of the datasource. The + * identity datasource must exist already. */ public CustomDatasourceConfig withIdentityDatasourceName(Optional identityDatasourceName) { Utils.checkNotNull(identityDatasourceName, "identityDatasourceName"); @@ -1014,7 +1116,8 @@ public CustomDatasourceConfig withIsEntityDatasource(Optional isEntityD } /** - * True if this datasource will be used for testing purpose only. Documents from such a datasource wouldn't have any effect on search rankings. + * True if this datasource will be used for testing purpose only. Documents from such a datasource + * wouldn't have any effect on search rankings. */ public CustomDatasourceConfig withIsTestDatasource(boolean isTestDatasource) { Utils.checkNotNull(isTestDatasource, "isTestDatasource"); @@ -1024,7 +1127,8 @@ public CustomDatasourceConfig withIsTestDatasource(boolean isTestDatasource) { /** - * True if this datasource will be used for testing purpose only. Documents from such a datasource wouldn't have any effect on search rankings. + * True if this datasource will be used for testing purpose only. Documents from such a datasource + * wouldn't have any effect on search rankings. */ public CustomDatasourceConfig withIsTestDatasource(Optional isTestDatasource) { Utils.checkNotNull(isTestDatasource, "isTestDatasource"); @@ -1209,7 +1313,9 @@ public Builder displayName(Optional displayName) { /** - * The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED. Please refer to [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. + * The type of this datasource. It is an important signal for relevance and must be specified and + * cannot be UNCATEGORIZED. Please refer to + * [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. */ public Builder datasourceCategory(DatasourceCategory datasourceCategory) { Utils.checkNotNull(datasourceCategory, "datasourceCategory"); @@ -1218,7 +1324,9 @@ public Builder datasourceCategory(DatasourceCategory datasourceCategory) { } /** - * The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED. Please refer to [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. + * The type of this datasource. It is an important signal for relevance and must be specified and + * cannot be UNCATEGORIZED. Please refer to + * [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. */ public Builder datasourceCategory(Optional datasourceCategory) { Utils.checkNotNull(datasourceCategory, "datasourceCategory"); @@ -1228,7 +1336,12 @@ public Builder datasourceCategory(Optional datasou /** - * Regular expression that matches URLs of documents of the datasource instance. The behavior for multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false). Please add a regex as specific as possible to this datasource instance.** + * Regular expression that matches URLs of documents of the datasource instance. The behavior for + * multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity + * datasources, but not required if the datasource is used to push custom entities (ie. + * + *

datasources where isEntityDatasource is false). Please add a regex as specific as possible to this + * datasource instance.** */ public Builder urlRegex(String urlRegex) { Utils.checkNotNull(urlRegex, "urlRegex"); @@ -1237,7 +1350,12 @@ public Builder urlRegex(String urlRegex) { } /** - * Regular expression that matches URLs of documents of the datasource instance. The behavior for multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false). Please add a regex as specific as possible to this datasource instance.** + * Regular expression that matches URLs of documents of the datasource instance. The behavior for + * multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity + * datasources, but not required if the datasource is used to push custom entities (ie. + * + *

datasources where isEntityDatasource is false). Please add a regex as specific as possible to this + * datasource instance.** */ public Builder urlRegex(Optional urlRegex) { Utils.checkNotNull(urlRegex, "urlRegex"); @@ -1247,7 +1365,11 @@ public Builder urlRegex(Optional urlRegex) { /** - * The URL to an image to be displayed as an icon for this datasource instance. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL to an image to be displayed as an icon for this datasource instance. Must have a + * transparency mask. SVG are recommended over PNG. + * + *

Public, scio-authenticated and Base64 encoded data URLs are all valid (but not + * third-party-authenticated URLs). */ public Builder iconUrl(String iconUrl) { Utils.checkNotNull(iconUrl, "iconUrl"); @@ -1256,7 +1378,11 @@ public Builder iconUrl(String iconUrl) { } /** - * The URL to an image to be displayed as an icon for this datasource instance. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL to an image to be displayed as an icon for this datasource instance. Must have a + * transparency mask. SVG are recommended over PNG. + * + *

Public, scio-authenticated and Base64 encoded data URLs are all valid (but not + * third-party-authenticated URLs). */ public Builder iconUrl(Optional iconUrl) { Utils.checkNotNull(iconUrl, "iconUrl"); @@ -1304,7 +1430,8 @@ public Builder suggestionText(Optional suggestionText) { /** - * The URL of the landing page for this datasource instance. Should point to the most useful page for users, not the company marketing page. + * The URL of the landing page for this datasource instance. Should point to the most useful page for + * users, not the company marketing page. */ public Builder homeUrl(String homeUrl) { Utils.checkNotNull(homeUrl, "homeUrl"); @@ -1313,7 +1440,8 @@ public Builder homeUrl(String homeUrl) { } /** - * The URL of the landing page for this datasource instance. Should point to the most useful page for users, not the company marketing page. + * The URL of the landing page for this datasource instance. Should point to the most useful page for + * users, not the company marketing page. */ public Builder homeUrl(Optional homeUrl) { Utils.checkNotNull(homeUrl, "homeUrl"); @@ -1342,7 +1470,11 @@ public Builder crawlerSeedUrls(Optional> crawlerSeedUrls) /** - * The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have + * a transparency mask. SVG are recommended over PNG. + * + *

Public, scio-authenticated and Base64 encoded data URLs are all valid (but not + * third-party-authenticated URLs). */ public Builder iconDarkUrl(String iconDarkUrl) { Utils.checkNotNull(iconDarkUrl, "iconDarkUrl"); @@ -1351,7 +1483,11 @@ public Builder iconDarkUrl(String iconDarkUrl) { } /** - * The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have + * a transparency mask. SVG are recommended over PNG. + * + *

Public, scio-authenticated and Base64 encoded data URLs are all valid (but not + * third-party-authenticated URLs). */ public Builder iconDarkUrl(Optional iconDarkUrl) { Utils.checkNotNull(iconDarkUrl, "iconDarkUrl"); @@ -1380,7 +1516,8 @@ public Builder hideBuiltInFacets(Optional> hide /** - * A list of regular expressions to apply to an arbitrary URL to transform it into a canonical URL for this datasource instance. Regexes are to be applied in the order specified in this list. + * A list of regular expressions to apply to an arbitrary URL to transform it into a canonical URL for + * this datasource instance. Regexes are to be applied in the order specified in this list. */ public Builder canonicalizingURLRegex(List canonicalizingURLRegex) { Utils.checkNotNull(canonicalizingURLRegex, "canonicalizingURLRegex"); @@ -1389,7 +1526,8 @@ public Builder canonicalizingURLRegex(List canonicalizi } /** - * A list of regular expressions to apply to an arbitrary URL to transform it into a canonical URL for this datasource instance. Regexes are to be applied in the order specified in this list. + * A list of regular expressions to apply to an arbitrary URL to transform it into a canonical URL for + * this datasource instance. Regexes are to be applied in the order specified in this list. */ public Builder canonicalizingURLRegex(Optional> canonicalizingURLRegex) { Utils.checkNotNull(canonicalizingURLRegex, "canonicalizingURLRegex"); @@ -1399,7 +1537,8 @@ public Builder canonicalizingURLRegex(Optional canonicalizingTitleRegex) { Utils.checkNotNull(canonicalizingTitleRegex, "canonicalizingTitleRegex"); @@ -1408,7 +1547,8 @@ public Builder canonicalizingTitleRegex(List canonicali } /** - * A list of regular expressions to apply to an arbitrary title to transform it into a title that will be displayed in the search results + * A list of regular expressions to apply to an arbitrary title to transform it into a title that will + * be displayed in the search results */ public Builder canonicalizingTitleRegex(Optional> canonicalizingTitleRegex) { Utils.checkNotNull(canonicalizingTitleRegex, "canonicalizingTitleRegex"); @@ -1450,7 +1590,8 @@ public Builder connectorType(Optional quicklinks) { Utils.checkNotNull(quicklinks, "quicklinks"); @@ -1459,7 +1600,8 @@ public Builder quicklinks(List quicklinks) { } /** - * List of actions for this datasource instance that will show up in autocomplete and app card, e.g. "Create new issue" for jira + * List of actions for this datasource instance that will show up in autocomplete and app card, e.g. + * "Create new issue" for jira */ public Builder quicklinks(Optional> quicklinks) { Utils.checkNotNull(quicklinks, "quicklinks"); @@ -1469,7 +1611,10 @@ public Builder quicklinks(Optional> quicklinks) { /** - * The name of a render config to use for displaying results from this datasource. Any well known datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details + * The name of a render config to use for displaying results from this datasource. Any well known + * datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. + * + *

Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details */ public Builder renderConfigPreset(String renderConfigPreset) { Utils.checkNotNull(renderConfigPreset, "renderConfigPreset"); @@ -1478,7 +1623,10 @@ public Builder renderConfigPreset(String renderConfigPreset) { } /** - * The name of a render config to use for displaying results from this datasource. Any well known datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details + * The name of a render config to use for displaying results from this datasource. Any well known + * datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. + * + *

Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details */ public Builder renderConfigPreset(Optional renderConfigPreset) { Utils.checkNotNull(renderConfigPreset, "renderConfigPreset"); @@ -1526,7 +1674,9 @@ public Builder isOnPrem(Optional isOnPrem) { /** - * True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load. + * True if browser activity is able to report the correct URL for VIEW events. Set this to true if the + * URLs reported by Chrome are constant throughout each page load. Set this to false if the page has + * Javascript that modifies the URL during or after the load. */ public Builder trustUrlRegexForViewActivity(boolean trustUrlRegexForViewActivity) { Utils.checkNotNull(trustUrlRegexForViewActivity, "trustUrlRegexForViewActivity"); @@ -1535,7 +1685,9 @@ public Builder trustUrlRegexForViewActivity(boolean trustUrlRegexForViewActivity } /** - * True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load. + * True if browser activity is able to report the correct URL for VIEW events. Set this to true if the + * URLs reported by Chrome are constant throughout each page load. Set this to false if the page has + * Javascript that modifies the URL during or after the load. */ public Builder trustUrlRegexForViewActivity(Optional trustUrlRegexForViewActivity) { Utils.checkNotNull(trustUrlRegexForViewActivity, "trustUrlRegexForViewActivity"); @@ -1583,7 +1735,8 @@ public Builder stripFragmentInCanonicalUrl(Optional stripFragmentInCano /** - * If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. + * If the datasource uses another datasource for identity info, then the name of the datasource. The + * identity datasource must exist already. */ public Builder identityDatasourceName(String identityDatasourceName) { Utils.checkNotNull(identityDatasourceName, "identityDatasourceName"); @@ -1592,7 +1745,8 @@ public Builder identityDatasourceName(String identityDatasourceName) { } /** - * If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. + * If the datasource uses another datasource for identity info, then the name of the datasource. The + * identity datasource must exist already. */ public Builder identityDatasourceName(Optional identityDatasourceName) { Utils.checkNotNull(identityDatasourceName, "identityDatasourceName"); @@ -1659,7 +1813,8 @@ public Builder isEntityDatasource(Optional isEntityDatasource) { /** - * True if this datasource will be used for testing purpose only. Documents from such a datasource wouldn't have any effect on search rankings. + * True if this datasource will be used for testing purpose only. Documents from such a datasource + * wouldn't have any effect on search rankings. */ public Builder isTestDatasource(boolean isTestDatasource) { Utils.checkNotNull(isTestDatasource, "isTestDatasource"); @@ -1668,7 +1823,8 @@ public Builder isTestDatasource(boolean isTestDatasource) { } /** - * True if this datasource will be used for testing purpose only. Documents from such a datasource wouldn't have any effect on search rankings. + * True if this datasource will be used for testing purpose only. Documents from such a datasource + * wouldn't have any effect on search rankings. */ public Builder isTestDatasource(Optional isTestDatasource) { Utils.checkNotNull(isTestDatasource, "isTestDatasource"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/CustomProperty.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/CustomProperty.java index 92cc45f4..cbae1e44 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/CustomProperty.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/CustomProperty.java @@ -27,7 +27,9 @@ public class CustomProperty { private Optional name; /** - * Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this. + * Must either be a string or an array of strings. An integer, boolean, etc. is not valid. + * + *

When OpenAPI Generator supports `oneOf`, we can semantically enforce this. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("value") @@ -53,7 +55,9 @@ public Optional name() { } /** - * Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this. + * Must either be a string or an array of strings. An integer, boolean, etc. is not valid. + * + *

When OpenAPI Generator supports `oneOf`, we can semantically enforce this. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -80,7 +84,9 @@ public CustomProperty withName(Optional name) { } /** - * Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this. + * Must either be a string or an array of strings. An integer, boolean, etc. is not valid. + * + *

When OpenAPI Generator supports `oneOf`, we can semantically enforce this. */ public CustomProperty withValue(Object value) { Utils.checkNotNull(value, "value"); @@ -90,7 +96,9 @@ public CustomProperty withValue(Object value) { /** - * Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this. + * Must either be a string or an array of strings. An integer, boolean, etc. is not valid. + * + *

When OpenAPI Generator supports `oneOf`, we can semantically enforce this. */ public CustomProperty withValue(Optional value) { Utils.checkNotNull(value, "value"); @@ -151,7 +159,9 @@ public Builder name(Optional name) { /** - * Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this. + * Must either be a string or an array of strings. An integer, boolean, etc. is not valid. + * + *

When OpenAPI Generator supports `oneOf`, we can semantically enforce this. */ public Builder value(Object value) { Utils.checkNotNull(value, "value"); @@ -160,7 +170,9 @@ public Builder value(Object value) { } /** - * Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this. + * Must either be a string or an array of strings. An integer, boolean, etc. is not valid. + * + *

When OpenAPI Generator supports `oneOf`, we can semantically enforce this. */ public Builder value(Optional value) { Utils.checkNotNull(value, "value"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Customer.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Customer.java index 20dee538..a9cbbe2a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Customer.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Customer.java @@ -39,7 +39,8 @@ public class Customer { private Company company; /** - * A map of {string, int} pairs representing counts of each document type associated with this customer. + * A map of {string, int} pairs representing counts of each document type associated with this + * customer. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("documentCounts") @@ -151,7 +152,8 @@ public Company company() { } /** - * A map of {string, int} pairs representing counts of each document type associated with this customer. + * A map of {string, int} pairs representing counts of each document type associated with this + * customer. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -247,7 +249,8 @@ public Customer withCompany(Company company) { } /** - * A map of {string, int} pairs representing counts of each document type associated with this customer. + * A map of {string, int} pairs representing counts of each document type associated with this + * customer. */ public Customer withDocumentCounts(Map documentCounts) { Utils.checkNotNull(documentCounts, "documentCounts"); @@ -257,7 +260,8 @@ public Customer withDocumentCounts(Map documentCounts) { /** - * A map of {string, int} pairs representing counts of each document type associated with this customer. + * A map of {string, int} pairs representing counts of each document type associated with this + * customer. */ public Customer withDocumentCounts(Optional> documentCounts) { Utils.checkNotNull(documentCounts, "documentCounts"); @@ -484,7 +488,8 @@ public Builder company(Company company) { /** - * A map of {string, int} pairs representing counts of each document type associated with this customer. + * A map of {string, int} pairs representing counts of each document type associated with this + * customer. */ public Builder documentCounts(Map documentCounts) { Utils.checkNotNull(documentCounts, "documentCounts"); @@ -493,7 +498,8 @@ public Builder documentCounts(Map documentCounts) { } /** - * A map of {string, int} pairs representing counts of each document type associated with this customer. + * A map of {string, int} pairs representing counts of each document type associated with this + * customer. */ public Builder documentCounts(Optional> documentCounts) { Utils.checkNotNull(documentCounts, "documentCounts"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceBulkMembershipDefinition.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceBulkMembershipDefinition.java index 7d0a52ed..ff545b93 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceBulkMembershipDefinition.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceBulkMembershipDefinition.java @@ -16,7 +16,8 @@ /** * DatasourceBulkMembershipDefinition * - *

describes the membership row of a group in the bulk uploaded. Only one of memberUserId and memberGroupName can be specified. + *

describes the membership row of a group in the bulk uploaded. Only one of memberUserId and + * memberGroupName can be specified. */ public class DatasourceBulkMembershipDefinition { /** diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceCategory.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceCategory.java index ef31dbe7..fa0a40ad 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceCategory.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceCategory.java @@ -11,7 +11,9 @@ /** * DatasourceCategory * - *

The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED. Please refer to [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. + *

The type of this datasource. It is an important signal for relevance and must be specified and + * cannot be UNCATEGORIZED. Please refer to + * [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. */ public enum DatasourceCategory { UNCATEGORIZED("UNCATEGORIZED"), diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceMembershipDefinition.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceMembershipDefinition.java index d004f31f..28e8db92 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceMembershipDefinition.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceMembershipDefinition.java @@ -16,7 +16,8 @@ /** * DatasourceMembershipDefinition * - *

describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. + *

describes the membership row of a group. Only one of memberUserId and memberGroupName can be + * specified. */ public class DatasourceMembershipDefinition { /** diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceProfile.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceProfile.java index 4833367f..b6d9bccb 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceProfile.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DatasourceProfile.java @@ -36,14 +36,16 @@ public class DatasourceProfile { private Optional url; /** - * A deep link, if available, into the datasource's native application for the entity's platform (i.e. slack://...). + * A deep link, if available, into the datasource's native application for the entity's platform (i.e. + * slack://...). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("nativeAppUrl") private Optional nativeAppUrl; /** - * For internal use only. True iff the data source profile was manually added by a user from within Glean (aka not from the original data source) + * For internal use only. True iff the data source profile was manually added by a user from within + * Glean (aka not from the original data source) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("isUserGenerated") @@ -100,7 +102,8 @@ public Optional url() { } /** - * A deep link, if available, into the datasource's native application for the entity's platform (i.e. slack://...). + * A deep link, if available, into the datasource's native application for the entity's platform (i.e. + * slack://...). */ @JsonIgnore public Optional nativeAppUrl() { @@ -108,7 +111,8 @@ public Optional nativeAppUrl() { } /** - * For internal use only. True iff the data source profile was manually added by a user from within Glean (aka not from the original data source) + * For internal use only. True iff the data source profile was manually added by a user from within + * Glean (aka not from the original data source) */ @JsonIgnore public Optional isUserGenerated() { @@ -158,7 +162,8 @@ public DatasourceProfile withUrl(Optional url) { } /** - * A deep link, if available, into the datasource's native application for the entity's platform (i.e. slack://...). + * A deep link, if available, into the datasource's native application for the entity's platform (i.e. + * slack://...). */ public DatasourceProfile withNativeAppUrl(String nativeAppUrl) { Utils.checkNotNull(nativeAppUrl, "nativeAppUrl"); @@ -168,7 +173,8 @@ public DatasourceProfile withNativeAppUrl(String nativeAppUrl) { /** - * A deep link, if available, into the datasource's native application for the entity's platform (i.e. slack://...). + * A deep link, if available, into the datasource's native application for the entity's platform (i.e. + * slack://...). */ public DatasourceProfile withNativeAppUrl(Optional nativeAppUrl) { Utils.checkNotNull(nativeAppUrl, "nativeAppUrl"); @@ -177,7 +183,8 @@ public DatasourceProfile withNativeAppUrl(Optional nativeAppUrl) { } /** - * For internal use only. True iff the data source profile was manually added by a user from within Glean (aka not from the original data source) + * For internal use only. True iff the data source profile was manually added by a user from within + * Glean (aka not from the original data source) */ public DatasourceProfile withIsUserGenerated(boolean isUserGenerated) { Utils.checkNotNull(isUserGenerated, "isUserGenerated"); @@ -187,7 +194,8 @@ public DatasourceProfile withIsUserGenerated(boolean isUserGenerated) { /** - * For internal use only. True iff the data source profile was manually added by a user from within Glean (aka not from the original data source) + * For internal use only. True iff the data source profile was manually added by a user from within + * Glean (aka not from the original data source) */ public DatasourceProfile withIsUserGenerated(Optional isUserGenerated) { Utils.checkNotNull(isUserGenerated, "isUserGenerated"); @@ -287,7 +295,8 @@ public Builder url(Optional url) { /** - * A deep link, if available, into the datasource's native application for the entity's platform (i.e. slack://...). + * A deep link, if available, into the datasource's native application for the entity's platform (i.e. + * slack://...). */ public Builder nativeAppUrl(String nativeAppUrl) { Utils.checkNotNull(nativeAppUrl, "nativeAppUrl"); @@ -296,7 +305,8 @@ public Builder nativeAppUrl(String nativeAppUrl) { } /** - * A deep link, if available, into the datasource's native application for the entity's platform (i.e. slack://...). + * A deep link, if available, into the datasource's native application for the entity's platform (i.e. + * slack://...). */ public Builder nativeAppUrl(Optional nativeAppUrl) { Utils.checkNotNull(nativeAppUrl, "nativeAppUrl"); @@ -306,7 +316,8 @@ public Builder nativeAppUrl(Optional nativeAppUrl) { /** - * For internal use only. True iff the data source profile was manually added by a user from within Glean (aka not from the original data source) + * For internal use only. True iff the data source profile was manually added by a user from within + * Glean (aka not from the original data source) */ public Builder isUserGenerated(boolean isUserGenerated) { Utils.checkNotNull(isUserGenerated, "isUserGenerated"); @@ -315,7 +326,8 @@ public Builder isUserGenerated(boolean isUserGenerated) { } /** - * For internal use only. True iff the data source profile was manually added by a user from within Glean (aka not from the original data source) + * For internal use only. True iff the data source profile was manually added by a user from within + * Glean (aka not from the original data source) */ public Builder isUserGenerated(Optional isUserGenerated) { Utils.checkNotNull(isUserGenerated, "isUserGenerated"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteAnswerRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteAnswerRequest.java index b12f7063..66754713 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteAnswerRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteAnswerRequest.java @@ -23,7 +23,8 @@ public class DeleteAnswerRequest { private long id; /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("docId") @@ -53,7 +54,8 @@ public long id() { } /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ @JsonIgnore public Optional docId() { @@ -75,7 +77,8 @@ public DeleteAnswerRequest withId(long id) { } /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public DeleteAnswerRequest withDocId(String docId) { Utils.checkNotNull(docId, "docId"); @@ -85,7 +88,8 @@ public DeleteAnswerRequest withDocId(String docId) { /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public DeleteAnswerRequest withDocId(Optional docId) { Utils.checkNotNull(docId, "docId"); @@ -143,7 +147,8 @@ public Builder id(long id) { /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public Builder docId(String docId) { Utils.checkNotNull(docId, "docId"); @@ -152,7 +157,8 @@ public Builder docId(String docId) { } /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public Builder docId(Optional docId) { Utils.checkNotNull(docId, "docId"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteCollectionItemRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteCollectionItemRequest.java index 33f4c5cb..d175517e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteCollectionItemRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteCollectionItemRequest.java @@ -29,7 +29,8 @@ public class DeleteCollectionItemRequest { private String itemId; /** - * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. + * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an + * indexed document. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("documentId") @@ -71,7 +72,8 @@ public String itemId() { } /** - * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. + * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an + * indexed document. */ @JsonIgnore public Optional documentId() { @@ -102,7 +104,8 @@ public DeleteCollectionItemRequest withItemId(String itemId) { } /** - * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. + * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an + * indexed document. */ public DeleteCollectionItemRequest withDocumentId(String documentId) { Utils.checkNotNull(documentId, "documentId"); @@ -112,7 +115,8 @@ public DeleteCollectionItemRequest withDocumentId(String documentId) { /** - * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. + * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an + * indexed document. */ public DeleteCollectionItemRequest withDocumentId(Optional documentId) { Utils.checkNotNull(documentId, "documentId"); @@ -184,7 +188,8 @@ public Builder itemId(String itemId) { /** - * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. + * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an + * indexed document. */ public Builder documentId(String documentId) { Utils.checkNotNull(documentId, "documentId"); @@ -193,7 +198,8 @@ public Builder documentId(String documentId) { } /** - * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. + * The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an + * indexed document. */ public Builder documentId(Optional documentId) { Utils.checkNotNull(documentId, "documentId"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteDocumentRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteDocumentRequest.java index 52a01954..a91ebb46 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteDocumentRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteDocumentRequest.java @@ -21,7 +21,8 @@ */ public class DeleteDocumentRequest { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") @@ -70,7 +71,8 @@ public DeleteDocumentRequest( } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonIgnore public Optional version() { @@ -107,7 +109,8 @@ public static Builder builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public DeleteDocumentRequest withVersion(long version) { Utils.checkNotNull(version, "version"); @@ -117,7 +120,8 @@ public DeleteDocumentRequest withVersion(long version) { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public DeleteDocumentRequest withVersion(Optional version) { Utils.checkNotNull(version, "version"); @@ -201,7 +205,8 @@ private Builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(long version) { Utils.checkNotNull(version, "version"); @@ -210,7 +215,8 @@ public Builder version(long version) { } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(Optional version) { Utils.checkNotNull(version, "version"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteEmployeeRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteEmployeeRequest.java index c3614276..33aee26f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteEmployeeRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteEmployeeRequest.java @@ -21,7 +21,8 @@ */ public class DeleteEmployeeRequest { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") @@ -49,7 +50,8 @@ public DeleteEmployeeRequest( } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonIgnore public Optional version() { @@ -70,7 +72,8 @@ public static Builder builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public DeleteEmployeeRequest withVersion(long version) { Utils.checkNotNull(version, "version"); @@ -80,7 +83,8 @@ public DeleteEmployeeRequest withVersion(long version) { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public DeleteEmployeeRequest withVersion(Optional version) { Utils.checkNotNull(version, "version"); @@ -137,7 +141,8 @@ private Builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(long version) { Utils.checkNotNull(version, "version"); @@ -146,7 +151,8 @@ public Builder version(long version) { } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(Optional version) { Utils.checkNotNull(version, "version"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteGroupRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteGroupRequest.java index c6f167de..5a3c2a0b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteGroupRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteGroupRequest.java @@ -21,7 +21,8 @@ */ public class DeleteGroupRequest { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") @@ -59,7 +60,8 @@ public DeleteGroupRequest( } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonIgnore public Optional version() { @@ -88,7 +90,8 @@ public static Builder builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public DeleteGroupRequest withVersion(long version) { Utils.checkNotNull(version, "version"); @@ -98,7 +101,8 @@ public DeleteGroupRequest withVersion(long version) { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public DeleteGroupRequest withVersion(Optional version) { Utils.checkNotNull(version, "version"); @@ -168,7 +172,8 @@ private Builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(long version) { Utils.checkNotNull(version, "version"); @@ -177,7 +182,8 @@ public Builder version(long version) { } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(Optional version) { Utils.checkNotNull(version, "version"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteMembershipRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteMembershipRequest.java index 4e468b4e..45830b83 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteMembershipRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteMembershipRequest.java @@ -21,7 +21,8 @@ */ public class DeleteMembershipRequest { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") @@ -34,7 +35,8 @@ public class DeleteMembershipRequest { private String datasource; /** - * describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. + * describes the membership row of a group. Only one of memberUserId and memberGroupName can be + * specified. */ @JsonProperty("membership") private DatasourceMembershipDefinition membership; @@ -59,7 +61,8 @@ public DeleteMembershipRequest( } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonIgnore public Optional version() { @@ -75,7 +78,8 @@ public String datasource() { } /** - * describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. + * describes the membership row of a group. Only one of memberUserId and memberGroupName can be + * specified. */ @JsonIgnore public DatasourceMembershipDefinition membership() { @@ -88,7 +92,8 @@ public static Builder builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public DeleteMembershipRequest withVersion(long version) { Utils.checkNotNull(version, "version"); @@ -98,7 +103,8 @@ public DeleteMembershipRequest withVersion(long version) { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public DeleteMembershipRequest withVersion(Optional version) { Utils.checkNotNull(version, "version"); @@ -116,7 +122,8 @@ public DeleteMembershipRequest withDatasource(String datasource) { } /** - * describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. + * describes the membership row of a group. Only one of memberUserId and memberGroupName can be + * specified. */ public DeleteMembershipRequest withMembership(DatasourceMembershipDefinition membership) { Utils.checkNotNull(membership, "membership"); @@ -168,7 +175,8 @@ private Builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(long version) { Utils.checkNotNull(version, "version"); @@ -177,7 +185,8 @@ public Builder version(long version) { } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(Optional version) { Utils.checkNotNull(version, "version"); @@ -197,7 +206,8 @@ public Builder datasource(String datasource) { /** - * describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. + * describes the membership row of a group. Only one of memberUserId and memberGroupName can be + * specified. */ public Builder membership(DatasourceMembershipDefinition membership) { Utils.checkNotNull(membership, "membership"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteUserRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteUserRequest.java index 6b01599a..eaf1a4da 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteUserRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DeleteUserRequest.java @@ -21,7 +21,8 @@ */ public class DeleteUserRequest { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") @@ -59,7 +60,8 @@ public DeleteUserRequest( } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonIgnore public Optional version() { @@ -88,7 +90,8 @@ public static Builder builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public DeleteUserRequest withVersion(long version) { Utils.checkNotNull(version, "version"); @@ -98,7 +101,8 @@ public DeleteUserRequest withVersion(long version) { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public DeleteUserRequest withVersion(Optional version) { Utils.checkNotNull(version, "version"); @@ -168,7 +172,8 @@ private Builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(long version) { Utils.checkNotNull(version, "version"); @@ -177,7 +182,8 @@ public Builder version(long version) { } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(Optional version) { Utils.checkNotNull(version, "version"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Digest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Digest.java index dc6eaf27..5568b049 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Digest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Digest.java @@ -33,7 +33,8 @@ public class Digest { private Optional podcastDuration; /** - * The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest content and updates were compiled. This can be empty if the digest is not yet available. + * The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest + * content and updates were compiled. This can be empty if the digest is not yet available. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("digestDate") @@ -84,7 +85,8 @@ public Optional podcastDuration() { } /** - * The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest content and updates were compiled. This can be empty if the digest is not yet available. + * The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest + * content and updates were compiled. This can be empty if the digest is not yet available. */ @JsonIgnore public Optional digestDate() { @@ -144,7 +146,8 @@ public Digest withPodcastDuration(Optional podcastDuration) { } /** - * The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest content and updates were compiled. This can be empty if the digest is not yet available. + * The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest + * content and updates were compiled. This can be empty if the digest is not yet available. */ public Digest withDigestDate(String digestDate) { Utils.checkNotNull(digestDate, "digestDate"); @@ -154,7 +157,8 @@ public Digest withDigestDate(String digestDate) { /** - * The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest content and updates were compiled. This can be empty if the digest is not yet available. + * The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest + * content and updates were compiled. This can be empty if the digest is not yet available. */ public Digest withDigestDate(Optional digestDate) { Utils.checkNotNull(digestDate, "digestDate"); @@ -268,7 +272,8 @@ public Builder podcastDuration(Optional podcastDuration) { /** - * The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest content and updates were compiled. This can be empty if the digest is not yet available. + * The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest + * content and updates were compiled. This can be empty if the digest is not yet available. */ public Builder digestDate(String digestDate) { Utils.checkNotNull(digestDate, "digestDate"); @@ -277,7 +282,8 @@ public Builder digestDate(String digestDate) { } /** - * The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest content and updates were compiled. This can be empty if the digest is not yet available. + * The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest + * content and updates were compiled. This can be empty if the digest is not yet available. */ public Builder digestDate(Optional digestDate) { Utils.checkNotNull(digestDate, "digestDate"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DigestSection.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DigestSection.java index b6d1de4e..24a60b8a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DigestSection.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DigestSection.java @@ -51,14 +51,16 @@ public class DigestSection { private Optional channelType; /** - * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. + * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in + * the frontend. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("instanceId") private Optional instanceId; /** - * Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section. + * Optional URL for the digest section. Should be populated only if the section is a CHANNEL type + * section. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("url") @@ -149,7 +151,8 @@ public Optional channelType() { } /** - * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. + * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in + * the frontend. */ @JsonIgnore public Optional instanceId() { @@ -157,7 +160,8 @@ public Optional instanceId() { } /** - * Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section. + * Optional URL for the digest section. Should be populated only if the section is a CHANNEL type + * section. */ @JsonIgnore public Optional url() { @@ -255,7 +259,8 @@ public DigestSection withChannelType(Optional channelType) { } /** - * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. + * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in + * the frontend. */ public DigestSection withInstanceId(String instanceId) { Utils.checkNotNull(instanceId, "instanceId"); @@ -265,7 +270,8 @@ public DigestSection withInstanceId(String instanceId) { /** - * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. + * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in + * the frontend. */ public DigestSection withInstanceId(Optional instanceId) { Utils.checkNotNull(instanceId, "instanceId"); @@ -274,7 +280,8 @@ public DigestSection withInstanceId(Optional instanceId) { } /** - * Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section. + * Optional URL for the digest section. Should be populated only if the section is a CHANNEL type + * section. */ public DigestSection withUrl(String url) { Utils.checkNotNull(url, "url"); @@ -284,7 +291,8 @@ public DigestSection withUrl(String url) { /** - * Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section. + * Optional URL for the digest section. Should be populated only if the section is a CHANNEL type + * section. */ public DigestSection withUrl(Optional url) { Utils.checkNotNull(url, "url"); @@ -446,7 +454,8 @@ public Builder channelType(Optional channelType) { /** - * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. + * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in + * the frontend. */ public Builder instanceId(String instanceId) { Utils.checkNotNull(instanceId, "instanceId"); @@ -455,7 +464,8 @@ public Builder instanceId(String instanceId) { } /** - * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. + * Instance identifier for the channel or workspace. Used for constructing channel URLs to display in + * the frontend. */ public Builder instanceId(Optional instanceId) { Utils.checkNotNull(instanceId, "instanceId"); @@ -465,7 +475,8 @@ public Builder instanceId(Optional instanceId) { /** - * Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section. + * Optional URL for the digest section. Should be populated only if the section is a CHANNEL type + * section. */ public Builder url(String url) { Utils.checkNotNull(url, "url"); @@ -474,7 +485,8 @@ public Builder url(String url) { } /** - * Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section. + * Optional URL for the digest section. Should be populated only if the section is a CHANNEL type + * section. */ public Builder url(Optional url) { Utils.checkNotNull(url, "url"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Direction.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Direction.java index 071617e0..ae5c8112 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Direction.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Direction.java @@ -11,7 +11,8 @@ /** * Direction * - *

The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. + *

The direction of the results asked with respect to the reference timestamp. Missing field defaults + * to OLDER. Only applicable when using a message_id. */ public enum Direction { OLDER("OLDER"), diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DlpConfig.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DlpConfig.java index 8c24f5d1..c128a8ab 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DlpConfig.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DlpConfig.java @@ -112,7 +112,8 @@ public class DlpConfig { private Optional autoHideDocs; /** - * Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term in the allow-list, it will not be counted as a violation. + * Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a + * term in the allow-list, it will not be counted as a violation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowlistOptions") @@ -274,7 +275,8 @@ public Optional autoHideDocs() { } /** - * Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term in the allow-list, it will not be counted as a violation. + * Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a + * term in the allow-list, it will not be counted as a violation. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -520,7 +522,8 @@ public DlpConfig withAutoHideDocs(Optional autoHideDocs) { } /** - * Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term in the allow-list, it will not be counted as a violation. + * Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a + * term in the allow-list, it will not be counted as a violation. */ public DlpConfig withAllowlistOptions(AllowlistOptions allowlistOptions) { Utils.checkNotNull(allowlistOptions, "allowlistOptions"); @@ -530,7 +533,8 @@ public DlpConfig withAllowlistOptions(AllowlistOptions allowlistOptions) { /** - * Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term in the allow-list, it will not be counted as a violation. + * Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a + * term in the allow-list, it will not be counted as a violation. */ public DlpConfig withAllowlistOptions(Optional allowlistOptions) { Utils.checkNotNull(allowlistOptions, "allowlistOptions"); @@ -860,7 +864,8 @@ public Builder autoHideDocs(Optional autoHideDocs) { /** - * Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term in the allow-list, it will not be counted as a violation. + * Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a + * term in the allow-list, it will not be counted as a violation. */ public Builder allowlistOptions(AllowlistOptions allowlistOptions) { Utils.checkNotNull(allowlistOptions, "allowlistOptions"); @@ -869,7 +874,8 @@ public Builder allowlistOptions(AllowlistOptions allowlistOptions) { } /** - * Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term in the allow-list, it will not be counted as a violation. + * Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a + * term in the allow-list, it will not be counted as a violation. */ public Builder allowlistOptions(Optional allowlistOptions) { Utils.checkNotNull(allowlistOptions, "allowlistOptions"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Document.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Document.java index 3af1cebf..94732f8a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Document.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Document.java @@ -39,7 +39,8 @@ public class Document { private Optional connectorType; /** - * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as + * Bug or Feature Request). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("docType") @@ -80,7 +81,8 @@ public class Document { private Optional metadata; /** - * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive doc or Confluence page. + * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive + * doc or Confluence page. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sections") @@ -156,7 +158,8 @@ public Optional connectorType() { } /** - * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as + * Bug or Feature Request). */ @JsonIgnore public Optional docType() { @@ -204,7 +207,8 @@ public Optional metadata() { } /** - * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive doc or Confluence page. + * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive + * doc or Confluence page. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -275,7 +279,8 @@ public Document withConnectorType(Optional connectorTyp } /** - * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as + * Bug or Feature Request). */ public Document withDocType(String docType) { Utils.checkNotNull(docType, "docType"); @@ -285,7 +290,8 @@ public Document withDocType(String docType) { /** - * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as + * Bug or Feature Request). */ public Document withDocType(Optional docType) { Utils.checkNotNull(docType, "docType"); @@ -384,7 +390,8 @@ public Document withMetadata(Optional metadata) { } /** - * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive doc or Confluence page. + * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive + * doc or Confluence page. */ public Document withSections(List sections) { Utils.checkNotNull(sections, "sections"); @@ -394,7 +401,8 @@ public Document withSections(List sections) { /** - * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive doc or Confluence page. + * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive + * doc or Confluence page. */ public Document withSections(Optional> sections) { Utils.checkNotNull(sections, "sections"); @@ -538,7 +546,8 @@ public Builder connectorType(Optional connectorType) { /** - * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as + * Bug or Feature Request). */ public Builder docType(String docType) { Utils.checkNotNull(docType, "docType"); @@ -547,7 +556,8 @@ public Builder docType(String docType) { } /** - * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as + * Bug or Feature Request). */ public Builder docType(Optional docType) { Utils.checkNotNull(docType, "docType"); @@ -647,7 +657,8 @@ public Builder metadata(Optional metadata) { /** - * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive doc or Confluence page. + * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive + * doc or Confluence page. */ public Builder sections(List sections) { Utils.checkNotNull(sections, "sections"); @@ -656,7 +667,8 @@ public Builder sections(List sections) { } /** - * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive doc or Confluence page. + * A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive + * doc or Confluence page. */ public Builder sections(Optional> sections) { Utils.checkNotNull(sections, "sections"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentDefinition.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentDefinition.java index 54eb0f25..38d02478 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentDefinition.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentDefinition.java @@ -23,14 +23,17 @@ */ public class DocumentDefinition { /** - * Document title, in plain text, if present. If not present, the title would be attempted to be extracted from the content. + * Document title, in plain text, if present. If not present, the title would be attempted to be + * extracted from the content. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("title") private Optional title; /** - * Source filename, in plain text, for the document. May be used as a fallback title for the document, if the title is not provided and cannot be extracted from the content. Populate this if there is no explicit title for the document and the content is sourced from a file. + * Source filename, in plain text, for the document. May be used as a fallback title for the document, + * if the title is not provided and cannot be extracted from the content. Populate this if there is no + * explicit title for the document and the content is sourced from a file. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("filename") @@ -62,21 +65,25 @@ public class DocumentDefinition { private String datasource; /** - * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ + * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces + * or _ */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("objectType") private Optional objectType; /** - * The permalink for viewing the document. **Note: viewURL is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false).**' + * The permalink for viewing the document. **Note: viewURL is a required field for non-entity + * datasources, but not required if the datasource is used to push custom entities (ie. datasources + * where isEntityDatasource is false).**' */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewURL") private Optional viewURL; /** - * The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. + * The datasource specific id for the document. This field is case insensitive and should not be more + * than 200 characters in length. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") @@ -97,14 +104,16 @@ public class DocumentDefinition { private Optional body; /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("author") private Optional author; /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("owner") @@ -132,7 +141,8 @@ public class DocumentDefinition { private Optional updatedAt; /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("updatedBy") @@ -172,7 +182,8 @@ public class DocumentDefinition { private Optional> comments; /** - * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). + * Additional metadata properties of the document. These can surface as [facets and + * operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("customProperties") @@ -264,7 +275,8 @@ public DocumentDefinition( } /** - * Document title, in plain text, if present. If not present, the title would be attempted to be extracted from the content. + * Document title, in plain text, if present. If not present, the title would be attempted to be + * extracted from the content. */ @JsonIgnore public Optional title() { @@ -272,7 +284,9 @@ public Optional title() { } /** - * Source filename, in plain text, for the document. May be used as a fallback title for the document, if the title is not provided and cannot be extracted from the content. Populate this if there is no explicit title for the document and the content is sourced from a file. + * Source filename, in plain text, for the document. May be used as a fallback title for the document, + * if the title is not provided and cannot be extracted from the content. Populate this if there is no + * explicit title for the document and the content is sourced from a file. */ @JsonIgnore public Optional filename() { @@ -309,7 +323,8 @@ public String datasource() { } /** - * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ + * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces + * or _ */ @JsonIgnore public Optional objectType() { @@ -317,7 +332,9 @@ public Optional objectType() { } /** - * The permalink for viewing the document. **Note: viewURL is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false).**' + * The permalink for viewing the document. **Note: viewURL is a required field for non-entity + * datasources, but not required if the datasource is used to push custom entities (ie. datasources + * where isEntityDatasource is false).**' */ @JsonIgnore public Optional viewURL() { @@ -325,7 +342,8 @@ public Optional viewURL() { } /** - * The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. + * The datasource specific id for the document. This field is case insensitive and should not be more + * than 200 characters in length. */ @JsonIgnore public Optional id() { @@ -351,7 +369,8 @@ public Optional body() { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -360,7 +379,8 @@ public Optional author() { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -394,7 +414,8 @@ public Optional updatedAt() { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -444,7 +465,8 @@ public Optional> comments() { } /** - * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). + * Additional metadata properties of the document. These can surface as [facets and + * operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). */ @SuppressWarnings("unchecked") @JsonIgnore @@ -458,7 +480,8 @@ public static Builder builder() { /** - * Document title, in plain text, if present. If not present, the title would be attempted to be extracted from the content. + * Document title, in plain text, if present. If not present, the title would be attempted to be + * extracted from the content. */ public DocumentDefinition withTitle(String title) { Utils.checkNotNull(title, "title"); @@ -468,7 +491,8 @@ public DocumentDefinition withTitle(String title) { /** - * Document title, in plain text, if present. If not present, the title would be attempted to be extracted from the content. + * Document title, in plain text, if present. If not present, the title would be attempted to be + * extracted from the content. */ public DocumentDefinition withTitle(Optional title) { Utils.checkNotNull(title, "title"); @@ -477,7 +501,9 @@ public DocumentDefinition withTitle(Optional title) { } /** - * Source filename, in plain text, for the document. May be used as a fallback title for the document, if the title is not provided and cannot be extracted from the content. Populate this if there is no explicit title for the document and the content is sourced from a file. + * Source filename, in plain text, for the document. May be used as a fallback title for the document, + * if the title is not provided and cannot be extracted from the content. Populate this if there is no + * explicit title for the document and the content is sourced from a file. */ public DocumentDefinition withFilename(String filename) { Utils.checkNotNull(filename, "filename"); @@ -487,7 +513,9 @@ public DocumentDefinition withFilename(String filename) { /** - * Source filename, in plain text, for the document. May be used as a fallback title for the document, if the title is not provided and cannot be extracted from the content. Populate this if there is no explicit title for the document and the content is sourced from a file. + * Source filename, in plain text, for the document. May be used as a fallback title for the document, + * if the title is not provided and cannot be extracted from the content. Populate this if there is no + * explicit title for the document and the content is sourced from a file. */ public DocumentDefinition withFilename(Optional filename) { Utils.checkNotNull(filename, "filename"); @@ -559,7 +587,8 @@ public DocumentDefinition withDatasource(String datasource) { } /** - * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ + * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces + * or _ */ public DocumentDefinition withObjectType(String objectType) { Utils.checkNotNull(objectType, "objectType"); @@ -569,7 +598,8 @@ public DocumentDefinition withObjectType(String objectType) { /** - * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ + * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces + * or _ */ public DocumentDefinition withObjectType(Optional objectType) { Utils.checkNotNull(objectType, "objectType"); @@ -578,7 +608,9 @@ public DocumentDefinition withObjectType(Optional objectType) { } /** - * The permalink for viewing the document. **Note: viewURL is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false).**' + * The permalink for viewing the document. **Note: viewURL is a required field for non-entity + * datasources, but not required if the datasource is used to push custom entities (ie. datasources + * where isEntityDatasource is false).**' */ public DocumentDefinition withViewURL(String viewURL) { Utils.checkNotNull(viewURL, "viewURL"); @@ -588,7 +620,9 @@ public DocumentDefinition withViewURL(String viewURL) { /** - * The permalink for viewing the document. **Note: viewURL is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false).**' + * The permalink for viewing the document. **Note: viewURL is a required field for non-entity + * datasources, but not required if the datasource is used to push custom entities (ie. datasources + * where isEntityDatasource is false).**' */ public DocumentDefinition withViewURL(Optional viewURL) { Utils.checkNotNull(viewURL, "viewURL"); @@ -597,7 +631,8 @@ public DocumentDefinition withViewURL(Optional viewURL) { } /** - * The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. + * The datasource specific id for the document. This field is case insensitive and should not be more + * than 200 characters in length. */ public DocumentDefinition withId(String id) { Utils.checkNotNull(id, "id"); @@ -607,7 +642,8 @@ public DocumentDefinition withId(String id) { /** - * The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. + * The datasource specific id for the document. This field is case insensitive and should not be more + * than 200 characters in length. */ public DocumentDefinition withId(Optional id) { Utils.checkNotNull(id, "id"); @@ -654,7 +690,8 @@ public DocumentDefinition withBody(Optional body) { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public DocumentDefinition withAuthor(UserReferenceDefinition author) { Utils.checkNotNull(author, "author"); @@ -664,7 +701,8 @@ public DocumentDefinition withAuthor(UserReferenceDefinition author) { /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public DocumentDefinition withAuthor(Optional author) { Utils.checkNotNull(author, "author"); @@ -673,7 +711,8 @@ public DocumentDefinition withAuthor(Optional } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public DocumentDefinition withOwner(UserReferenceDefinition owner) { Utils.checkNotNull(owner, "owner"); @@ -683,7 +722,8 @@ public DocumentDefinition withOwner(UserReferenceDefinition owner) { /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public DocumentDefinition withOwner(Optional owner) { Utils.checkNotNull(owner, "owner"); @@ -749,7 +789,8 @@ public DocumentDefinition withUpdatedAt(Optional updatedAt) { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public DocumentDefinition withUpdatedBy(UserReferenceDefinition updatedBy) { Utils.checkNotNull(updatedBy, "updatedBy"); @@ -759,7 +800,8 @@ public DocumentDefinition withUpdatedBy(UserReferenceDefinition updatedBy) { /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public DocumentDefinition withUpdatedBy(Optional updatedBy) { Utils.checkNotNull(updatedBy, "updatedBy"); @@ -857,7 +899,8 @@ public DocumentDefinition withComments(Optional customProperties) { Utils.checkNotNull(customProperties, "customProperties"); @@ -867,7 +910,8 @@ public DocumentDefinition withCustomProperties(List customProper /** - * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). + * Additional metadata properties of the document. These can surface as [facets and + * operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). */ public DocumentDefinition withCustomProperties(Optional> customProperties) { Utils.checkNotNull(customProperties, "customProperties"); @@ -1006,7 +1050,8 @@ private Builder() { /** - * Document title, in plain text, if present. If not present, the title would be attempted to be extracted from the content. + * Document title, in plain text, if present. If not present, the title would be attempted to be + * extracted from the content. */ public Builder title(String title) { Utils.checkNotNull(title, "title"); @@ -1015,7 +1060,8 @@ public Builder title(String title) { } /** - * Document title, in plain text, if present. If not present, the title would be attempted to be extracted from the content. + * Document title, in plain text, if present. If not present, the title would be attempted to be + * extracted from the content. */ public Builder title(Optional title) { Utils.checkNotNull(title, "title"); @@ -1025,7 +1071,9 @@ public Builder title(Optional title) { /** - * Source filename, in plain text, for the document. May be used as a fallback title for the document, if the title is not provided and cannot be extracted from the content. Populate this if there is no explicit title for the document and the content is sourced from a file. + * Source filename, in plain text, for the document. May be used as a fallback title for the document, + * if the title is not provided and cannot be extracted from the content. Populate this if there is no + * explicit title for the document and the content is sourced from a file. */ public Builder filename(String filename) { Utils.checkNotNull(filename, "filename"); @@ -1034,7 +1082,9 @@ public Builder filename(String filename) { } /** - * Source filename, in plain text, for the document. May be used as a fallback title for the document, if the title is not provided and cannot be extracted from the content. Populate this if there is no explicit title for the document and the content is sourced from a file. + * Source filename, in plain text, for the document. May be used as a fallback title for the document, + * if the title is not provided and cannot be extracted from the content. Populate this if there is no + * explicit title for the document and the content is sourced from a file. */ public Builder filename(Optional filename) { Utils.checkNotNull(filename, "filename"); @@ -1108,7 +1158,8 @@ public Builder datasource(String datasource) { /** - * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ + * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces + * or _ */ public Builder objectType(String objectType) { Utils.checkNotNull(objectType, "objectType"); @@ -1117,7 +1168,8 @@ public Builder objectType(String objectType) { } /** - * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ + * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces + * or _ */ public Builder objectType(Optional objectType) { Utils.checkNotNull(objectType, "objectType"); @@ -1127,7 +1179,9 @@ public Builder objectType(Optional objectType) { /** - * The permalink for viewing the document. **Note: viewURL is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false).**' + * The permalink for viewing the document. **Note: viewURL is a required field for non-entity + * datasources, but not required if the datasource is used to push custom entities (ie. datasources + * where isEntityDatasource is false).**' */ public Builder viewURL(String viewURL) { Utils.checkNotNull(viewURL, "viewURL"); @@ -1136,7 +1190,9 @@ public Builder viewURL(String viewURL) { } /** - * The permalink for viewing the document. **Note: viewURL is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false).**' + * The permalink for viewing the document. **Note: viewURL is a required field for non-entity + * datasources, but not required if the datasource is used to push custom entities (ie. datasources + * where isEntityDatasource is false).**' */ public Builder viewURL(Optional viewURL) { Utils.checkNotNull(viewURL, "viewURL"); @@ -1146,7 +1202,8 @@ public Builder viewURL(Optional viewURL) { /** - * The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. + * The datasource specific id for the document. This field is case insensitive and should not be more + * than 200 characters in length. */ public Builder id(String id) { Utils.checkNotNull(id, "id"); @@ -1155,7 +1212,8 @@ public Builder id(String id) { } /** - * The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. + * The datasource specific id for the document. This field is case insensitive and should not be more + * than 200 characters in length. */ public Builder id(Optional id) { Utils.checkNotNull(id, "id"); @@ -1203,7 +1261,8 @@ public Builder body(Optional body) { /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public Builder author(UserReferenceDefinition author) { Utils.checkNotNull(author, "author"); @@ -1212,7 +1271,8 @@ public Builder author(UserReferenceDefinition author) { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public Builder author(Optional author) { Utils.checkNotNull(author, "author"); @@ -1222,7 +1282,8 @@ public Builder author(Optional author) { /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public Builder owner(UserReferenceDefinition owner) { Utils.checkNotNull(owner, "owner"); @@ -1231,7 +1292,8 @@ public Builder owner(UserReferenceDefinition owner) { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public Builder owner(Optional owner) { Utils.checkNotNull(owner, "owner"); @@ -1298,7 +1360,8 @@ public Builder updatedAt(Optional updatedAt) { /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public Builder updatedBy(UserReferenceDefinition updatedBy) { Utils.checkNotNull(updatedBy, "updatedBy"); @@ -1307,7 +1370,8 @@ public Builder updatedBy(UserReferenceDefinition updatedBy) { } /** - * Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + * Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public Builder updatedBy(Optional updatedBy) { Utils.checkNotNull(updatedBy, "updatedBy"); @@ -1406,7 +1470,8 @@ public Builder comments(Optional> comments) { /** - * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). + * Additional metadata properties of the document. These can surface as [facets and + * operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). */ public Builder customProperties(List customProperties) { Utils.checkNotNull(customProperties, "customProperties"); @@ -1415,7 +1480,8 @@ public Builder customProperties(List customProperties) { } /** - * Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). + * Additional metadata properties of the document. These can surface as [facets and + * operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). */ public Builder customProperties(Optional> customProperties) { Utils.checkNotNull(customProperties, "customProperties"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentInteractions.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentInteractions.java index 794b8f2a..c45a9f01 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentInteractions.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentInteractions.java @@ -34,7 +34,8 @@ public class DocumentInteractions { private Optional numReactions; /** - * To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the document. + * To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the + * document. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -104,7 +105,8 @@ public Optional numReactions() { } /** - * To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the document. + * To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the + * document. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -180,7 +182,8 @@ public DocumentInteractions withNumReactions(Optional numReactions) { } /** - * To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the document. + * To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the + * document. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -193,7 +196,8 @@ public DocumentInteractions withReactions(List reactions) { /** - * To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the document. + * To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the + * document. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -345,7 +349,8 @@ public Builder numReactions(Optional numReactions) { /** - * To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the document. + * To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the + * document. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -357,7 +362,8 @@ public Builder reactions(List reactions) { } /** - * To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the document. + * To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the + * document. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentMetadata.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentMetadata.java index 7345f714..14ce2fca 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentMetadata.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentMetadata.java @@ -32,14 +32,19 @@ public class DocumentMetadata { private Optional datasourceInstance; /** - * The type of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The type of the result. Interpretation is specific to each datasource. (e.g. + * + *

for Jira issues, this is the issue type such as Bug or Feature Request). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("objectType") private Optional objectType; /** - * The name of the container (higher level parent, not direct parent) of the result. Interpretation is specific to each datasource (e.g. Channels for Slack, Project for Jira). cf. parentId + * The name of the container (higher level parent, not direct parent) of the result. Interpretation is + * specific to each datasource (e.g. Channels for Slack, Project for Jira). + * + *

cf. parentId */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("container") @@ -53,14 +58,19 @@ public class DocumentMetadata { private Optional containerId; /** - * The Glean Document ID of the super container. Super container represents a broader abstraction that contains many containers. For example, whereas container might refer to a folder, super container would refer to a drive. + * The Glean Document ID of the super container. Super container represents a broader abstraction that + * contains many containers. For example, whereas container might refer to a folder, super container + * would refer to a drive. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("superContainerId") private Optional superContainerId; /** - * The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. parent issue for Jira). cf. container + * The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. + * parent issue for Jira). + * + *

cf. container */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("parentId") @@ -79,7 +89,8 @@ public class DocumentMetadata { private Optional documentId; /** - * A unique identifier used to represent the document in any logging or feedback requests in place of documentId. + * A unique identifier used to represent the document in any logging or feedback requests in place of + * documentId. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("loggingId") @@ -127,28 +138,35 @@ public class DocumentMetadata { private Optional visibility; /** - * A list of components this result is associated with. Interpretation is specific to each datasource. (e.g. for Jira issues, these are [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) + * A list of components this result is associated with. Interpretation is specific to each datasource. + * (e.g. + * + *

for Jira issues, these are + * [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("components") private Optional> components; /** - * The status or disposition of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). + * The status or disposition of the result. Interpretation is specific to each datasource. (e.g. + * + *

for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") private Optional status; /** - * The status category of the result. Meant to be more general than status. Interpretation is specific to each datasource. + * The status category of the result. Meant to be more general than status. Interpretation is specific + * to each datasource. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("statusCategory") private Optional statusCategory; /** - * A list of stars associated with this result. "Pin" is an older name. + * A list of stars associated with this result. "Pin" is an older name. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("pins") @@ -261,7 +279,9 @@ public class DocumentMetadata { private Optional indexStatus; /** - * A list of documents that are ancestors of this document in the hierarchy of the document's datasource, for example parent folders or containers. Ancestors can be of different types and some may not be indexed. Higher level ancestors appear earlier in the list. + * A list of documents that are ancestors of this document in the hierarchy of the document's + * datasource, for example parent folders or containers. Ancestors can be of different types and some + * may not be indexed. Higher level ancestors appear earlier in the list. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ancestors") @@ -422,7 +442,9 @@ public Optional datasourceInstance() { } /** - * The type of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The type of the result. Interpretation is specific to each datasource. (e.g. + * + *

for Jira issues, this is the issue type such as Bug or Feature Request). */ @JsonIgnore public Optional objectType() { @@ -430,7 +452,10 @@ public Optional objectType() { } /** - * The name of the container (higher level parent, not direct parent) of the result. Interpretation is specific to each datasource (e.g. Channels for Slack, Project for Jira). cf. parentId + * The name of the container (higher level parent, not direct parent) of the result. Interpretation is + * specific to each datasource (e.g. Channels for Slack, Project for Jira). + * + *

cf. parentId */ @JsonIgnore public Optional container() { @@ -446,7 +471,9 @@ public Optional containerId() { } /** - * The Glean Document ID of the super container. Super container represents a broader abstraction that contains many containers. For example, whereas container might refer to a folder, super container would refer to a drive. + * The Glean Document ID of the super container. Super container represents a broader abstraction that + * contains many containers. For example, whereas container might refer to a folder, super container + * would refer to a drive. */ @JsonIgnore public Optional superContainerId() { @@ -454,7 +481,10 @@ public Optional superContainerId() { } /** - * The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. parent issue for Jira). cf. container + * The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. + * parent issue for Jira). + * + *

cf. container */ @JsonIgnore public Optional parentId() { @@ -475,7 +505,8 @@ public Optional documentId() { } /** - * A unique identifier used to represent the document in any logging or feedback requests in place of documentId. + * A unique identifier used to represent the document in any logging or feedback requests in place of + * documentId. */ @JsonIgnore public Optional loggingId() { @@ -531,7 +562,11 @@ public Optional visibility() { } /** - * A list of components this result is associated with. Interpretation is specific to each datasource. (e.g. for Jira issues, these are [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) + * A list of components this result is associated with. Interpretation is specific to each datasource. + * (e.g. + * + *

for Jira issues, these are + * [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) */ @SuppressWarnings("unchecked") @JsonIgnore @@ -540,7 +575,9 @@ public Optional> components() { } /** - * The status or disposition of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). + * The status or disposition of the result. Interpretation is specific to each datasource. (e.g. + * + *

for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). */ @JsonIgnore public Optional status() { @@ -548,7 +585,8 @@ public Optional status() { } /** - * The status category of the result. Meant to be more general than status. Interpretation is specific to each datasource. + * The status category of the result. Meant to be more general than status. Interpretation is specific + * to each datasource. */ @JsonIgnore public Optional statusCategory() { @@ -556,7 +594,7 @@ public Optional statusCategory() { } /** - * A list of stars associated with this result. "Pin" is an older name. + * A list of stars associated with this result. "Pin" is an older name. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -693,7 +731,9 @@ public Optional indexStatus() { } /** - * A list of documents that are ancestors of this document in the hierarchy of the document's datasource, for example parent folders or containers. Ancestors can be of different types and some may not be indexed. Higher level ancestors appear earlier in the list. + * A list of documents that are ancestors of this document in the hierarchy of the document's + * datasource, for example parent folders or containers. Ancestors can be of different types and some + * may not be indexed. Higher level ancestors appear earlier in the list. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -739,7 +779,9 @@ public DocumentMetadata withDatasourceInstance(Optional datasourceInstan } /** - * The type of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The type of the result. Interpretation is specific to each datasource. (e.g. + * + *

for Jira issues, this is the issue type such as Bug or Feature Request). */ public DocumentMetadata withObjectType(String objectType) { Utils.checkNotNull(objectType, "objectType"); @@ -749,7 +791,9 @@ public DocumentMetadata withObjectType(String objectType) { /** - * The type of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The type of the result. Interpretation is specific to each datasource. (e.g. + * + *

for Jira issues, this is the issue type such as Bug or Feature Request). */ public DocumentMetadata withObjectType(Optional objectType) { Utils.checkNotNull(objectType, "objectType"); @@ -758,7 +802,10 @@ public DocumentMetadata withObjectType(Optional objectType) { } /** - * The name of the container (higher level parent, not direct parent) of the result. Interpretation is specific to each datasource (e.g. Channels for Slack, Project for Jira). cf. parentId + * The name of the container (higher level parent, not direct parent) of the result. Interpretation is + * specific to each datasource (e.g. Channels for Slack, Project for Jira). + * + *

cf. parentId */ public DocumentMetadata withContainer(String container) { Utils.checkNotNull(container, "container"); @@ -768,7 +815,10 @@ public DocumentMetadata withContainer(String container) { /** - * The name of the container (higher level parent, not direct parent) of the result. Interpretation is specific to each datasource (e.g. Channels for Slack, Project for Jira). cf. parentId + * The name of the container (higher level parent, not direct parent) of the result. Interpretation is + * specific to each datasource (e.g. Channels for Slack, Project for Jira). + * + *

cf. parentId */ public DocumentMetadata withContainer(Optional container) { Utils.checkNotNull(container, "container"); @@ -796,7 +846,9 @@ public DocumentMetadata withContainerId(Optional containerId) { } /** - * The Glean Document ID of the super container. Super container represents a broader abstraction that contains many containers. For example, whereas container might refer to a folder, super container would refer to a drive. + * The Glean Document ID of the super container. Super container represents a broader abstraction that + * contains many containers. For example, whereas container might refer to a folder, super container + * would refer to a drive. */ public DocumentMetadata withSuperContainerId(String superContainerId) { Utils.checkNotNull(superContainerId, "superContainerId"); @@ -806,7 +858,9 @@ public DocumentMetadata withSuperContainerId(String superContainerId) { /** - * The Glean Document ID of the super container. Super container represents a broader abstraction that contains many containers. For example, whereas container might refer to a folder, super container would refer to a drive. + * The Glean Document ID of the super container. Super container represents a broader abstraction that + * contains many containers. For example, whereas container might refer to a folder, super container + * would refer to a drive. */ public DocumentMetadata withSuperContainerId(Optional superContainerId) { Utils.checkNotNull(superContainerId, "superContainerId"); @@ -815,7 +869,10 @@ public DocumentMetadata withSuperContainerId(Optional superContainerId) } /** - * The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. parent issue for Jira). cf. container + * The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. + * parent issue for Jira). + * + *

cf. container */ public DocumentMetadata withParentId(String parentId) { Utils.checkNotNull(parentId, "parentId"); @@ -825,7 +882,10 @@ public DocumentMetadata withParentId(String parentId) { /** - * The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. parent issue for Jira). cf. container + * The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. + * parent issue for Jira). + * + *

cf. container */ public DocumentMetadata withParentId(Optional parentId) { Utils.checkNotNull(parentId, "parentId"); @@ -866,7 +926,8 @@ public DocumentMetadata withDocumentId(Optional documentId) { } /** - * A unique identifier used to represent the document in any logging or feedback requests in place of documentId. + * A unique identifier used to represent the document in any logging or feedback requests in place of + * documentId. */ public DocumentMetadata withLoggingId(String loggingId) { Utils.checkNotNull(loggingId, "loggingId"); @@ -876,7 +937,8 @@ public DocumentMetadata withLoggingId(String loggingId) { /** - * A unique identifier used to represent the document in any logging or feedback requests in place of documentId. + * A unique identifier used to represent the document in any logging or feedback requests in place of + * documentId. */ public DocumentMetadata withLoggingId(Optional loggingId) { Utils.checkNotNull(loggingId, "loggingId"); @@ -994,7 +1056,11 @@ public DocumentMetadata withVisibility(Optional vi } /** - * A list of components this result is associated with. Interpretation is specific to each datasource. (e.g. for Jira issues, these are [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) + * A list of components this result is associated with. Interpretation is specific to each datasource. + * (e.g. + * + *

for Jira issues, these are + * [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) */ public DocumentMetadata withComponents(List components) { Utils.checkNotNull(components, "components"); @@ -1004,7 +1070,11 @@ public DocumentMetadata withComponents(List components) { /** - * A list of components this result is associated with. Interpretation is specific to each datasource. (e.g. for Jira issues, these are [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) + * A list of components this result is associated with. Interpretation is specific to each datasource. + * (e.g. + * + *

for Jira issues, these are + * [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) */ public DocumentMetadata withComponents(Optional> components) { Utils.checkNotNull(components, "components"); @@ -1013,7 +1083,9 @@ public DocumentMetadata withComponents(Optional> componen } /** - * The status or disposition of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). + * The status or disposition of the result. Interpretation is specific to each datasource. (e.g. + * + *

for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). */ public DocumentMetadata withStatus(String status) { Utils.checkNotNull(status, "status"); @@ -1023,7 +1095,9 @@ public DocumentMetadata withStatus(String status) { /** - * The status or disposition of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). + * The status or disposition of the result. Interpretation is specific to each datasource. (e.g. + * + *

for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). */ public DocumentMetadata withStatus(Optional status) { Utils.checkNotNull(status, "status"); @@ -1032,7 +1106,8 @@ public DocumentMetadata withStatus(Optional status) { } /** - * The status category of the result. Meant to be more general than status. Interpretation is specific to each datasource. + * The status category of the result. Meant to be more general than status. Interpretation is specific + * to each datasource. */ public DocumentMetadata withStatusCategory(String statusCategory) { Utils.checkNotNull(statusCategory, "statusCategory"); @@ -1042,7 +1117,8 @@ public DocumentMetadata withStatusCategory(String statusCategory) { /** - * The status category of the result. Meant to be more general than status. Interpretation is specific to each datasource. + * The status category of the result. Meant to be more general than status. Interpretation is specific + * to each datasource. */ public DocumentMetadata withStatusCategory(Optional statusCategory) { Utils.checkNotNull(statusCategory, "statusCategory"); @@ -1051,7 +1127,7 @@ public DocumentMetadata withStatusCategory(Optional statusCategory) { } /** - * A list of stars associated with this result. "Pin" is an older name. + * A list of stars associated with this result. "Pin" is an older name. */ public DocumentMetadata withPins(List pins) { Utils.checkNotNull(pins, "pins"); @@ -1061,7 +1137,7 @@ public DocumentMetadata withPins(List pins) { /** - * A list of stars associated with this result. "Pin" is an older name. + * A list of stars associated with this result. "Pin" is an older name. */ public DocumentMetadata withPins(Optional> pins) { Utils.checkNotNull(pins, "pins"); @@ -1352,7 +1428,9 @@ public DocumentMetadata withIndexStatus(Optional indexSta } /** - * A list of documents that are ancestors of this document in the hierarchy of the document's datasource, for example parent folders or containers. Ancestors can be of different types and some may not be indexed. Higher level ancestors appear earlier in the list. + * A list of documents that are ancestors of this document in the hierarchy of the document's + * datasource, for example parent folders or containers. Ancestors can be of different types and some + * may not be indexed. Higher level ancestors appear earlier in the list. */ public DocumentMetadata withAncestors(List ancestors) { Utils.checkNotNull(ancestors, "ancestors"); @@ -1362,7 +1440,9 @@ public DocumentMetadata withAncestors(List ancestors) { /** - * A list of documents that are ancestors of this document in the hierarchy of the document's datasource, for example parent folders or containers. Ancestors can be of different types and some may not be indexed. Higher level ancestors appear earlier in the list. + * A list of documents that are ancestors of this document in the hierarchy of the document's + * datasource, for example parent folders or containers. Ancestors can be of different types and some + * may not be indexed. Higher level ancestors appear earlier in the list. */ public DocumentMetadata withAncestors(Optional> ancestors) { Utils.checkNotNull(ancestors, "ancestors"); @@ -1607,7 +1687,9 @@ public Builder datasourceInstance(Optional datasourceInstance) { /** - * The type of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The type of the result. Interpretation is specific to each datasource. (e.g. + * + *

for Jira issues, this is the issue type such as Bug or Feature Request). */ public Builder objectType(String objectType) { Utils.checkNotNull(objectType, "objectType"); @@ -1616,7 +1698,9 @@ public Builder objectType(String objectType) { } /** - * The type of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). + * The type of the result. Interpretation is specific to each datasource. (e.g. + * + *

for Jira issues, this is the issue type such as Bug or Feature Request). */ public Builder objectType(Optional objectType) { Utils.checkNotNull(objectType, "objectType"); @@ -1626,7 +1710,10 @@ public Builder objectType(Optional objectType) { /** - * The name of the container (higher level parent, not direct parent) of the result. Interpretation is specific to each datasource (e.g. Channels for Slack, Project for Jira). cf. parentId + * The name of the container (higher level parent, not direct parent) of the result. Interpretation is + * specific to each datasource (e.g. Channels for Slack, Project for Jira). + * + *

cf. parentId */ public Builder container(String container) { Utils.checkNotNull(container, "container"); @@ -1635,7 +1722,10 @@ public Builder container(String container) { } /** - * The name of the container (higher level parent, not direct parent) of the result. Interpretation is specific to each datasource (e.g. Channels for Slack, Project for Jira). cf. parentId + * The name of the container (higher level parent, not direct parent) of the result. Interpretation is + * specific to each datasource (e.g. Channels for Slack, Project for Jira). + * + *

cf. parentId */ public Builder container(Optional container) { Utils.checkNotNull(container, "container"); @@ -1664,7 +1754,9 @@ public Builder containerId(Optional containerId) { /** - * The Glean Document ID of the super container. Super container represents a broader abstraction that contains many containers. For example, whereas container might refer to a folder, super container would refer to a drive. + * The Glean Document ID of the super container. Super container represents a broader abstraction that + * contains many containers. For example, whereas container might refer to a folder, super container + * would refer to a drive. */ public Builder superContainerId(String superContainerId) { Utils.checkNotNull(superContainerId, "superContainerId"); @@ -1673,7 +1765,9 @@ public Builder superContainerId(String superContainerId) { } /** - * The Glean Document ID of the super container. Super container represents a broader abstraction that contains many containers. For example, whereas container might refer to a folder, super container would refer to a drive. + * The Glean Document ID of the super container. Super container represents a broader abstraction that + * contains many containers. For example, whereas container might refer to a folder, super container + * would refer to a drive. */ public Builder superContainerId(Optional superContainerId) { Utils.checkNotNull(superContainerId, "superContainerId"); @@ -1683,7 +1777,10 @@ public Builder superContainerId(Optional superContainerId) { /** - * The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. parent issue for Jira). cf. container + * The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. + * parent issue for Jira). + * + *

cf. container */ public Builder parentId(String parentId) { Utils.checkNotNull(parentId, "parentId"); @@ -1692,7 +1789,10 @@ public Builder parentId(String parentId) { } /** - * The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. parent issue for Jira). cf. container + * The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. + * parent issue for Jira). + * + *

cf. container */ public Builder parentId(Optional parentId) { Utils.checkNotNull(parentId, "parentId"); @@ -1734,7 +1834,8 @@ public Builder documentId(Optional documentId) { /** - * A unique identifier used to represent the document in any logging or feedback requests in place of documentId. + * A unique identifier used to represent the document in any logging or feedback requests in place of + * documentId. */ public Builder loggingId(String loggingId) { Utils.checkNotNull(loggingId, "loggingId"); @@ -1743,7 +1844,8 @@ public Builder loggingId(String loggingId) { } /** - * A unique identifier used to represent the document in any logging or feedback requests in place of documentId. + * A unique identifier used to represent the document in any logging or feedback requests in place of + * documentId. */ public Builder loggingId(Optional loggingId) { Utils.checkNotNull(loggingId, "loggingId"); @@ -1862,7 +1964,11 @@ public Builder visibility(Optional visibility) { /** - * A list of components this result is associated with. Interpretation is specific to each datasource. (e.g. for Jira issues, these are [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) + * A list of components this result is associated with. Interpretation is specific to each datasource. + * (e.g. + * + *

for Jira issues, these are + * [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) */ public Builder components(List components) { Utils.checkNotNull(components, "components"); @@ -1871,7 +1977,11 @@ public Builder components(List components) { } /** - * A list of components this result is associated with. Interpretation is specific to each datasource. (e.g. for Jira issues, these are [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) + * A list of components this result is associated with. Interpretation is specific to each datasource. + * (e.g. + * + *

for Jira issues, these are + * [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) */ public Builder components(Optional> components) { Utils.checkNotNull(components, "components"); @@ -1881,7 +1991,9 @@ public Builder components(Optional> components) { /** - * The status or disposition of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). + * The status or disposition of the result. Interpretation is specific to each datasource. (e.g. + * + *

for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). */ public Builder status(String status) { Utils.checkNotNull(status, "status"); @@ -1890,7 +2002,9 @@ public Builder status(String status) { } /** - * The status or disposition of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). + * The status or disposition of the result. Interpretation is specific to each datasource. (e.g. + * + *

for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). */ public Builder status(Optional status) { Utils.checkNotNull(status, "status"); @@ -1900,7 +2014,8 @@ public Builder status(Optional status) { /** - * The status category of the result. Meant to be more general than status. Interpretation is specific to each datasource. + * The status category of the result. Meant to be more general than status. Interpretation is specific + * to each datasource. */ public Builder statusCategory(String statusCategory) { Utils.checkNotNull(statusCategory, "statusCategory"); @@ -1909,7 +2024,8 @@ public Builder statusCategory(String statusCategory) { } /** - * The status category of the result. Meant to be more general than status. Interpretation is specific to each datasource. + * The status category of the result. Meant to be more general than status. Interpretation is specific + * to each datasource. */ public Builder statusCategory(Optional statusCategory) { Utils.checkNotNull(statusCategory, "statusCategory"); @@ -1919,7 +2035,7 @@ public Builder statusCategory(Optional statusCategory) { /** - * A list of stars associated with this result. "Pin" is an older name. + * A list of stars associated with this result. "Pin" is an older name. */ public Builder pins(List pins) { Utils.checkNotNull(pins, "pins"); @@ -1928,7 +2044,7 @@ public Builder pins(List pins) { } /** - * A list of stars associated with this result. "Pin" is an older name. + * A list of stars associated with this result. "Pin" is an older name. */ public Builder pins(Optional> pins) { Utils.checkNotNull(pins, "pins"); @@ -2220,7 +2336,9 @@ public Builder indexStatus(Optional indexStatus) { /** - * A list of documents that are ancestors of this document in the hierarchy of the document's datasource, for example parent folders or containers. Ancestors can be of different types and some may not be indexed. Higher level ancestors appear earlier in the list. + * A list of documents that are ancestors of this document in the hierarchy of the document's + * datasource, for example parent folders or containers. Ancestors can be of different types and some + * may not be indexed. Higher level ancestors appear earlier in the list. */ public Builder ancestors(List ancestors) { Utils.checkNotNull(ancestors, "ancestors"); @@ -2229,7 +2347,9 @@ public Builder ancestors(List ancestors) { } /** - * A list of documents that are ancestors of this document in the hierarchy of the document's datasource, for example parent folders or containers. Ancestors can be of different types and some may not be indexed. Higher level ancestors appear earlier in the list. + * A list of documents that are ancestors of this document in the hierarchy of the document's + * datasource, for example parent folders or containers. Ancestors can be of different types and some + * may not be indexed. Higher level ancestors appear earlier in the list. */ public Builder ancestors(Optional> ancestors) { Utils.checkNotNull(ancestors, "ancestors"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentPermissionsDefinition.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentPermissionsDefinition.java index 4ba67a8f..52cf70f8 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentPermissionsDefinition.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentPermissionsDefinition.java @@ -37,7 +37,8 @@ public class DocumentPermissionsDefinition { private Optional> allowedGroups; /** - * List of allowed group intersections. This describes a permissions constraint of the form ((GroupA AND GroupB AND GroupC) OR (GroupX AND GroupY) OR ... + * List of allowed group intersections. This describes a permissions constraint of the form ((GroupA + * AND GroupB AND GroupC) OR (GroupX AND GroupY) OR... */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowedGroupIntersections") @@ -100,7 +101,8 @@ public Optional> allowedGroups() { } /** - * List of allowed group intersections. This describes a permissions constraint of the form ((GroupA AND GroupB AND GroupC) OR (GroupX AND GroupY) OR ... + * List of allowed group intersections. This describes a permissions constraint of the form ((GroupA + * AND GroupB AND GroupC) OR (GroupX AND GroupY) OR... */ @SuppressWarnings("unchecked") @JsonIgnore @@ -168,7 +170,8 @@ public DocumentPermissionsDefinition withAllowedGroups(Optional allowedGroupIntersections) { Utils.checkNotNull(allowedGroupIntersections, "allowedGroupIntersections"); @@ -178,7 +181,8 @@ public DocumentPermissionsDefinition withAllowedGroupIntersections(List> allowedGroupIntersections) { Utils.checkNotNull(allowedGroupIntersections, "allowedGroupIntersections"); @@ -315,7 +319,8 @@ public Builder allowedGroups(Optional> allowedGroups) { /** - * List of allowed group intersections. This describes a permissions constraint of the form ((GroupA AND GroupB AND GroupC) OR (GroupX AND GroupY) OR ... + * List of allowed group intersections. This describes a permissions constraint of the form ((GroupA + * AND GroupB AND GroupC) OR (GroupX AND GroupY) OR... */ public Builder allowedGroupIntersections(List allowedGroupIntersections) { Utils.checkNotNull(allowedGroupIntersections, "allowedGroupIntersections"); @@ -324,7 +329,8 @@ public Builder allowedGroupIntersections(List> allowedGroupIntersections) { Utils.checkNotNull(allowedGroupIntersections, "allowedGroupIntersections"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentStatusResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentStatusResponse.java index 312ba62c..47bdbc14 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentStatusResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentStatusResponse.java @@ -48,7 +48,8 @@ public class DocumentStatusResponse { private Optional lastIndexedAt; /** - * Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. + * Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if + * `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("permissionIdentityStatus") @@ -111,7 +112,8 @@ public Optional lastIndexedAt() { } /** - * Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. + * Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if + * `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. */ @JsonIgnore public Optional permissionIdentityStatus() { @@ -200,7 +202,8 @@ public DocumentStatusResponse withLastIndexedAt(Optional lastIndexedAt) } /** - * Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. + * Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if + * `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. */ public DocumentStatusResponse withPermissionIdentityStatus(String permissionIdentityStatus) { Utils.checkNotNull(permissionIdentityStatus, "permissionIdentityStatus"); @@ -210,7 +213,8 @@ public DocumentStatusResponse withPermissionIdentityStatus(String permissionIden /** - * Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. + * Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if + * `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. */ public DocumentStatusResponse withPermissionIdentityStatus(Optional permissionIdentityStatus) { Utils.checkNotNull(permissionIdentityStatus, "permissionIdentityStatus"); @@ -347,7 +351,8 @@ public Builder lastIndexedAt(Optional lastIndexedAt) { /** - * Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. + * Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if + * `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. */ public Builder permissionIdentityStatus(String permissionIdentityStatus) { Utils.checkNotNull(permissionIdentityStatus, "permissionIdentityStatus"); @@ -356,7 +361,8 @@ public Builder permissionIdentityStatus(String permissionIdentityStatus) { } /** - * Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. + * Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if + * `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. */ public Builder permissionIdentityStatus(Optional permissionIdentityStatus) { Utils.checkNotNull(permissionIdentityStatus, "permissionIdentityStatus"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/EditAnswerRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/EditAnswerRequest.java index 43337c08..153753b3 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/EditAnswerRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/EditAnswerRequest.java @@ -26,7 +26,8 @@ public class EditAnswerRequest { private long id; /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("docId") @@ -52,7 +53,8 @@ public class EditAnswerRequest { private Optional bodyText; /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -62,7 +64,8 @@ public class EditAnswerRequest { private Optional boardId; /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -185,7 +188,8 @@ public long id() { } /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ @JsonIgnore public Optional docId() { @@ -215,7 +219,8 @@ public Optional bodyText() { } /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -226,7 +231,8 @@ public Optional boardId() { } /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -312,7 +318,8 @@ public EditAnswerRequest withId(long id) { } /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public EditAnswerRequest withDocId(String docId) { Utils.checkNotNull(docId, "docId"); @@ -322,7 +329,8 @@ public EditAnswerRequest withDocId(String docId) { /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public EditAnswerRequest withDocId(Optional docId) { Utils.checkNotNull(docId, "docId"); @@ -382,7 +390,8 @@ public EditAnswerRequest withBodyText(Optional bodyText) { } /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -395,7 +404,8 @@ public EditAnswerRequest withBoardId(long boardId) { /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -407,7 +417,8 @@ public EditAnswerRequest withBoardId(Optional boardId) { } /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ public EditAnswerRequest withAudienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -417,7 +428,8 @@ public EditAnswerRequest withAudienceFilters(List audienceFilters) /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ public EditAnswerRequest withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -666,7 +678,8 @@ public Builder id(long id) { /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public Builder docId(String docId) { Utils.checkNotNull(docId, "docId"); @@ -675,7 +688,8 @@ public Builder docId(String docId) { } /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public Builder docId(Optional docId) { Utils.checkNotNull(docId, "docId"); @@ -736,7 +750,8 @@ public Builder bodyText(Optional bodyText) { /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -748,7 +763,8 @@ public Builder boardId(long boardId) { } /** - * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. + * The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards + * is no longer permitted. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -761,7 +777,8 @@ public Builder boardId(Optional boardId) { /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -770,7 +787,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the answer. Values are taken from the corresponding filters in + * people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/EditCollectionRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/EditCollectionRequest.java index bc395fd2..9219cc8b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/EditCollectionRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/EditCollectionRequest.java @@ -47,7 +47,8 @@ public class EditCollectionRequest { private Optional> removedRoles; /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -173,7 +174,8 @@ public Optional> removedRoles() { } /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -299,7 +301,8 @@ public EditCollectionRequest withRemovedRoles(Optional audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -309,7 +312,8 @@ public EditCollectionRequest withAudienceFilters(List audienceFilte /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public EditCollectionRequest withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -561,7 +565,8 @@ public Builder removedRoles(Optional> remo /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -570,7 +575,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/EditCollectionResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/EditCollectionResponse.java index 3fcad3a1..3e83ae8d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/EditCollectionResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/EditCollectionResponse.java @@ -47,7 +47,8 @@ public class EditCollectionResponse { private Optional> removedRoles; /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -118,14 +119,16 @@ public class EditCollectionResponse { private Optional updatedBy; /** - * The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Collection. Separated from the actual items so we can grab the + * count without items. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("itemCount") private Optional itemCount; /** - * The number of children Collections. Separated from the actual children so we can grab the count without children. + * The number of children Collections. Separated from the actual children so we can grab the count + * without children. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("childCount") @@ -311,7 +314,8 @@ public Optional> removedRoles() { } /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -394,7 +398,8 @@ public Optional updatedBy() { } /** - * The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Collection. Separated from the actual items so we can grab the + * count without items. */ @JsonIgnore public Optional itemCount() { @@ -402,7 +407,8 @@ public Optional itemCount() { } /** - * The number of children Collections. Separated from the actual children so we can grab the count without children. + * The number of children Collections. Separated from the actual children so we can grab the count + * without children. */ @JsonIgnore public Optional childCount() { @@ -530,7 +536,8 @@ public EditCollectionResponse withRemovedRoles(Optional audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -540,7 +547,8 @@ public EditCollectionResponse withAudienceFilters(List audienceFilt /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public EditCollectionResponse withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -712,7 +720,8 @@ public EditCollectionResponse withUpdatedBy(Optional updatedBy } /** - * The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Collection. Separated from the actual items so we can grab the + * count without items. */ public EditCollectionResponse withItemCount(long itemCount) { Utils.checkNotNull(itemCount, "itemCount"); @@ -722,7 +731,8 @@ public EditCollectionResponse withItemCount(long itemCount) { /** - * The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Collection. Separated from the actual items so we can grab the + * count without items. */ public EditCollectionResponse withItemCount(Optional itemCount) { Utils.checkNotNull(itemCount, "itemCount"); @@ -731,7 +741,8 @@ public EditCollectionResponse withItemCount(Optional itemCount) { } /** - * The number of children Collections. Separated from the actual children so we can grab the count without children. + * The number of children Collections. Separated from the actual children so we can grab the count + * without children. */ public EditCollectionResponse withChildCount(long childCount) { Utils.checkNotNull(childCount, "childCount"); @@ -741,7 +752,8 @@ public EditCollectionResponse withChildCount(long childCount) { /** - * The number of children Collections. Separated from the actual children so we can grab the count without children. + * The number of children Collections. Separated from the actual children so we can grab the count + * without children. */ public EditCollectionResponse withChildCount(Optional childCount) { Utils.checkNotNull(childCount, "childCount"); @@ -1072,7 +1084,8 @@ public Builder removedRoles(Optional> remo /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -1081,7 +1094,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see this Collection. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -1255,7 +1269,8 @@ public Builder updatedBy(Optional updatedBy) { /** - * The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Collection. Separated from the actual items so we can grab the + * count without items. */ public Builder itemCount(long itemCount) { Utils.checkNotNull(itemCount, "itemCount"); @@ -1264,7 +1279,8 @@ public Builder itemCount(long itemCount) { } /** - * The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. + * The number of items currently in the Collection. Separated from the actual items so we can grab the + * count without items. */ public Builder itemCount(Optional itemCount) { Utils.checkNotNull(itemCount, "itemCount"); @@ -1274,7 +1290,8 @@ public Builder itemCount(Optional itemCount) { /** - * The number of children Collections. Separated from the actual children so we can grab the count without children. + * The number of children Collections. Separated from the actual children so we can grab the count + * without children. */ public Builder childCount(long childCount) { Utils.checkNotNull(childCount, "childCount"); @@ -1283,7 +1300,8 @@ public Builder childCount(long childCount) { } /** - * The number of children Collections. Separated from the actual children so we can grab the count without children. + * The number of children Collections. Separated from the actual children so we can grab the count + * without children. */ public Builder childCount(Optional childCount) { Utils.checkNotNull(childCount, "childCount"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/EditPinRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/EditPinRequest.java index 15b526c4..0ae9fa8d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/EditPinRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/EditPinRequest.java @@ -25,7 +25,8 @@ public class EditPinRequest { private Optional> queries; /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -65,7 +66,8 @@ public Optional> queries() { } /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -106,7 +108,8 @@ public EditPinRequest withQueries(Optional> queries) { } /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ public EditPinRequest withAudienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -116,7 +119,8 @@ public EditPinRequest withAudienceFilters(List audienceFilters) { /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ public EditPinRequest withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -206,7 +210,8 @@ public Builder queries(Optional> queries) { /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -215,7 +220,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/EmployeeInfoDefinition.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/EmployeeInfoDefinition.java index cf0f54fc..3b57d52d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/EmployeeInfoDefinition.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/EmployeeInfoDefinition.java @@ -53,7 +53,8 @@ public class EmployeeInfoDefinition { private Optional preferredName; /** - * **[Advanced]** A unique universal internal identifier for the employee. This is solely used for understanding manager relationships along with `managerId`. + * **[Advanced]** A unique universal internal identifier for the employee. This is solely used for + * understanding manager relationships along with `managerId`. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") @@ -98,7 +99,8 @@ public class EmployeeInfoDefinition { private Optional photoUrl; /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("businessUnit") @@ -181,7 +183,8 @@ public class EmployeeInfoDefinition { private Optional managerEmail; /** - * **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely used in conjunction with `id`. + * **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely + * used in conjunction with `id`. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("managerId") @@ -195,7 +198,11 @@ public class EmployeeInfoDefinition { private Optional type; /** - * List of unidirectional relationships with other employees. E.g. this employee (`A`) is a CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of another employee (`C`). The mapping should be attached to `A`'s profile. + * List of unidirectional relationships with other employees. E.g. this employee (`A`) is a + * CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of + * another employee (`C`). + * + *

The mapping should be attached to `A`'s profile. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("relationships") @@ -347,7 +354,8 @@ public Optional preferredName() { } /** - * **[Advanced]** A unique universal internal identifier for the employee. This is solely used for understanding manager relationships along with `managerId`. + * **[Advanced]** A unique universal internal identifier for the employee. This is solely used for + * understanding manager relationships along with `managerId`. */ @JsonIgnore public Optional id() { @@ -399,7 +407,8 @@ public Optional photoUrl() { } /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ @JsonIgnore public Optional businessUnit() { @@ -499,7 +508,8 @@ public Optional managerEmail() { } /** - * **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely used in conjunction with `id`. + * **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely + * used in conjunction with `id`. */ @JsonIgnore public Optional managerId() { @@ -515,7 +525,11 @@ public Optional type() { } /** - * List of unidirectional relationships with other employees. E.g. this employee (`A`) is a CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of another employee (`C`). The mapping should be attached to `A`'s profile. + * List of unidirectional relationships with other employees. E.g. this employee (`A`) is a + * CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of + * another employee (`C`). + * + *

The mapping should be attached to `A`'s profile. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -612,7 +626,8 @@ public EmployeeInfoDefinition withPreferredName(Optional preferredName) } /** - * **[Advanced]** A unique universal internal identifier for the employee. This is solely used for understanding manager relationships along with `managerId`. + * **[Advanced]** A unique universal internal identifier for the employee. This is solely used for + * understanding manager relationships along with `managerId`. */ public EmployeeInfoDefinition withId(String id) { Utils.checkNotNull(id, "id"); @@ -622,7 +637,8 @@ public EmployeeInfoDefinition withId(String id) { /** - * **[Advanced]** A unique universal internal identifier for the employee. This is solely used for understanding manager relationships along with `managerId`. + * **[Advanced]** A unique universal internal identifier for the employee. This is solely used for + * understanding manager relationships along with `managerId`. */ public EmployeeInfoDefinition withId(Optional id) { Utils.checkNotNull(id, "id"); @@ -732,7 +748,8 @@ public EmployeeInfoDefinition withPhotoUrl(Optional photoUrl) { } /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public EmployeeInfoDefinition withBusinessUnit(String businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -742,7 +759,8 @@ public EmployeeInfoDefinition withBusinessUnit(String businessUnit) { /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public EmployeeInfoDefinition withBusinessUnit(Optional businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -950,7 +968,8 @@ public EmployeeInfoDefinition withManagerEmail(Optional managerEmail) { } /** - * **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely used in conjunction with `id`. + * **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely + * used in conjunction with `id`. */ public EmployeeInfoDefinition withManagerId(String managerId) { Utils.checkNotNull(managerId, "managerId"); @@ -960,7 +979,8 @@ public EmployeeInfoDefinition withManagerId(String managerId) { /** - * **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely used in conjunction with `id`. + * **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely + * used in conjunction with `id`. */ public EmployeeInfoDefinition withManagerId(Optional managerId) { Utils.checkNotNull(managerId, "managerId"); @@ -988,7 +1008,11 @@ public EmployeeInfoDefinition withType(Optional type) { } /** - * List of unidirectional relationships with other employees. E.g. this employee (`A`) is a CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of another employee (`C`). The mapping should be attached to `A`'s profile. + * List of unidirectional relationships with other employees. E.g. this employee (`A`) is a + * CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of + * another employee (`C`). + * + *

The mapping should be attached to `A`'s profile. */ public EmployeeInfoDefinition withRelationships(List relationships) { Utils.checkNotNull(relationships, "relationships"); @@ -998,7 +1022,11 @@ public EmployeeInfoDefinition withRelationships(List relatio /** - * List of unidirectional relationships with other employees. E.g. this employee (`A`) is a CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of another employee (`C`). The mapping should be attached to `A`'s profile. + * List of unidirectional relationships with other employees. E.g. this employee (`A`) is a + * CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of + * another employee (`C`). + * + *

The mapping should be attached to `A`'s profile. */ public EmployeeInfoDefinition withRelationships(Optional> relationships) { Utils.checkNotNull(relationships, "relationships"); @@ -1260,7 +1288,8 @@ public Builder preferredName(Optional preferredName) { /** - * **[Advanced]** A unique universal internal identifier for the employee. This is solely used for understanding manager relationships along with `managerId`. + * **[Advanced]** A unique universal internal identifier for the employee. This is solely used for + * understanding manager relationships along with `managerId`. */ public Builder id(String id) { Utils.checkNotNull(id, "id"); @@ -1269,7 +1298,8 @@ public Builder id(String id) { } /** - * **[Advanced]** A unique universal internal identifier for the employee. This is solely used for understanding manager relationships along with `managerId`. + * **[Advanced]** A unique universal internal identifier for the employee. This is solely used for + * understanding manager relationships along with `managerId`. */ public Builder id(Optional id) { Utils.checkNotNull(id, "id"); @@ -1380,7 +1410,8 @@ public Builder photoUrl(Optional photoUrl) { /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public Builder businessUnit(String businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -1389,7 +1420,8 @@ public Builder businessUnit(String businessUnit) { } /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public Builder businessUnit(Optional businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -1599,7 +1631,8 @@ public Builder managerEmail(Optional managerEmail) { /** - * **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely used in conjunction with `id`. + * **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely + * used in conjunction with `id`. */ public Builder managerId(String managerId) { Utils.checkNotNull(managerId, "managerId"); @@ -1608,7 +1641,8 @@ public Builder managerId(String managerId) { } /** - * **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely used in conjunction with `id`. + * **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely + * used in conjunction with `id`. */ public Builder managerId(Optional managerId) { Utils.checkNotNull(managerId, "managerId"); @@ -1637,7 +1671,11 @@ public Builder type(Optional type) { /** - * List of unidirectional relationships with other employees. E.g. this employee (`A`) is a CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of another employee (`C`). The mapping should be attached to `A`'s profile. + * List of unidirectional relationships with other employees. E.g. this employee (`A`) is a + * CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of + * another employee (`C`). + * + *

The mapping should be attached to `A`'s profile. */ public Builder relationships(List relationships) { Utils.checkNotNull(relationships, "relationships"); @@ -1646,7 +1684,11 @@ public Builder relationships(List relationships) { } /** - * List of unidirectional relationships with other employees. E.g. this employee (`A`) is a CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of another employee (`C`). The mapping should be attached to `A`'s profile. + * List of unidirectional relationships with other employees. E.g. this employee (`A`) is a + * CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of + * another employee (`C`). + * + *

The mapping should be attached to `A`'s profile. */ public Builder relationships(Optional> relationships) { Utils.checkNotNull(relationships, "relationships"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/EntityRelationship.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/EntityRelationship.java index ec7e4785..7236b85a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/EntityRelationship.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/EntityRelationship.java @@ -23,7 +23,8 @@ public class EntityRelationship { private String name; /** - * Email of the person with whom the relationship exists. Per the example above, either `B` or `C`'s email depending on the relationship. + * Email of the person with whom the relationship exists. Per the example above, either `B` or `C`'s + * email depending on the relationship. */ @JsonProperty("email") private String email; @@ -47,7 +48,8 @@ public String name() { } /** - * Email of the person with whom the relationship exists. Per the example above, either `B` or `C`'s email depending on the relationship. + * Email of the person with whom the relationship exists. Per the example above, either `B` or `C`'s + * email depending on the relationship. */ @JsonIgnore public String email() { @@ -69,7 +71,8 @@ public EntityRelationship withName(String name) { } /** - * Email of the person with whom the relationship exists. Per the example above, either `B` or `C`'s email depending on the relationship. + * Email of the person with whom the relationship exists. Per the example above, either `B` or `C`'s + * email depending on the relationship. */ public EntityRelationship withEmail(String email) { Utils.checkNotNull(email, "email"); @@ -127,7 +130,8 @@ public Builder name(String name) { /** - * Email of the person with whom the relationship exists. Per the example above, either `B` or `C`'s email depending on the relationship. + * Email of the person with whom the relationship exists. Per the example above, either `B` or `C`'s + * email depending on the relationship. */ public Builder email(String email) { Utils.checkNotNull(email, "email"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Event.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Event.java index 37a0ae55..a6dc7c6a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Event.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Event.java @@ -11,7 +11,8 @@ /** * Event * - *

The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. + *

The action the user took within a Glean client with respect to the object referred to by the given + * `trackingToken`. */ public enum Event { CLICK("CLICK"), diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ExternalShortcut.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ExternalShortcut.java index 5a87ef0c..f2d7b2c9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ExternalShortcut.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ExternalShortcut.java @@ -18,7 +18,8 @@ public class ExternalShortcut { /** - * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` and the shortened URL is `go/abc`, then `abc` is the inputAlias. + * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` + * and the shortened URL is `go/abc`, then `abc` is the inputAlias. */ @JsonProperty("inputAlias") private String inputAlias; @@ -139,7 +140,8 @@ public ExternalShortcut( } /** - * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` and the shortened URL is `go/abc`, then `abc` is the inputAlias. + * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` + * and the shortened URL is `go/abc`, then `abc` is the inputAlias. */ @JsonIgnore public String inputAlias() { @@ -232,7 +234,8 @@ public static Builder builder() { /** - * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` and the shortened URL is `go/abc`, then `abc` is the inputAlias. + * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` + * and the shortened URL is `go/abc`, then `abc` is the inputAlias. */ public ExternalShortcut withInputAlias(String inputAlias) { Utils.checkNotNull(inputAlias, "inputAlias"); @@ -479,7 +482,8 @@ private Builder() { /** - * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` and the shortened URL is `go/abc`, then `abc` is the inputAlias. + * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` + * and the shortened URL is `go/abc`, then `abc` is the inputAlias. */ public Builder inputAlias(String inputAlias) { Utils.checkNotNull(inputAlias, "inputAlias"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetBucket.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetBucket.java index 4a931b1f..a82574bc 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetBucket.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetBucket.java @@ -25,7 +25,8 @@ public class FacetBucket { private Optional count; /** - * The datasource the value belongs to. This will be used by the all tab to show types across all datasources. + * The datasource the value belongs to. This will be used by the all tab to show types across all + * datasources. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("datasource") @@ -73,7 +74,8 @@ public Optional count() { } /** - * The datasource the value belongs to. This will be used by the all tab to show types across all datasources. + * The datasource the value belongs to. This will be used by the all tab to show types across all + * datasources. */ @JsonIgnore public Optional datasource() { @@ -119,7 +121,8 @@ public FacetBucket withCount(Optional count) { } /** - * The datasource the value belongs to. This will be used by the all tab to show types across all datasources. + * The datasource the value belongs to. This will be used by the all tab to show types across all + * datasources. */ public FacetBucket withDatasource(String datasource) { Utils.checkNotNull(datasource, "datasource"); @@ -129,7 +132,8 @@ public FacetBucket withDatasource(String datasource) { /** - * The datasource the value belongs to. This will be used by the all tab to show types across all datasources. + * The datasource the value belongs to. This will be used by the all tab to show types across all + * datasources. */ public FacetBucket withDatasource(Optional datasource) { Utils.checkNotNull(datasource, "datasource"); @@ -237,7 +241,8 @@ public Builder count(Optional count) { /** - * The datasource the value belongs to. This will be used by the all tab to show types across all datasources. + * The datasource the value belongs to. This will be used by the all tab to show types across all + * datasources. */ public Builder datasource(String datasource) { Utils.checkNotNull(datasource, "datasource"); @@ -246,7 +251,8 @@ public Builder datasource(String datasource) { } /** - * The datasource the value belongs to. This will be used by the all tab to show types across all datasources. + * The datasource the value belongs to. This will be used by the all tab to show types across all + * datasources. */ public Builder datasource(Optional datasource) { Utils.checkNotNull(datasource, "datasource"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetFilter.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetFilter.java index 5e93eba7..b1897e75 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetFilter.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetFilter.java @@ -23,14 +23,18 @@ public class FacetFilter { private Optional fieldName; /** - * Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a Presentation OR a Spreadsheet. + * Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type + * with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a + * Presentation OR a Spreadsheet. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("values") private Optional> values; /** - * Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing all owners for spreadsheets as a nested facet. + * Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for + * nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing + * all owners for spreadsheets as a nested facet. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("groupName") @@ -59,7 +63,9 @@ public Optional fieldName() { } /** - * Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a Presentation OR a Spreadsheet. + * Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type + * with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a + * Presentation OR a Spreadsheet. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -68,7 +74,9 @@ public Optional> values() { } /** - * Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing all owners for spreadsheets as a nested facet. + * Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for + * nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing + * all owners for spreadsheets as a nested facet. */ @JsonIgnore public Optional groupName() { @@ -94,7 +102,9 @@ public FacetFilter withFieldName(Optional fieldName) { } /** - * Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a Presentation OR a Spreadsheet. + * Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type + * with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a + * Presentation OR a Spreadsheet. */ public FacetFilter withValues(List values) { Utils.checkNotNull(values, "values"); @@ -104,7 +114,9 @@ public FacetFilter withValues(List values) { /** - * Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a Presentation OR a Spreadsheet. + * Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type + * with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a + * Presentation OR a Spreadsheet. */ public FacetFilter withValues(Optional> values) { Utils.checkNotNull(values, "values"); @@ -113,7 +125,9 @@ public FacetFilter withValues(Optional> values) } /** - * Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing all owners for spreadsheets as a nested facet. + * Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for + * nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing + * all owners for spreadsheets as a nested facet. */ public FacetFilter withGroupName(String groupName) { Utils.checkNotNull(groupName, "groupName"); @@ -123,7 +137,9 @@ public FacetFilter withGroupName(String groupName) { /** - * Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing all owners for spreadsheets as a nested facet. + * Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for + * nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing + * all owners for spreadsheets as a nested facet. */ public FacetFilter withGroupName(Optional groupName) { Utils.checkNotNull(groupName, "groupName"); @@ -188,7 +204,9 @@ public Builder fieldName(Optional fieldName) { /** - * Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a Presentation OR a Spreadsheet. + * Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type + * with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a + * Presentation OR a Spreadsheet. */ public Builder values(List values) { Utils.checkNotNull(values, "values"); @@ -197,7 +215,9 @@ public Builder values(List values) { } /** - * Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a Presentation OR a Spreadsheet. + * Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type + * with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a + * Presentation OR a Spreadsheet. */ public Builder values(Optional> values) { Utils.checkNotNull(values, "values"); @@ -207,7 +227,9 @@ public Builder values(Optional> values) { /** - * Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing all owners for spreadsheets as a nested facet. + * Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for + * nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing + * all owners for spreadsheets as a nested facet. */ public Builder groupName(String groupName) { Utils.checkNotNull(groupName, "groupName"); @@ -216,7 +238,9 @@ public Builder groupName(String groupName) { } /** - * Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing all owners for spreadsheets as a nested facet. + * Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for + * nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing + * all owners for spreadsheets as a nested facet. */ public Builder groupName(Optional groupName) { Utils.checkNotNull(groupName, "groupName"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetFilterSet.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetFilterSet.java index 1bed7a73..6e68a71b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetFilterSet.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetFilterSet.java @@ -18,7 +18,8 @@ /** * FacetFilterSet * - *

Within a single FacetFilterSet, the filters are treated as AND. For example, owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. + *

Within a single FacetFilterSet, the filters are treated as AND. For example, owner Sumeet and type + * Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. */ public class FacetFilterSet { diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetResult.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetResult.java index 356aac0b..88f755f8 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetResult.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FacetResult.java @@ -40,14 +40,17 @@ public class FacetResult { private Optional> buckets; /** - * Returns true if more buckets exist than those returned. Additional buckets can be retrieve by requesting again with a higher facetBucketSize. + * Returns true if more buckets exist than those returned. Additional buckets can be retrieve by + * requesting again with a higher facetBucketSize. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("hasMoreBuckets") private Optional hasMoreBuckets; /** - * For most facets this will be the empty string, meaning the facet is high-level and applies to all documents for the datasource. When non-empty, this is used to group facets together (i.e. group facets for each doctype for a certain datasource) + * For most facets this will be the empty string, meaning the facet is high-level and applies to all + * documents for the datasource. When non-empty, this is used to group facets together (i.e. group + * facets for each doctype for a certain datasource) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("groupName") @@ -103,7 +106,8 @@ public Optional> buckets() { } /** - * Returns true if more buckets exist than those returned. Additional buckets can be retrieve by requesting again with a higher facetBucketSize. + * Returns true if more buckets exist than those returned. Additional buckets can be retrieve by + * requesting again with a higher facetBucketSize. */ @JsonIgnore public Optional hasMoreBuckets() { @@ -111,7 +115,9 @@ public Optional hasMoreBuckets() { } /** - * For most facets this will be the empty string, meaning the facet is high-level and applies to all documents for the datasource. When non-empty, this is used to group facets together (i.e. group facets for each doctype for a certain datasource) + * For most facets this will be the empty string, meaning the facet is high-level and applies to all + * documents for the datasource. When non-empty, this is used to group facets together (i.e. group + * facets for each doctype for a certain datasource) */ @JsonIgnore public Optional groupName() { @@ -181,7 +187,8 @@ public FacetResult withBuckets(Optional> buckets) { } /** - * Returns true if more buckets exist than those returned. Additional buckets can be retrieve by requesting again with a higher facetBucketSize. + * Returns true if more buckets exist than those returned. Additional buckets can be retrieve by + * requesting again with a higher facetBucketSize. */ public FacetResult withHasMoreBuckets(boolean hasMoreBuckets) { Utils.checkNotNull(hasMoreBuckets, "hasMoreBuckets"); @@ -191,7 +198,8 @@ public FacetResult withHasMoreBuckets(boolean hasMoreBuckets) { /** - * Returns true if more buckets exist than those returned. Additional buckets can be retrieve by requesting again with a higher facetBucketSize. + * Returns true if more buckets exist than those returned. Additional buckets can be retrieve by + * requesting again with a higher facetBucketSize. */ public FacetResult withHasMoreBuckets(Optional hasMoreBuckets) { Utils.checkNotNull(hasMoreBuckets, "hasMoreBuckets"); @@ -200,7 +208,9 @@ public FacetResult withHasMoreBuckets(Optional hasMoreBuckets) { } /** - * For most facets this will be the empty string, meaning the facet is high-level and applies to all documents for the datasource. When non-empty, this is used to group facets together (i.e. group facets for each doctype for a certain datasource) + * For most facets this will be the empty string, meaning the facet is high-level and applies to all + * documents for the datasource. When non-empty, this is used to group facets together (i.e. group + * facets for each doctype for a certain datasource) */ public FacetResult withGroupName(String groupName) { Utils.checkNotNull(groupName, "groupName"); @@ -210,7 +220,9 @@ public FacetResult withGroupName(String groupName) { /** - * For most facets this will be the empty string, meaning the facet is high-level and applies to all documents for the datasource. When non-empty, this is used to group facets together (i.e. group facets for each doctype for a certain datasource) + * For most facets this will be the empty string, meaning the facet is high-level and applies to all + * documents for the datasource. When non-empty, this is used to group facets together (i.e. group + * facets for each doctype for a certain datasource) */ public FacetResult withGroupName(Optional groupName) { Utils.checkNotNull(groupName, "groupName"); @@ -328,7 +340,8 @@ public Builder buckets(Optional> buckets) { /** - * Returns true if more buckets exist than those returned. Additional buckets can be retrieve by requesting again with a higher facetBucketSize. + * Returns true if more buckets exist than those returned. Additional buckets can be retrieve by + * requesting again with a higher facetBucketSize. */ public Builder hasMoreBuckets(boolean hasMoreBuckets) { Utils.checkNotNull(hasMoreBuckets, "hasMoreBuckets"); @@ -337,7 +350,8 @@ public Builder hasMoreBuckets(boolean hasMoreBuckets) { } /** - * Returns true if more buckets exist than those returned. Additional buckets can be retrieve by requesting again with a higher facetBucketSize. + * Returns true if more buckets exist than those returned. Additional buckets can be retrieve by + * requesting again with a higher facetBucketSize. */ public Builder hasMoreBuckets(Optional hasMoreBuckets) { Utils.checkNotNull(hasMoreBuckets, "hasMoreBuckets"); @@ -347,7 +361,9 @@ public Builder hasMoreBuckets(Optional hasMoreBuckets) { /** - * For most facets this will be the empty string, meaning the facet is high-level and applies to all documents for the datasource. When non-empty, this is used to group facets together (i.e. group facets for each doctype for a certain datasource) + * For most facets this will be the empty string, meaning the facet is high-level and applies to all + * documents for the datasource. When non-empty, this is used to group facets together (i.e. group + * facets for each doctype for a certain datasource) */ public Builder groupName(String groupName) { Utils.checkNotNull(groupName, "groupName"); @@ -356,7 +372,9 @@ public Builder groupName(String groupName) { } /** - * For most facets this will be the empty string, meaning the facet is high-level and applies to all documents for the datasource. When non-empty, this is used to group facets together (i.e. group facets for each doctype for a certain datasource) + * For most facets this will be the empty string, meaning the facet is high-level and applies to all + * documents for the datasource. When non-empty, this is used to group facets together (i.e. group + * facets for each doctype for a certain datasource) */ public Builder groupName(Optional groupName) { Utils.checkNotNull(groupName, "groupName"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedEntry.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedEntry.java index 21035f20..e96f55f9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedEntry.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedEntry.java @@ -60,7 +60,8 @@ public class FeedEntry { private Optional justification; /** - * An opaque token that represents this particular feed entry in this particular response. To be used for /feedback reporting. + * An opaque token that represents this particular feed entry in this particular response. To be used + * for /feedback reporting. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trackingToken") @@ -274,7 +275,8 @@ public Optional justification() { } /** - * An opaque token that represents this particular feed entry in this particular response. To be used for /feedback reporting. + * An opaque token that represents this particular feed entry in this particular response. To be used + * for /feedback reporting. */ @JsonIgnore public Optional trackingToken() { @@ -481,7 +483,8 @@ public FeedEntry withJustification(Optional justification) { } /** - * An opaque token that represents this particular feed entry in this particular response. To be used for /feedback reporting. + * An opaque token that represents this particular feed entry in this particular response. To be used + * for /feedback reporting. */ public FeedEntry withTrackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -491,7 +494,8 @@ public FeedEntry withTrackingToken(String trackingToken) { /** - * An opaque token that represents this particular feed entry in this particular response. To be used for /feedback reporting. + * An opaque token that represents this particular feed entry in this particular response. To be used + * for /feedback reporting. */ public FeedEntry withTrackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -926,7 +930,8 @@ public Builder justification(Optional justification) { /** - * An opaque token that represents this particular feed entry in this particular response. To be used for /feedback reporting. + * An opaque token that represents this particular feed entry in this particular response. To be used + * for /feedback reporting. */ public Builder trackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -935,7 +940,8 @@ public Builder trackingToken(String trackingToken) { } /** - * An opaque token that represents this particular feed entry in this particular response. To be used for /feedback reporting. + * An opaque token that represents this particular feed entry in this particular response. To be used + * for /feedback reporting. */ public Builder trackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequest.java index 2800730d..a9e50d37 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequest.java @@ -19,7 +19,8 @@ public class FeedRequest { /** - * Categories of content requested. An allowlist gives flexibility to request content separately or together. + * Categories of content requested. An allowlist gives flexibility to request content separately or + * together. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("categories") @@ -31,7 +32,8 @@ public class FeedRequest { private Optional requestOptions; /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("timeoutMillis") @@ -64,7 +66,8 @@ public FeedRequest() { } /** - * Categories of content requested. An allowlist gives flexibility to request content separately or together. + * Categories of content requested. An allowlist gives flexibility to request content separately or + * together. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -79,7 +82,8 @@ public Optional requestOptions() { } /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ @JsonIgnore public Optional timeoutMillis() { @@ -98,7 +102,8 @@ public static Builder builder() { /** - * Categories of content requested. An allowlist gives flexibility to request content separately or together. + * Categories of content requested. An allowlist gives flexibility to request content separately or + * together. */ public FeedRequest withCategories(List categories) { Utils.checkNotNull(categories, "categories"); @@ -108,7 +113,8 @@ public FeedRequest withCategories(List categories) { /** - * Categories of content requested. An allowlist gives flexibility to request content separately or together. + * Categories of content requested. An allowlist gives flexibility to request content separately or + * together. */ public FeedRequest withCategories(Optional> categories) { Utils.checkNotNull(categories, "categories"); @@ -130,7 +136,8 @@ public FeedRequest withRequestOptions(Optional req } /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ public FeedRequest withTimeoutMillis(long timeoutMillis) { Utils.checkNotNull(timeoutMillis, "timeoutMillis"); @@ -140,7 +147,8 @@ public FeedRequest withTimeoutMillis(long timeoutMillis) { /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ public FeedRequest withTimeoutMillis(Optional timeoutMillis) { Utils.checkNotNull(timeoutMillis, "timeoutMillis"); @@ -210,7 +218,8 @@ private Builder() { /** - * Categories of content requested. An allowlist gives flexibility to request content separately or together. + * Categories of content requested. An allowlist gives flexibility to request content separately or + * together. */ public Builder categories(List categories) { Utils.checkNotNull(categories, "categories"); @@ -219,7 +228,8 @@ public Builder categories(List categories) { } /** - * Categories of content requested. An allowlist gives flexibility to request content separately or together. + * Categories of content requested. An allowlist gives flexibility to request content separately or + * together. */ public Builder categories(Optional> categories) { Utils.checkNotNull(categories, "categories"); @@ -242,7 +252,8 @@ public Builder requestOptions(Optional requestOpti /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ public Builder timeoutMillis(long timeoutMillis) { Utils.checkNotNull(timeoutMillis, "timeoutMillis"); @@ -251,7 +262,8 @@ public Builder timeoutMillis(long timeoutMillis) { } /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ public Builder timeoutMillis(Optional timeoutMillis) { Utils.checkNotNull(timeoutMillis, "timeoutMillis"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestOptions.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestOptions.java index b4d9109a..4153fdb0 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestOptions.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestOptions.java @@ -26,7 +26,8 @@ public class FeedRequestOptions { private long resultSize; /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("timezoneOffset") @@ -85,7 +86,8 @@ public long resultSize() { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -131,7 +133,8 @@ public FeedRequestOptions withResultSize(long resultSize) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public FeedRequestOptions withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -141,7 +144,8 @@ public FeedRequestOptions withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public FeedRequestOptions withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -263,7 +267,8 @@ public Builder resultSize(long resultSize) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -272,7 +277,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Feedback.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Feedback.java index 8a3ac273..58ea4425 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Feedback.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Feedback.java @@ -20,14 +20,17 @@ public class Feedback { /** - * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. + * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest + * received event of a given UUID is considered valid by the server and subsequent are ignored. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") private Optional id; /** - * The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. + * The feature category to which the feedback applies. These should be broad product areas such as + * Announcements, Answers, Search, etc. rather than specific components or UI treatments within those + * areas. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("category") @@ -40,7 +43,8 @@ public class Feedback { private List trackingTokens; /** - * The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. + * The action the user took within a Glean client with respect to the object referred to by the given + * `trackingToken`. */ @JsonProperty("event") private Event event; @@ -53,7 +57,9 @@ public class Feedback { private Optional position; /** - * For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. For feed, string of user feedback in addition to manual feedback signals extracted from all suggested content. + * For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. + * For feed, string of user feedback in addition to manual feedback signals extracted from all + * suggested content. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("payload") @@ -84,7 +90,8 @@ public class Feedback { private Optional pathname; /** - * Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are specified, feedback will go only to Glean. + * Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are + * specified, feedback will go only to Glean. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("channels") @@ -230,7 +237,8 @@ public Feedback( } /** - * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. + * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest + * received event of a given UUID is considered valid by the server and subsequent are ignored. */ @JsonIgnore public Optional id() { @@ -238,7 +246,9 @@ public Optional id() { } /** - * The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. + * The feature category to which the feedback applies. These should be broad product areas such as + * Announcements, Answers, Search, etc. rather than specific components or UI treatments within those + * areas. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -255,7 +265,8 @@ public List trackingTokens() { } /** - * The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. + * The action the user took within a Glean client with respect to the object referred to by the given + * `trackingToken`. */ @JsonIgnore public Event event() { @@ -271,7 +282,9 @@ public Optional position() { } /** - * For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. For feed, string of user feedback in addition to manual feedback signals extracted from all suggested content. + * For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. + * For feed, string of user feedback in addition to manual feedback signals extracted from all + * suggested content. */ @JsonIgnore public Optional payload() { @@ -307,7 +320,8 @@ public Optional pathname() { } /** - * Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are specified, feedback will go only to Glean. + * Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are + * specified, feedback will go only to Glean. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -392,7 +406,8 @@ public static Builder builder() { /** - * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. + * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest + * received event of a given UUID is considered valid by the server and subsequent are ignored. */ public Feedback withId(String id) { Utils.checkNotNull(id, "id"); @@ -402,7 +417,8 @@ public Feedback withId(String id) { /** - * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. + * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest + * received event of a given UUID is considered valid by the server and subsequent are ignored. */ public Feedback withId(Optional id) { Utils.checkNotNull(id, "id"); @@ -411,7 +427,9 @@ public Feedback withId(Optional id) { } /** - * The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. + * The feature category to which the feedback applies. These should be broad product areas such as + * Announcements, Answers, Search, etc. rather than specific components or UI treatments within those + * areas. */ public Feedback withCategory(FeedbackCategory category) { Utils.checkNotNull(category, "category"); @@ -421,7 +439,9 @@ public Feedback withCategory(FeedbackCategory category) { /** - * The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. + * The feature category to which the feedback applies. These should be broad product areas such as + * Announcements, Answers, Search, etc. rather than specific components or UI treatments within those + * areas. */ public Feedback withCategory(Optional category) { Utils.checkNotNull(category, "category"); @@ -439,7 +459,8 @@ public Feedback withTrackingTokens(List trackingTokens) { } /** - * The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. + * The action the user took within a Glean client with respect to the object referred to by the given + * `trackingToken`. */ public Feedback withEvent(Event event) { Utils.checkNotNull(event, "event"); @@ -467,7 +488,9 @@ public Feedback withPosition(Optional position) { } /** - * For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. For feed, string of user feedback in addition to manual feedback signals extracted from all suggested content. + * For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. + * For feed, string of user feedback in addition to manual feedback signals extracted from all + * suggested content. */ public Feedback withPayload(String payload) { Utils.checkNotNull(payload, "payload"); @@ -477,7 +500,9 @@ public Feedback withPayload(String payload) { /** - * For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. For feed, string of user feedback in addition to manual feedback signals extracted from all suggested content. + * For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. + * For feed, string of user feedback in addition to manual feedback signals extracted from all + * suggested content. */ public Feedback withPayload(Optional payload) { Utils.checkNotNull(payload, "payload"); @@ -550,7 +575,8 @@ public Feedback withPathname(Optional pathname) { } /** - * Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are specified, feedback will go only to Glean. + * Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are + * specified, feedback will go only to Glean. */ public Feedback withChannels(List channels) { Utils.checkNotNull(channels, "channels"); @@ -560,7 +586,8 @@ public Feedback withChannels(List channels) { /** - * Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are specified, feedback will go only to Glean. + * Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are + * specified, feedback will go only to Glean. */ public Feedback withChannels(Optional> channels) { Utils.checkNotNull(channels, "channels"); @@ -850,7 +877,8 @@ private Builder() { /** - * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. + * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest + * received event of a given UUID is considered valid by the server and subsequent are ignored. */ public Builder id(String id) { Utils.checkNotNull(id, "id"); @@ -859,7 +887,8 @@ public Builder id(String id) { } /** - * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. + * Universally unique identifier of the event. To allow for reliable retransmission, only the earliest + * received event of a given UUID is considered valid by the server and subsequent are ignored. */ public Builder id(Optional id) { Utils.checkNotNull(id, "id"); @@ -869,7 +898,9 @@ public Builder id(Optional id) { /** - * The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. + * The feature category to which the feedback applies. These should be broad product areas such as + * Announcements, Answers, Search, etc. rather than specific components or UI treatments within those + * areas. */ public Builder category(FeedbackCategory category) { Utils.checkNotNull(category, "category"); @@ -878,7 +909,9 @@ public Builder category(FeedbackCategory category) { } /** - * The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. + * The feature category to which the feedback applies. These should be broad product areas such as + * Announcements, Answers, Search, etc. rather than specific components or UI treatments within those + * areas. */ public Builder category(Optional category) { Utils.checkNotNull(category, "category"); @@ -898,7 +931,8 @@ public Builder trackingTokens(List trackingTokens) { /** - * The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. + * The action the user took within a Glean client with respect to the object referred to by the given + * `trackingToken`. */ public Builder event(Event event) { Utils.checkNotNull(event, "event"); @@ -927,7 +961,9 @@ public Builder position(Optional position) { /** - * For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. For feed, string of user feedback in addition to manual feedback signals extracted from all suggested content. + * For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. + * For feed, string of user feedback in addition to manual feedback signals extracted from all + * suggested content. */ public Builder payload(String payload) { Utils.checkNotNull(payload, "payload"); @@ -936,7 +972,9 @@ public Builder payload(String payload) { } /** - * For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. For feed, string of user feedback in addition to manual feedback signals extracted from all suggested content. + * For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. + * For feed, string of user feedback in addition to manual feedback signals extracted from all + * suggested content. */ public Builder payload(Optional payload) { Utils.checkNotNull(payload, "payload"); @@ -1010,7 +1048,8 @@ public Builder pathname(Optional pathname) { /** - * Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are specified, feedback will go only to Glean. + * Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are + * specified, feedback will go only to Glean. */ public Builder channels(List channels) { Utils.checkNotNull(channels, "channels"); @@ -1019,7 +1058,8 @@ public Builder channels(List channels) { } /** - * Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are specified, feedback will go only to Glean. + * Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are + * specified, feedback will go only to Glean. */ public Builder channels(Optional> channels) { Utils.checkNotNull(channels, "channels"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedbackCategory.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedbackCategory.java index 29e3bb91..b4bc9fbf 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedbackCategory.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedbackCategory.java @@ -11,7 +11,9 @@ /** * FeedbackCategory * - *

The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. + *

The feature category to which the feedback applies. These should be broad product areas such as + * Announcements, Answers, Search, etc. rather than specific components or UI treatments within those + * areas. */ public enum FeedbackCategory { ANNOUNCEMENT("ANNOUNCEMENT"), diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FollowupAction.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FollowupAction.java index 5faf95e6..a43ac4eb 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FollowupAction.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FollowupAction.java @@ -17,7 +17,8 @@ /** * FollowupAction * - *

A follow-up action that can be invoked by the user after a response. The action parameters are not included and need to be predicted/filled separately. + *

A follow-up action that can be invoked by the user after a response. The action parameters are not + * included and need to be predicted/filled separately. */ public class FollowupAction { /** diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/GeneratedQna.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/GeneratedQna.java index 9f2ec7f5..6cbd4661 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/GeneratedQna.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/GeneratedQna.java @@ -67,7 +67,8 @@ public class GeneratedQna { private Optional cursor; /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trackingToken") @@ -168,7 +169,8 @@ public Optional cursor() { } /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ @JsonIgnore public Optional trackingToken() { @@ -314,7 +316,8 @@ public GeneratedQna withCursor(Optional cursor) { } /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ public GeneratedQna withTrackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -324,7 +327,8 @@ public GeneratedQna withTrackingToken(String trackingToken) { /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ public GeneratedQna withTrackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -531,7 +535,8 @@ public Builder cursor(Optional cursor) { /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ public Builder trackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -540,7 +545,8 @@ public Builder trackingToken(String trackingToken) { } /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ public Builder trackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/GetAnswerRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/GetAnswerRequest.java index 74b393e6..522d1026 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/GetAnswerRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/GetAnswerRequest.java @@ -24,7 +24,8 @@ public class GetAnswerRequest { private Optional id; /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("docId") @@ -53,7 +54,8 @@ public Optional id() { } /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ @JsonIgnore public Optional docId() { @@ -85,7 +87,8 @@ public GetAnswerRequest withId(Optional id) { } /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public GetAnswerRequest withDocId(String docId) { Utils.checkNotNull(docId, "docId"); @@ -95,7 +98,8 @@ public GetAnswerRequest withDocId(String docId) { /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public GetAnswerRequest withDocId(Optional docId) { Utils.checkNotNull(docId, "docId"); @@ -162,7 +166,8 @@ public Builder id(Optional id) { /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public Builder docId(String docId) { Utils.checkNotNull(docId, "docId"); @@ -171,7 +176,8 @@ public Builder docId(String docId) { } /** - * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. + * Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID + * isn't available. If both are available, using the Answer ID is preferred. */ public Builder docId(Optional docId) { Utils.checkNotNull(docId, "docId"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/GetCollectionRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/GetCollectionRequest.java index 92cd2021..492b33c4 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/GetCollectionRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/GetCollectionRequest.java @@ -24,7 +24,8 @@ public class GetCollectionRequest { private long id; /** - * Whether or not to include the Collection Items in this Collection. Only request if absolutely required, as this is expensive. + * Whether or not to include the Collection Items in this Collection. Only request if absolutely + * required, as this is expensive. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("withItems") @@ -75,7 +76,8 @@ public long id() { } /** - * Whether or not to include the Collection Items in this Collection. Only request if absolutely required, as this is expensive. + * Whether or not to include the Collection Items in this Collection. Only request if absolutely + * required, as this is expensive. */ @JsonIgnore public Optional withItems() { @@ -113,7 +115,8 @@ public GetCollectionRequest withId(long id) { } /** - * Whether or not to include the Collection Items in this Collection. Only request if absolutely required, as this is expensive. + * Whether or not to include the Collection Items in this Collection. Only request if absolutely + * required, as this is expensive. */ public GetCollectionRequest withWithItems(boolean withItems) { Utils.checkNotNull(withItems, "withItems"); @@ -123,7 +126,8 @@ public GetCollectionRequest withWithItems(boolean withItems) { /** - * Whether or not to include the Collection Items in this Collection. Only request if absolutely required, as this is expensive. + * Whether or not to include the Collection Items in this Collection. Only request if absolutely + * required, as this is expensive. */ public GetCollectionRequest withWithItems(Optional withItems) { Utils.checkNotNull(withItems, "withItems"); @@ -228,7 +232,8 @@ public Builder id(long id) { /** - * Whether or not to include the Collection Items in this Collection. Only request if absolutely required, as this is expensive. + * Whether or not to include the Collection Items in this Collection. Only request if absolutely + * required, as this is expensive. */ public Builder withItems(boolean withItems) { Utils.checkNotNull(withItems, "withItems"); @@ -237,7 +242,8 @@ public Builder withItems(boolean withItems) { } /** - * Whether or not to include the Collection Items in this Collection. Only request if absolutely required, as this is expensive. + * Whether or not to include the Collection Items in this Collection. Only request if absolutely + * required, as this is expensive. */ public Builder withItems(Optional withItems) { Utils.checkNotNull(withItems, "withItems"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/GetDocPermissionsResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/GetDocPermissionsResponse.java index e543e3ae..e56be3c6 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/GetDocPermissionsResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/GetDocPermissionsResponse.java @@ -18,7 +18,8 @@ public class GetDocPermissionsResponse { /** - * A list of emails of users who have access to the document. If the document is visible to all Glean users, a list with only a single value of 'VISIBLE_TO_ALL'. + * A list of emails of users who have access to the document. If the document is visible to all Glean + * users, a list with only a single value of 'VISIBLE_TO_ALL'. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("allowedUserEmails") @@ -36,7 +37,8 @@ public GetDocPermissionsResponse() { } /** - * A list of emails of users who have access to the document. If the document is visible to all Glean users, a list with only a single value of 'VISIBLE_TO_ALL'. + * A list of emails of users who have access to the document. If the document is visible to all Glean + * users, a list with only a single value of 'VISIBLE_TO_ALL'. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -50,7 +52,8 @@ public static Builder builder() { /** - * A list of emails of users who have access to the document. If the document is visible to all Glean users, a list with only a single value of 'VISIBLE_TO_ALL'. + * A list of emails of users who have access to the document. If the document is visible to all Glean + * users, a list with only a single value of 'VISIBLE_TO_ALL'. */ public GetDocPermissionsResponse withAllowedUserEmails(List allowedUserEmails) { Utils.checkNotNull(allowedUserEmails, "allowedUserEmails"); @@ -60,7 +63,8 @@ public GetDocPermissionsResponse withAllowedUserEmails(List allowedUserE /** - * A list of emails of users who have access to the document. If the document is visible to all Glean users, a list with only a single value of 'VISIBLE_TO_ALL'. + * A list of emails of users who have access to the document. If the document is visible to all Glean + * users, a list with only a single value of 'VISIBLE_TO_ALL'. */ public GetDocPermissionsResponse withAllowedUserEmails(Optional> allowedUserEmails) { Utils.checkNotNull(allowedUserEmails, "allowedUserEmails"); @@ -104,7 +108,8 @@ private Builder() { /** - * A list of emails of users who have access to the document. If the document is visible to all Glean users, a list with only a single value of 'VISIBLE_TO_ALL'. + * A list of emails of users who have access to the document. If the document is visible to all Glean + * users, a list with only a single value of 'VISIBLE_TO_ALL'. */ public Builder allowedUserEmails(List allowedUserEmails) { Utils.checkNotNull(allowedUserEmails, "allowedUserEmails"); @@ -113,7 +118,8 @@ public Builder allowedUserEmails(List allowedUserEmails) { } /** - * A list of emails of users who have access to the document. If the document is visible to all Glean users, a list with only a single value of 'VISIBLE_TO_ALL'. + * A list of emails of users who have access to the document. If the document is visible to all Glean + * users, a list with only a single value of 'VISIBLE_TO_ALL'. */ public Builder allowedUserEmails(Optional> allowedUserEmails) { Utils.checkNotNull(allowedUserEmails, "allowedUserEmails"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/GetDocumentsByFacetsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/GetDocumentsByFacetsRequest.java index e97c0911..4cb0d2ff 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/GetDocumentsByFacetsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/GetDocumentsByFacetsRequest.java @@ -25,13 +25,15 @@ public class GetDocumentsByFacetsRequest { private Optional> datasourcesFilter; /** - * A list of facet filter sets that will be OR'ed together. An AND is assumed between different filters in each set. + * A list of facet filter sets that will be OR'ed together. An AND is assumed between different filters + * in each set. */ @JsonProperty("filterSets") private List filterSets; /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor") @@ -65,7 +67,8 @@ public Optional> datasourcesFilter() { } /** - * A list of facet filter sets that will be OR'ed together. An AND is assumed between different filters in each set. + * A list of facet filter sets that will be OR'ed together. An AND is assumed between different filters + * in each set. */ @JsonIgnore public List filterSets() { @@ -73,7 +76,8 @@ public List filterSets() { } /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ @JsonIgnore public Optional cursor() { @@ -105,7 +109,8 @@ public GetDocumentsByFacetsRequest withDatasourcesFilter(Optional filterSets) { Utils.checkNotNull(filterSets, "filterSets"); @@ -114,7 +119,8 @@ public GetDocumentsByFacetsRequest withFilterSets(List filterSet } /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public GetDocumentsByFacetsRequest withCursor(String cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -124,7 +130,8 @@ public GetDocumentsByFacetsRequest withCursor(String cursor) { /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public GetDocumentsByFacetsRequest withCursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -195,7 +202,8 @@ public Builder datasourcesFilter(Optional> datasourcesFil /** - * A list of facet filter sets that will be OR'ed together. An AND is assumed between different filters in each set. + * A list of facet filter sets that will be OR'ed together. An AND is assumed between different filters + * in each set. */ public Builder filterSets(List filterSets) { Utils.checkNotNull(filterSets, "filterSets"); @@ -205,7 +213,8 @@ public Builder filterSets(List filterSets) { /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public Builder cursor(String cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -214,7 +223,8 @@ public Builder cursor(String cursor) { } /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public Builder cursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/GetDocumentsByFacetsResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/GetDocumentsByFacetsResponse.java index f8fd55fe..a621527c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/GetDocumentsByFacetsResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/GetDocumentsByFacetsResponse.java @@ -33,7 +33,8 @@ public class GetDocumentsByFacetsResponse { private Optional hasMoreResults; /** - * Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. + * Cursor that indicates the start of the next page of results. To be passed in "more" requests for + * this query. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor") @@ -74,7 +75,8 @@ public Optional hasMoreResults() { } /** - * Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. + * Cursor that indicates the start of the next page of results. To be passed in "more" requests for + * this query. */ @JsonIgnore public Optional cursor() { @@ -125,7 +127,8 @@ public GetDocumentsByFacetsResponse withHasMoreResults(Optional hasMore } /** - * Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. + * Cursor that indicates the start of the next page of results. To be passed in "more" requests for + * this query. */ public GetDocumentsByFacetsResponse withCursor(String cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -135,7 +138,8 @@ public GetDocumentsByFacetsResponse withCursor(String cursor) { /** - * Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. + * Cursor that indicates the start of the next page of results. To be passed in "more" requests for + * this query. */ public GetDocumentsByFacetsResponse withCursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -225,7 +229,8 @@ public Builder hasMoreResults(Optional hasMoreResults) { /** - * Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. + * Cursor that indicates the start of the next page of results. To be passed in "more" requests for + * this query. */ public Builder cursor(String cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -234,7 +239,8 @@ public Builder cursor(String cursor) { } /** - * Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. + * Cursor that indicates the start of the next page of results. To be passed in "more" requests for + * this query. */ public Builder cursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexDocumentRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexDocumentRequest.java index d0fc2e8b..e5ee532e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexDocumentRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexDocumentRequest.java @@ -21,7 +21,8 @@ */ public class IndexDocumentRequest { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") @@ -49,7 +50,8 @@ public IndexDocumentRequest( } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonIgnore public Optional version() { @@ -70,7 +72,8 @@ public static Builder builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public IndexDocumentRequest withVersion(long version) { Utils.checkNotNull(version, "version"); @@ -80,7 +83,8 @@ public IndexDocumentRequest withVersion(long version) { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public IndexDocumentRequest withVersion(Optional version) { Utils.checkNotNull(version, "version"); @@ -137,7 +141,8 @@ private Builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(long version) { Utils.checkNotNull(version, "version"); @@ -146,7 +151,8 @@ public Builder version(long version) { } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(Optional version) { Utils.checkNotNull(version, "version"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexGroupRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexGroupRequest.java index 4681ac32..71ad0f21 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexGroupRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexGroupRequest.java @@ -21,7 +21,8 @@ */ public class IndexGroupRequest { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") @@ -59,7 +60,8 @@ public IndexGroupRequest( } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonIgnore public Optional version() { @@ -88,7 +90,8 @@ public static Builder builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public IndexGroupRequest withVersion(long version) { Utils.checkNotNull(version, "version"); @@ -98,7 +101,8 @@ public IndexGroupRequest withVersion(long version) { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public IndexGroupRequest withVersion(Optional version) { Utils.checkNotNull(version, "version"); @@ -168,7 +172,8 @@ private Builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(long version) { Utils.checkNotNull(version, "version"); @@ -177,7 +182,8 @@ public Builder version(long version) { } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(Optional version) { Utils.checkNotNull(version, "version"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexMembershipRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexMembershipRequest.java index d56a5677..829caf98 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexMembershipRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexMembershipRequest.java @@ -21,7 +21,8 @@ */ public class IndexMembershipRequest { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") @@ -34,7 +35,8 @@ public class IndexMembershipRequest { private String datasource; /** - * describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. + * describes the membership row of a group. Only one of memberUserId and memberGroupName can be + * specified. */ @JsonProperty("membership") private DatasourceMembershipDefinition membership; @@ -59,7 +61,8 @@ public IndexMembershipRequest( } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonIgnore public Optional version() { @@ -75,7 +78,8 @@ public String datasource() { } /** - * describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. + * describes the membership row of a group. Only one of memberUserId and memberGroupName can be + * specified. */ @JsonIgnore public DatasourceMembershipDefinition membership() { @@ -88,7 +92,8 @@ public static Builder builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public IndexMembershipRequest withVersion(long version) { Utils.checkNotNull(version, "version"); @@ -98,7 +103,8 @@ public IndexMembershipRequest withVersion(long version) { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public IndexMembershipRequest withVersion(Optional version) { Utils.checkNotNull(version, "version"); @@ -116,7 +122,8 @@ public IndexMembershipRequest withDatasource(String datasource) { } /** - * describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. + * describes the membership row of a group. Only one of memberUserId and memberGroupName can be + * specified. */ public IndexMembershipRequest withMembership(DatasourceMembershipDefinition membership) { Utils.checkNotNull(membership, "membership"); @@ -168,7 +175,8 @@ private Builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(long version) { Utils.checkNotNull(version, "version"); @@ -177,7 +185,8 @@ public Builder version(long version) { } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(Optional version) { Utils.checkNotNull(version, "version"); @@ -197,7 +206,8 @@ public Builder datasource(String datasource) { /** - * describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. + * describes the membership row of a group. Only one of memberUserId and memberGroupName can be + * specified. */ public Builder membership(DatasourceMembershipDefinition membership) { Utils.checkNotNull(membership, "membership"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexUserRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexUserRequest.java index 60bb37a2..5fd9df51 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexUserRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexUserRequest.java @@ -21,7 +21,8 @@ */ public class IndexUserRequest { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") @@ -59,7 +60,8 @@ public IndexUserRequest( } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ @JsonIgnore public Optional version() { @@ -88,7 +90,8 @@ public static Builder builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public IndexUserRequest withVersion(long version) { Utils.checkNotNull(version, "version"); @@ -98,7 +101,8 @@ public IndexUserRequest withVersion(long version) { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public IndexUserRequest withVersion(Optional version) { Utils.checkNotNull(version, "version"); @@ -168,7 +172,8 @@ private Builder() { /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(long version) { Utils.checkNotNull(version, "version"); @@ -177,7 +182,8 @@ public Builder version(long version) { } /** - * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. + * Version number for document for optimistic concurrency control. If absent or 0 then no version + * checks are done. */ public Builder version(Optional version) { Utils.checkNotNull(version, "version"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexingShortcut.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexingShortcut.java index b110b33f..98d777b8 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexingShortcut.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/IndexingShortcut.java @@ -18,7 +18,8 @@ public class IndexingShortcut { /** - * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` and the shortened URL is `go/abc`, then `abc` is the inputAlias. + * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` + * and the shortened URL is `go/abc`, then `abc` is the inputAlias. */ @JsonProperty("inputAlias") private String inputAlias; @@ -118,7 +119,8 @@ public IndexingShortcut( } /** - * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` and the shortened URL is `go/abc`, then `abc` is the inputAlias. + * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` + * and the shortened URL is `go/abc`, then `abc` is the inputAlias. */ @JsonIgnore public String inputAlias() { @@ -195,7 +197,8 @@ public static Builder builder() { /** - * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` and the shortened URL is `go/abc`, then `abc` is the inputAlias. + * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` + * and the shortened URL is `go/abc`, then `abc` is the inputAlias. */ public IndexingShortcut withInputAlias(String inputAlias) { Utils.checkNotNull(inputAlias, "inputAlias"); @@ -405,7 +408,8 @@ private Builder() { /** - * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` and the shortened URL is `go/abc`, then `abc` is the inputAlias. + * link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` + * and the shortened URL is `go/abc`, then `abc` is the inputAlias. */ public Builder inputAlias(String inputAlias) { Utils.checkNotNull(inputAlias, "inputAlias"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAssistantRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAssistantRequest.java new file mode 100644 index 00000000..15543bb5 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAssistantRequest.java @@ -0,0 +1,175 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Optional; + + +public class InsightsAssistantRequest { + /** + * Departments for which Insights are requested. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("departments") + private Optional> departments; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("dayRange") + private Optional dayRange; + + @JsonCreator + public InsightsAssistantRequest( + @JsonProperty("departments") Optional> departments, + @JsonProperty("dayRange") Optional dayRange) { + Utils.checkNotNull(departments, "departments"); + Utils.checkNotNull(dayRange, "dayRange"); + this.departments = departments; + this.dayRange = dayRange; + } + + public InsightsAssistantRequest() { + this(Optional.empty(), Optional.empty()); + } + + /** + * Departments for which Insights are requested. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> departments() { + return (Optional>) departments; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional dayRange() { + return (Optional) dayRange; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Departments for which Insights are requested. + */ + public InsightsAssistantRequest withDepartments(List departments) { + Utils.checkNotNull(departments, "departments"); + this.departments = Optional.ofNullable(departments); + return this; + } + + + /** + * Departments for which Insights are requested. + */ + public InsightsAssistantRequest withDepartments(Optional> departments) { + Utils.checkNotNull(departments, "departments"); + this.departments = departments; + return this; + } + + public InsightsAssistantRequest withDayRange(Period dayRange) { + Utils.checkNotNull(dayRange, "dayRange"); + this.dayRange = Optional.ofNullable(dayRange); + return this; + } + + + public InsightsAssistantRequest withDayRange(Optional dayRange) { + Utils.checkNotNull(dayRange, "dayRange"); + this.dayRange = dayRange; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InsightsAssistantRequest other = (InsightsAssistantRequest) o; + return + Utils.enhancedDeepEquals(this.departments, other.departments) && + Utils.enhancedDeepEquals(this.dayRange, other.dayRange); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + departments, dayRange); + } + + @Override + public String toString() { + return Utils.toString(InsightsAssistantRequest.class, + "departments", departments, + "dayRange", dayRange); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional> departments = Optional.empty(); + + private Optional dayRange = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Departments for which Insights are requested. + */ + public Builder departments(List departments) { + Utils.checkNotNull(departments, "departments"); + this.departments = Optional.ofNullable(departments); + return this; + } + + /** + * Departments for which Insights are requested. + */ + public Builder departments(Optional> departments) { + Utils.checkNotNull(departments, "departments"); + this.departments = departments; + return this; + } + + + public Builder dayRange(Period dayRange) { + Utils.checkNotNull(dayRange, "dayRange"); + this.dayRange = Optional.ofNullable(dayRange); + return this; + } + + public Builder dayRange(Optional dayRange) { + Utils.checkNotNull(dayRange, "dayRange"); + this.dayRange = dayRange; + return this; + } + + public InsightsAssistantRequest build() { + + return new InsightsAssistantRequest( + departments, dayRange); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsOverviewRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsOverviewRequest.java new file mode 100644 index 00000000..20a0d8f2 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsOverviewRequest.java @@ -0,0 +1,175 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.components; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Optional; + + +public class InsightsOverviewRequest { + /** + * Departments for which Insights are requested. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("departments") + private Optional> departments; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("dayRange") + private Optional dayRange; + + @JsonCreator + public InsightsOverviewRequest( + @JsonProperty("departments") Optional> departments, + @JsonProperty("dayRange") Optional dayRange) { + Utils.checkNotNull(departments, "departments"); + Utils.checkNotNull(dayRange, "dayRange"); + this.departments = departments; + this.dayRange = dayRange; + } + + public InsightsOverviewRequest() { + this(Optional.empty(), Optional.empty()); + } + + /** + * Departments for which Insights are requested. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> departments() { + return (Optional>) departments; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional dayRange() { + return (Optional) dayRange; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Departments for which Insights are requested. + */ + public InsightsOverviewRequest withDepartments(List departments) { + Utils.checkNotNull(departments, "departments"); + this.departments = Optional.ofNullable(departments); + return this; + } + + + /** + * Departments for which Insights are requested. + */ + public InsightsOverviewRequest withDepartments(Optional> departments) { + Utils.checkNotNull(departments, "departments"); + this.departments = departments; + return this; + } + + public InsightsOverviewRequest withDayRange(Period dayRange) { + Utils.checkNotNull(dayRange, "dayRange"); + this.dayRange = Optional.ofNullable(dayRange); + return this; + } + + + public InsightsOverviewRequest withDayRange(Optional dayRange) { + Utils.checkNotNull(dayRange, "dayRange"); + this.dayRange = dayRange; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InsightsOverviewRequest other = (InsightsOverviewRequest) o; + return + Utils.enhancedDeepEquals(this.departments, other.departments) && + Utils.enhancedDeepEquals(this.dayRange, other.dayRange); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + departments, dayRange); + } + + @Override + public String toString() { + return Utils.toString(InsightsOverviewRequest.class, + "departments", departments, + "dayRange", dayRange); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional> departments = Optional.empty(); + + private Optional dayRange = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Departments for which Insights are requested. + */ + public Builder departments(List departments) { + Utils.checkNotNull(departments, "departments"); + this.departments = Optional.ofNullable(departments); + return this; + } + + /** + * Departments for which Insights are requested. + */ + public Builder departments(Optional> departments) { + Utils.checkNotNull(departments, "departments"); + this.departments = departments; + return this; + } + + + public Builder dayRange(Period dayRange) { + Utils.checkNotNull(dayRange, "dayRange"); + this.dayRange = Optional.ofNullable(dayRange); + return this; + } + + public Builder dayRange(Optional dayRange) { + Utils.checkNotNull(dayRange, "dayRange"); + this.dayRange = dayRange; + return this; + } + + public InsightsOverviewRequest build() { + + return new InsightsOverviewRequest( + departments, dayRange); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequest.java index 9e09cb57..7ddea7c9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequest.java @@ -10,6 +10,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Boolean; +import java.lang.Deprecated; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; @@ -18,17 +19,46 @@ public class InsightsRequest { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("overviewRequest") + private Optional overviewRequest; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("assistantRequest") + private Optional assistantRequest; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("agentsRequest") + private Optional agentsRequest; + + /** + * If true, suppresses the generation of per-user Insights in the response. Default is false. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("disablePerUserInsights") + private Optional disablePerUserInsights; + /** * Categories of data requested. Request can include single or multiple types. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ + @JsonInclude(Include.NON_ABSENT) @JsonProperty("categories") - private List categories; + @Deprecated + private Optional> categories; /** * Departments that the data is requested for. If this is empty, corresponds to whole company. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("departments") + @Deprecated private Optional> departments; @@ -47,62 +77,101 @@ public class InsightsRequest { private Optional agentsRequestOptions; /** - * Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. + * Types of activity that should count in the definition of an Assistant Active User. Affects only + * insights for AI category. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("assistantActivityTypes") + @Deprecated private Optional> assistantActivityTypes; - /** - * If true, suppresses the generation of per-user Insights in the response. Default is false. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("disablePerUserInsights") - private Optional disablePerUserInsights; - @JsonCreator public InsightsRequest( - @JsonProperty("categories") List categories, + @JsonProperty("overviewRequest") Optional overviewRequest, + @JsonProperty("assistantRequest") Optional assistantRequest, + @JsonProperty("agentsRequest") Optional agentsRequest, + @JsonProperty("disablePerUserInsights") Optional disablePerUserInsights, + @JsonProperty("categories") Optional> categories, @JsonProperty("departments") Optional> departments, @JsonProperty("dayRange") Optional dayRange, @JsonProperty("aiAppRequestOptions") Optional aiAppRequestOptions, @JsonProperty("agentsRequestOptions") Optional agentsRequestOptions, - @JsonProperty("assistantActivityTypes") Optional> assistantActivityTypes, - @JsonProperty("disablePerUserInsights") Optional disablePerUserInsights) { + @JsonProperty("assistantActivityTypes") Optional> assistantActivityTypes) { + Utils.checkNotNull(overviewRequest, "overviewRequest"); + Utils.checkNotNull(assistantRequest, "assistantRequest"); + Utils.checkNotNull(agentsRequest, "agentsRequest"); + Utils.checkNotNull(disablePerUserInsights, "disablePerUserInsights"); Utils.checkNotNull(categories, "categories"); Utils.checkNotNull(departments, "departments"); Utils.checkNotNull(dayRange, "dayRange"); Utils.checkNotNull(aiAppRequestOptions, "aiAppRequestOptions"); Utils.checkNotNull(agentsRequestOptions, "agentsRequestOptions"); Utils.checkNotNull(assistantActivityTypes, "assistantActivityTypes"); - Utils.checkNotNull(disablePerUserInsights, "disablePerUserInsights"); + this.overviewRequest = overviewRequest; + this.assistantRequest = assistantRequest; + this.agentsRequest = agentsRequest; + this.disablePerUserInsights = disablePerUserInsights; this.categories = categories; this.departments = departments; this.dayRange = dayRange; this.aiAppRequestOptions = aiAppRequestOptions; this.agentsRequestOptions = agentsRequestOptions; this.assistantActivityTypes = assistantActivityTypes; - this.disablePerUserInsights = disablePerUserInsights; } - public InsightsRequest( - List categories) { - this(categories, Optional.empty(), Optional.empty(), + public InsightsRequest() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional overviewRequest() { + return (Optional) overviewRequest; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional assistantRequest() { + return (Optional) assistantRequest; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional agentsRequest() { + return (Optional) agentsRequest; + } + + /** + * If true, suppresses the generation of per-user Insights in the response. Default is false. + */ + @JsonIgnore + public Optional disablePerUserInsights() { + return disablePerUserInsights; + } + /** * Categories of data requested. Request can include single or multiple types. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ + @Deprecated + @SuppressWarnings("unchecked") @JsonIgnore - public List categories() { - return categories; + public Optional> categories() { + return (Optional>) categories; } /** * Departments that the data is requested for. If this is empty, corresponds to whole company. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ + @Deprecated @SuppressWarnings("unchecked") @JsonIgnore public Optional> departments() { @@ -128,31 +197,101 @@ public Optional agentsRequestOptions() { } /** - * Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. + * Types of activity that should count in the definition of an Assistant Active User. Affects only + * insights for AI category. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ + @Deprecated @SuppressWarnings("unchecked") @JsonIgnore public Optional> assistantActivityTypes() { return (Optional>) assistantActivityTypes; } + public static Builder builder() { + return new Builder(); + } + + + public InsightsRequest withOverviewRequest(InsightsOverviewRequest overviewRequest) { + Utils.checkNotNull(overviewRequest, "overviewRequest"); + this.overviewRequest = Optional.ofNullable(overviewRequest); + return this; + } + + + public InsightsRequest withOverviewRequest(Optional overviewRequest) { + Utils.checkNotNull(overviewRequest, "overviewRequest"); + this.overviewRequest = overviewRequest; + return this; + } + + public InsightsRequest withAssistantRequest(InsightsAssistantRequest assistantRequest) { + Utils.checkNotNull(assistantRequest, "assistantRequest"); + this.assistantRequest = Optional.ofNullable(assistantRequest); + return this; + } + + + public InsightsRequest withAssistantRequest(Optional assistantRequest) { + Utils.checkNotNull(assistantRequest, "assistantRequest"); + this.assistantRequest = assistantRequest; + return this; + } + + public InsightsRequest withAgentsRequest(AgentsInsightsV2Request agentsRequest) { + Utils.checkNotNull(agentsRequest, "agentsRequest"); + this.agentsRequest = Optional.ofNullable(agentsRequest); + return this; + } + + + public InsightsRequest withAgentsRequest(Optional agentsRequest) { + Utils.checkNotNull(agentsRequest, "agentsRequest"); + this.agentsRequest = agentsRequest; + return this; + } + /** * If true, suppresses the generation of per-user Insights in the response. Default is false. */ - @JsonIgnore - public Optional disablePerUserInsights() { - return disablePerUserInsights; + public InsightsRequest withDisablePerUserInsights(boolean disablePerUserInsights) { + Utils.checkNotNull(disablePerUserInsights, "disablePerUserInsights"); + this.disablePerUserInsights = Optional.ofNullable(disablePerUserInsights); + return this; } - public static Builder builder() { - return new Builder(); - } + /** + * If true, suppresses the generation of per-user Insights in the response. Default is false. + */ + public InsightsRequest withDisablePerUserInsights(Optional disablePerUserInsights) { + Utils.checkNotNull(disablePerUserInsights, "disablePerUserInsights"); + this.disablePerUserInsights = disablePerUserInsights; + return this; + } /** * Categories of data requested. Request can include single or multiple types. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ + @Deprecated public InsightsRequest withCategories(List categories) { + Utils.checkNotNull(categories, "categories"); + this.categories = Optional.ofNullable(categories); + return this; + } + + + /** + * Categories of data requested. Request can include single or multiple types. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public InsightsRequest withCategories(Optional> categories) { Utils.checkNotNull(categories, "categories"); this.categories = categories; return this; @@ -160,7 +299,10 @@ public InsightsRequest withCategories(List categories) /** * Departments that the data is requested for. If this is empty, corresponds to whole company. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ + @Deprecated public InsightsRequest withDepartments(List departments) { Utils.checkNotNull(departments, "departments"); this.departments = Optional.ofNullable(departments); @@ -170,7 +312,10 @@ public InsightsRequest withDepartments(List departments) { /** * Departments that the data is requested for. If this is empty, corresponds to whole company. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ + @Deprecated public InsightsRequest withDepartments(Optional> departments) { Utils.checkNotNull(departments, "departments"); this.departments = departments; @@ -217,8 +362,12 @@ public InsightsRequest withAgentsRequestOptions(Optional assistantActivityTypes) { Utils.checkNotNull(assistantActivityTypes, "assistantActivityTypes"); this.assistantActivityTypes = Optional.ofNullable(assistantActivityTypes); @@ -227,33 +376,18 @@ public InsightsRequest withAssistantActivityTypes(List as /** - * Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. + * Types of activity that should count in the definition of an Assistant Active User. Affects only + * insights for AI category. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ + @Deprecated public InsightsRequest withAssistantActivityTypes(Optional> assistantActivityTypes) { Utils.checkNotNull(assistantActivityTypes, "assistantActivityTypes"); this.assistantActivityTypes = assistantActivityTypes; return this; } - /** - * If true, suppresses the generation of per-user Insights in the response. Default is false. - */ - public InsightsRequest withDisablePerUserInsights(boolean disablePerUserInsights) { - Utils.checkNotNull(disablePerUserInsights, "disablePerUserInsights"); - this.disablePerUserInsights = Optional.ofNullable(disablePerUserInsights); - return this; - } - - - /** - * If true, suppresses the generation of per-user Insights in the response. Default is false. - */ - public InsightsRequest withDisablePerUserInsights(Optional disablePerUserInsights) { - Utils.checkNotNull(disablePerUserInsights, "disablePerUserInsights"); - this.disablePerUserInsights = disablePerUserInsights; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -264,40 +398,57 @@ public boolean equals(java.lang.Object o) { } InsightsRequest other = (InsightsRequest) o; return + Utils.enhancedDeepEquals(this.overviewRequest, other.overviewRequest) && + Utils.enhancedDeepEquals(this.assistantRequest, other.assistantRequest) && + Utils.enhancedDeepEquals(this.agentsRequest, other.agentsRequest) && + Utils.enhancedDeepEquals(this.disablePerUserInsights, other.disablePerUserInsights) && Utils.enhancedDeepEquals(this.categories, other.categories) && Utils.enhancedDeepEquals(this.departments, other.departments) && Utils.enhancedDeepEquals(this.dayRange, other.dayRange) && Utils.enhancedDeepEquals(this.aiAppRequestOptions, other.aiAppRequestOptions) && Utils.enhancedDeepEquals(this.agentsRequestOptions, other.agentsRequestOptions) && - Utils.enhancedDeepEquals(this.assistantActivityTypes, other.assistantActivityTypes) && - Utils.enhancedDeepEquals(this.disablePerUserInsights, other.disablePerUserInsights); + Utils.enhancedDeepEquals(this.assistantActivityTypes, other.assistantActivityTypes); } @Override public int hashCode() { return Utils.enhancedHash( - categories, departments, dayRange, - aiAppRequestOptions, agentsRequestOptions, assistantActivityTypes, - disablePerUserInsights); + overviewRequest, assistantRequest, agentsRequest, + disablePerUserInsights, categories, departments, + dayRange, aiAppRequestOptions, agentsRequestOptions, + assistantActivityTypes); } @Override public String toString() { return Utils.toString(InsightsRequest.class, + "overviewRequest", overviewRequest, + "assistantRequest", assistantRequest, + "agentsRequest", agentsRequest, + "disablePerUserInsights", disablePerUserInsights, "categories", categories, "departments", departments, "dayRange", dayRange, "aiAppRequestOptions", aiAppRequestOptions, "agentsRequestOptions", agentsRequestOptions, - "assistantActivityTypes", assistantActivityTypes, - "disablePerUserInsights", disablePerUserInsights); + "assistantActivityTypes", assistantActivityTypes); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private List categories; + private Optional overviewRequest = Optional.empty(); + + private Optional assistantRequest = Optional.empty(); + private Optional agentsRequest = Optional.empty(); + + private Optional disablePerUserInsights = Optional.empty(); + + @Deprecated + private Optional> categories = Optional.empty(); + + @Deprecated private Optional> departments = Optional.empty(); private Optional dayRange = Optional.empty(); @@ -306,19 +457,91 @@ public final static class Builder { private Optional agentsRequestOptions = Optional.empty(); + @Deprecated private Optional> assistantActivityTypes = Optional.empty(); - private Optional disablePerUserInsights = Optional.empty(); - private Builder() { // force use of static builder() method } + public Builder overviewRequest(InsightsOverviewRequest overviewRequest) { + Utils.checkNotNull(overviewRequest, "overviewRequest"); + this.overviewRequest = Optional.ofNullable(overviewRequest); + return this; + } + + public Builder overviewRequest(Optional overviewRequest) { + Utils.checkNotNull(overviewRequest, "overviewRequest"); + this.overviewRequest = overviewRequest; + return this; + } + + + public Builder assistantRequest(InsightsAssistantRequest assistantRequest) { + Utils.checkNotNull(assistantRequest, "assistantRequest"); + this.assistantRequest = Optional.ofNullable(assistantRequest); + return this; + } + + public Builder assistantRequest(Optional assistantRequest) { + Utils.checkNotNull(assistantRequest, "assistantRequest"); + this.assistantRequest = assistantRequest; + return this; + } + + + public Builder agentsRequest(AgentsInsightsV2Request agentsRequest) { + Utils.checkNotNull(agentsRequest, "agentsRequest"); + this.agentsRequest = Optional.ofNullable(agentsRequest); + return this; + } + + public Builder agentsRequest(Optional agentsRequest) { + Utils.checkNotNull(agentsRequest, "agentsRequest"); + this.agentsRequest = agentsRequest; + return this; + } + + + /** + * If true, suppresses the generation of per-user Insights in the response. Default is false. + */ + public Builder disablePerUserInsights(boolean disablePerUserInsights) { + Utils.checkNotNull(disablePerUserInsights, "disablePerUserInsights"); + this.disablePerUserInsights = Optional.ofNullable(disablePerUserInsights); + return this; + } + + /** + * If true, suppresses the generation of per-user Insights in the response. Default is false. + */ + public Builder disablePerUserInsights(Optional disablePerUserInsights) { + Utils.checkNotNull(disablePerUserInsights, "disablePerUserInsights"); + this.disablePerUserInsights = disablePerUserInsights; + return this; + } + + /** * Categories of data requested. Request can include single or multiple types. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ + @Deprecated public Builder categories(List categories) { + Utils.checkNotNull(categories, "categories"); + this.categories = Optional.ofNullable(categories); + return this; + } + + /** + * Categories of data requested. Request can include single or multiple types. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public Builder categories(Optional> categories) { Utils.checkNotNull(categories, "categories"); this.categories = categories; return this; @@ -327,7 +550,10 @@ public Builder categories(List categories) { /** * Departments that the data is requested for. If this is empty, corresponds to whole company. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ + @Deprecated public Builder departments(List departments) { Utils.checkNotNull(departments, "departments"); this.departments = Optional.ofNullable(departments); @@ -336,7 +562,10 @@ public Builder departments(List departments) { /** * Departments that the data is requested for. If this is empty, corresponds to whole company. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ + @Deprecated public Builder departments(Optional> departments) { Utils.checkNotNull(departments, "departments"); this.departments = departments; @@ -384,8 +613,12 @@ public Builder agentsRequestOptions(Optional assistantActivityTypes) { Utils.checkNotNull(assistantActivityTypes, "assistantActivityTypes"); this.assistantActivityTypes = Optional.ofNullable(assistantActivityTypes); @@ -393,39 +626,25 @@ public Builder assistantActivityTypes(List assistantActiv } /** - * Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. + * Types of activity that should count in the definition of an Assistant Active User. Affects only + * insights for AI category. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ + @Deprecated public Builder assistantActivityTypes(Optional> assistantActivityTypes) { Utils.checkNotNull(assistantActivityTypes, "assistantActivityTypes"); this.assistantActivityTypes = assistantActivityTypes; return this; } - - /** - * If true, suppresses the generation of per-user Insights in the response. Default is false. - */ - public Builder disablePerUserInsights(boolean disablePerUserInsights) { - Utils.checkNotNull(disablePerUserInsights, "disablePerUserInsights"); - this.disablePerUserInsights = Optional.ofNullable(disablePerUserInsights); - return this; - } - - /** - * If true, suppresses the generation of per-user Insights in the response. Default is false. - */ - public Builder disablePerUserInsights(Optional disablePerUserInsights) { - Utils.checkNotNull(disablePerUserInsights, "disablePerUserInsights"); - this.disablePerUserInsights = disablePerUserInsights; - return this; - } - public InsightsRequest build() { return new InsightsRequest( - categories, departments, dayRange, - aiAppRequestOptions, agentsRequestOptions, assistantActivityTypes, - disablePerUserInsights); + overviewRequest, assistantRequest, agentsRequest, + disablePerUserInsights, categories, departments, + dayRange, aiAppRequestOptions, agentsRequestOptions, + assistantActivityTypes); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequestCategory.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequestCategory.java index dd737f04..3d29c541 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequestCategory.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequestCategory.java @@ -10,6 +10,9 @@ public enum InsightsRequestCategory { AGENTS("AGENTS"), + AGENT_USERS("AGENT_USERS"), + TOP_AGENTS("TOP_AGENTS"), + AGENTS_USAGE_BY_DEPARTMENT("AGENTS_USAGE_BY_DEPARTMENT"), AI("AI"), AI_APPS("AI_APPS"), ANNOUNCEMENTS("ANNOUNCEMENTS"), diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ListEntitiesRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ListEntitiesRequest.java index 894e6227..9a26f911 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ListEntitiesRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ListEntitiesRequest.java @@ -45,7 +45,8 @@ public class ListEntitiesRequest { private Optional datasource; /** - * A query string to search for entities that each entity in the response must conform to. An empty query does not filter any entities. + * A query string to search for entities that each entity in the response must conform to. An empty + * query does not filter any entities. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("query") @@ -66,7 +67,8 @@ public class ListEntitiesRequest { private Optional pageSize; /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor") @@ -157,7 +159,8 @@ public Optional datasource() { } /** - * A query string to search for entities that each entity in the response must conform to. An empty query does not filter any entities. + * A query string to search for entities that each entity in the response must conform to. An empty + * query does not filter any entities. */ @JsonIgnore public Optional query() { @@ -182,7 +185,8 @@ public Optional pageSize() { } /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ @JsonIgnore public Optional cursor() { @@ -276,7 +280,8 @@ public ListEntitiesRequest withDatasource(Optional datasource) { } /** - * A query string to search for entities that each entity in the response must conform to. An empty query does not filter any entities. + * A query string to search for entities that each entity in the response must conform to. An empty + * query does not filter any entities. */ public ListEntitiesRequest withQuery(String query) { Utils.checkNotNull(query, "query"); @@ -286,7 +291,8 @@ public ListEntitiesRequest withQuery(String query) { /** - * A query string to search for entities that each entity in the response must conform to. An empty query does not filter any entities. + * A query string to search for entities that each entity in the response must conform to. An empty + * query does not filter any entities. */ public ListEntitiesRequest withQuery(Optional query) { Utils.checkNotNull(query, "query"); @@ -333,7 +339,8 @@ public ListEntitiesRequest withPageSize(Optional pageSize) { } /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public ListEntitiesRequest withCursor(String cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -343,7 +350,8 @@ public ListEntitiesRequest withCursor(String cursor) { /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public ListEntitiesRequest withCursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -528,7 +536,8 @@ public Builder datasource(Optional datasource) { /** - * A query string to search for entities that each entity in the response must conform to. An empty query does not filter any entities. + * A query string to search for entities that each entity in the response must conform to. An empty + * query does not filter any entities. */ public Builder query(String query) { Utils.checkNotNull(query, "query"); @@ -537,7 +546,8 @@ public Builder query(String query) { } /** - * A query string to search for entities that each entity in the response must conform to. An empty query does not filter any entities. + * A query string to search for entities that each entity in the response must conform to. An empty + * query does not filter any entities. */ public Builder query(Optional query) { Utils.checkNotNull(query, "query"); @@ -585,7 +595,8 @@ public Builder pageSize(Optional pageSize) { /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public Builder cursor(String cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -594,7 +605,8 @@ public Builder cursor(String cursor) { } /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public Builder cursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ListEntitiesResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ListEntitiesResponse.java index 393501c5..dfe6a913 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ListEntitiesResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ListEntitiesResponse.java @@ -40,7 +40,8 @@ public class ListEntitiesResponse { private Optional> facetResults; /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor") @@ -136,7 +137,8 @@ public Optional> facetResults() { } /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ @JsonIgnore public Optional cursor() { @@ -235,7 +237,8 @@ public ListEntitiesResponse withFacetResults(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -451,7 +455,8 @@ public Builder facetResults(Optional> facetResults) /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public Builder cursor(String cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -460,7 +465,8 @@ public Builder cursor(String cursor) { } /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public Builder cursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ListShortcutsPaginatedRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ListShortcutsPaginatedRequest.java index ed0cca24..f26ef87e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ListShortcutsPaginatedRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ListShortcutsPaginatedRequest.java @@ -30,14 +30,16 @@ public class ListShortcutsPaginatedRequest { private long pageSize; /** - * A token specifying the position in the overall results to start at. Received from the endpoint and iterated back. Currently being used as page no (as we implement offset pagination) + * A token specifying the position in the overall results to start at. Received from the endpoint and + * iterated back. Currently being used as page no (as we implement offset pagination) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor") private Optional cursor; /** - * A list of filters for the query. An AND is assumed between different filters. We support filters on Go Link name, author, department and type. + * A list of filters for the query. An AND is assumed between different filters. We support filters on + * Go Link name, author, department and type. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("filters") @@ -49,7 +51,8 @@ public class ListShortcutsPaginatedRequest { private Optional sort; /** - * Search query that should be a substring in atleast one of the fields (alias , inputAlias, destinationUrl, description). Empty query does not filter shortcuts. + * Search query that should be a substring in atleast one of the fields (alias , inputAlias, + * destinationUrl, description). Empty query does not filter shortcuts. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("query") @@ -98,7 +101,8 @@ public long pageSize() { } /** - * A token specifying the position in the overall results to start at. Received from the endpoint and iterated back. Currently being used as page no (as we implement offset pagination) + * A token specifying the position in the overall results to start at. Received from the endpoint and + * iterated back. Currently being used as page no (as we implement offset pagination) */ @JsonIgnore public Optional cursor() { @@ -106,7 +110,8 @@ public Optional cursor() { } /** - * A list of filters for the query. An AND is assumed between different filters. We support filters on Go Link name, author, department and type. + * A list of filters for the query. An AND is assumed between different filters. We support filters on + * Go Link name, author, department and type. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -121,7 +126,8 @@ public Optional sort() { } /** - * Search query that should be a substring in atleast one of the fields (alias , inputAlias, destinationUrl, description). Empty query does not filter shortcuts. + * Search query that should be a substring in atleast one of the fields (alias , inputAlias, + * destinationUrl, description). Empty query does not filter shortcuts. */ @JsonIgnore public Optional query() { @@ -159,7 +165,8 @@ public ListShortcutsPaginatedRequest withPageSize(long pageSize) { } /** - * A token specifying the position in the overall results to start at. Received from the endpoint and iterated back. Currently being used as page no (as we implement offset pagination) + * A token specifying the position in the overall results to start at. Received from the endpoint and + * iterated back. Currently being used as page no (as we implement offset pagination) */ public ListShortcutsPaginatedRequest withCursor(String cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -169,7 +176,8 @@ public ListShortcutsPaginatedRequest withCursor(String cursor) { /** - * A token specifying the position in the overall results to start at. Received from the endpoint and iterated back. Currently being used as page no (as we implement offset pagination) + * A token specifying the position in the overall results to start at. Received from the endpoint and + * iterated back. Currently being used as page no (as we implement offset pagination) */ public ListShortcutsPaginatedRequest withCursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -178,7 +186,8 @@ public ListShortcutsPaginatedRequest withCursor(Optional cursor) { } /** - * A list of filters for the query. An AND is assumed between different filters. We support filters on Go Link name, author, department and type. + * A list of filters for the query. An AND is assumed between different filters. We support filters on + * Go Link name, author, department and type. */ public ListShortcutsPaginatedRequest withFilters(List filters) { Utils.checkNotNull(filters, "filters"); @@ -188,7 +197,8 @@ public ListShortcutsPaginatedRequest withFilters(List filters) { /** - * A list of filters for the query. An AND is assumed between different filters. We support filters on Go Link name, author, department and type. + * A list of filters for the query. An AND is assumed between different filters. We support filters on + * Go Link name, author, department and type. */ public ListShortcutsPaginatedRequest withFilters(Optional> filters) { Utils.checkNotNull(filters, "filters"); @@ -210,7 +220,8 @@ public ListShortcutsPaginatedRequest withSort(Optional so } /** - * Search query that should be a substring in atleast one of the fields (alias , inputAlias, destinationUrl, description). Empty query does not filter shortcuts. + * Search query that should be a substring in atleast one of the fields (alias , inputAlias, + * destinationUrl, description). Empty query does not filter shortcuts. */ public ListShortcutsPaginatedRequest withQuery(String query) { Utils.checkNotNull(query, "query"); @@ -220,7 +231,8 @@ public ListShortcutsPaginatedRequest withQuery(String query) { /** - * Search query that should be a substring in atleast one of the fields (alias , inputAlias, destinationUrl, description). Empty query does not filter shortcuts. + * Search query that should be a substring in atleast one of the fields (alias , inputAlias, + * destinationUrl, description). Empty query does not filter shortcuts. */ public ListShortcutsPaginatedRequest withQuery(Optional query) { Utils.checkNotNull(query, "query"); @@ -311,7 +323,8 @@ public Builder pageSize(long pageSize) { /** - * A token specifying the position in the overall results to start at. Received from the endpoint and iterated back. Currently being used as page no (as we implement offset pagination) + * A token specifying the position in the overall results to start at. Received from the endpoint and + * iterated back. Currently being used as page no (as we implement offset pagination) */ public Builder cursor(String cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -320,7 +333,8 @@ public Builder cursor(String cursor) { } /** - * A token specifying the position in the overall results to start at. Received from the endpoint and iterated back. Currently being used as page no (as we implement offset pagination) + * A token specifying the position in the overall results to start at. Received from the endpoint and + * iterated back. Currently being used as page no (as we implement offset pagination) */ public Builder cursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -330,7 +344,8 @@ public Builder cursor(Optional cursor) { /** - * A list of filters for the query. An AND is assumed between different filters. We support filters on Go Link name, author, department and type. + * A list of filters for the query. An AND is assumed between different filters. We support filters on + * Go Link name, author, department and type. */ public Builder filters(List filters) { Utils.checkNotNull(filters, "filters"); @@ -339,7 +354,8 @@ public Builder filters(List filters) { } /** - * A list of filters for the query. An AND is assumed between different filters. We support filters on Go Link name, author, department and type. + * A list of filters for the query. An AND is assumed between different filters. We support filters on + * Go Link name, author, department and type. */ public Builder filters(Optional> filters) { Utils.checkNotNull(filters, "filters"); @@ -362,7 +378,8 @@ public Builder sort(Optional sort) { /** - * Search query that should be a substring in atleast one of the fields (alias , inputAlias, destinationUrl, description). Empty query does not filter shortcuts. + * Search query that should be a substring in atleast one of the fields (alias , inputAlias, + * destinationUrl, description). Empty query does not filter shortcuts. */ public Builder query(String query) { Utils.checkNotNull(query, "query"); @@ -371,7 +388,8 @@ public Builder query(String query) { } /** - * Search query that should be a substring in atleast one of the fields (alias , inputAlias, destinationUrl, description). Empty query does not filter shortcuts. + * Search query that should be a substring in atleast one of the fields (alias , inputAlias, + * destinationUrl, description). Empty query does not filter shortcuts. */ public Builder query(Optional query) { Utils.checkNotNull(query, "query"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ManualFeedbackInfo.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ManualFeedbackInfo.java index d101134b..ec5024dd 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ManualFeedbackInfo.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ManualFeedbackInfo.java @@ -68,14 +68,16 @@ public class ManualFeedbackInfo { private Optional query; /** - * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the vowels are replaced with special characters. For search feedback events only. + * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the + * vowels are replaced with special characters. For search feedback events only. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("obscuredQuery") private Optional obscuredQuery; /** - * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search feedback events only. + * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search + * feedback events only. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("activeTab") @@ -124,7 +126,8 @@ public class ManualFeedbackInfo { private Optional vote; /** - * A rating associated with the user feedback. The value will be between one and the maximum given by ratingScale, inclusive. + * A rating associated with the user feedback. The value will be between one and the maximum given by + * ratingScale, inclusive. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("rating") @@ -138,7 +141,9 @@ public class ManualFeedbackInfo { private Optional ratingKey; /** - * The scale of comparison for a rating associated with the feedback. Rating values start from one and go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. + * The scale of comparison for a rating associated with the feedback. Rating values start from one and + * go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will + * have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ratingScale") @@ -266,7 +271,8 @@ public Optional query() { } /** - * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the vowels are replaced with special characters. For search feedback events only. + * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the + * vowels are replaced with special characters. For search feedback events only. */ @JsonIgnore public Optional obscuredQuery() { @@ -274,7 +280,8 @@ public Optional obscuredQuery() { } /** - * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search feedback events only. + * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search + * feedback events only. */ @JsonIgnore public Optional activeTab() { @@ -334,7 +341,8 @@ public Optional vote() { } /** - * A rating associated with the user feedback. The value will be between one and the maximum given by ratingScale, inclusive. + * A rating associated with the user feedback. The value will be between one and the maximum given by + * ratingScale, inclusive. */ @JsonIgnore public Optional rating() { @@ -350,7 +358,9 @@ public Optional ratingKey() { } /** - * The scale of comparison for a rating associated with the feedback. Rating values start from one and go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. + * The scale of comparison for a rating associated with the feedback. Rating values start from one and + * go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will + * have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. */ @JsonIgnore public Optional ratingScale() { @@ -489,7 +499,8 @@ public ManualFeedbackInfo withQuery(Optional query) { } /** - * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the vowels are replaced with special characters. For search feedback events only. + * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the + * vowels are replaced with special characters. For search feedback events only. */ public ManualFeedbackInfo withObscuredQuery(String obscuredQuery) { Utils.checkNotNull(obscuredQuery, "obscuredQuery"); @@ -499,7 +510,8 @@ public ManualFeedbackInfo withObscuredQuery(String obscuredQuery) { /** - * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the vowels are replaced with special characters. For search feedback events only. + * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the + * vowels are replaced with special characters. For search feedback events only. */ public ManualFeedbackInfo withObscuredQuery(Optional obscuredQuery) { Utils.checkNotNull(obscuredQuery, "obscuredQuery"); @@ -508,7 +520,8 @@ public ManualFeedbackInfo withObscuredQuery(Optional obscuredQuery) { } /** - * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search feedback events only. + * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search + * feedback events only. */ public ManualFeedbackInfo withActiveTab(String activeTab) { Utils.checkNotNull(activeTab, "activeTab"); @@ -518,7 +531,8 @@ public ManualFeedbackInfo withActiveTab(String activeTab) { /** - * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search feedback events only. + * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search + * feedback events only. */ public ManualFeedbackInfo withActiveTab(Optional activeTab) { Utils.checkNotNull(activeTab, "activeTab"); @@ -641,7 +655,8 @@ public ManualFeedbackInfo withVote(Optional vo } /** - * A rating associated with the user feedback. The value will be between one and the maximum given by ratingScale, inclusive. + * A rating associated with the user feedback. The value will be between one and the maximum given by + * ratingScale, inclusive. */ public ManualFeedbackInfo withRating(long rating) { Utils.checkNotNull(rating, "rating"); @@ -651,7 +666,8 @@ public ManualFeedbackInfo withRating(long rating) { /** - * A rating associated with the user feedback. The value will be between one and the maximum given by ratingScale, inclusive. + * A rating associated with the user feedback. The value will be between one and the maximum given by + * ratingScale, inclusive. */ public ManualFeedbackInfo withRating(Optional rating) { Utils.checkNotNull(rating, "rating"); @@ -679,7 +695,9 @@ public ManualFeedbackInfo withRatingKey(Optional ratingKey) { } /** - * The scale of comparison for a rating associated with the feedback. Rating values start from one and go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. + * The scale of comparison for a rating associated with the feedback. Rating values start from one and + * go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will + * have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. */ public ManualFeedbackInfo withRatingScale(long ratingScale) { Utils.checkNotNull(ratingScale, "ratingScale"); @@ -689,7 +707,9 @@ public ManualFeedbackInfo withRatingScale(long ratingScale) { /** - * The scale of comparison for a rating associated with the feedback. Rating values start from one and go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. + * The scale of comparison for a rating associated with the feedback. Rating values start from one and + * go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will + * have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. */ public ManualFeedbackInfo withRatingScale(Optional ratingScale) { Utils.checkNotNull(ratingScale, "ratingScale"); @@ -930,7 +950,8 @@ public Builder query(Optional query) { /** - * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the vowels are replaced with special characters. For search feedback events only. + * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the + * vowels are replaced with special characters. For search feedback events only. */ public Builder obscuredQuery(String obscuredQuery) { Utils.checkNotNull(obscuredQuery, "obscuredQuery"); @@ -939,7 +960,8 @@ public Builder obscuredQuery(String obscuredQuery) { } /** - * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the vowels are replaced with special characters. For search feedback events only. + * The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the + * vowels are replaced with special characters. For search feedback events only. */ public Builder obscuredQuery(Optional obscuredQuery) { Utils.checkNotNull(obscuredQuery, "obscuredQuery"); @@ -949,7 +971,8 @@ public Builder obscuredQuery(Optional obscuredQuery) { /** - * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search feedback events only. + * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search + * feedback events only. */ public Builder activeTab(String activeTab) { Utils.checkNotNull(activeTab, "activeTab"); @@ -958,7 +981,8 @@ public Builder activeTab(String activeTab) { } /** - * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search feedback events only. + * Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search + * feedback events only. */ public Builder activeTab(Optional activeTab) { Utils.checkNotNull(activeTab, "activeTab"); @@ -1082,7 +1106,8 @@ public Builder vote(Optional vote) { /** - * A rating associated with the user feedback. The value will be between one and the maximum given by ratingScale, inclusive. + * A rating associated with the user feedback. The value will be between one and the maximum given by + * ratingScale, inclusive. */ public Builder rating(long rating) { Utils.checkNotNull(rating, "rating"); @@ -1091,7 +1116,8 @@ public Builder rating(long rating) { } /** - * A rating associated with the user feedback. The value will be between one and the maximum given by ratingScale, inclusive. + * A rating associated with the user feedback. The value will be between one and the maximum given by + * ratingScale, inclusive. */ public Builder rating(Optional rating) { Utils.checkNotNull(rating, "rating"); @@ -1120,7 +1146,9 @@ public Builder ratingKey(Optional ratingKey) { /** - * The scale of comparison for a rating associated with the feedback. Rating values start from one and go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. + * The scale of comparison for a rating associated with the feedback. Rating values start from one and + * go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will + * have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. */ public Builder ratingScale(long ratingScale) { Utils.checkNotNull(ratingScale, "ratingScale"); @@ -1129,7 +1157,9 @@ public Builder ratingScale(long ratingScale) { } /** - * The scale of comparison for a rating associated with the feedback. Rating values start from one and go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. + * The scale of comparison for a rating associated with the feedback. Rating values start from one and + * go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will + * have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. */ public Builder ratingScale(Optional ratingScale) { Utils.checkNotNull(ratingScale, "ratingScale"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/MessageType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/MessageType.java index 8f9e9a31..6a8e618b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/MessageType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/MessageType.java @@ -11,7 +11,8 @@ /** * MessageType * - *

Semantically groups content of a certain type. It can be used for purposes such as differential UI treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. + *

Semantically groups content of a certain type. It can be used for purposes such as differential UI + * treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. */ public enum MessageType { UPDATE("UPDATE"), diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/MessagesRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/MessagesRequest.java index a76ee0c8..ee184184 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/MessagesRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/MessagesRequest.java @@ -25,7 +25,8 @@ public class MessagesRequest { private IdType idType; /** - * ID corresponding to the requested idType. Note that channel and threads are represented by the underlying datasource's ID and conversations are represented by their document's ID. + * ID corresponding to the requested idType. Note that channel and threads are represented by the + * underlying datasource's ID and conversations are represented by their document's ID. */ @JsonProperty("id") private String id; @@ -38,7 +39,8 @@ public class MessagesRequest { private Optional workspaceId; /** - * The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. + * The direction of the results asked with respect to the reference timestamp. Missing field defaults + * to OLDER. Only applicable when using a message_id. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("direction") @@ -66,7 +68,8 @@ public class MessagesRequest { private Optional datasource; /** - * The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. + * The datasource instance display name from which the document was extracted. This is used for + * appinstance facet filter for datasources that support multiple instances. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("datasourceInstanceDisplayName") @@ -117,7 +120,8 @@ public IdType idType() { } /** - * ID corresponding to the requested idType. Note that channel and threads are represented by the underlying datasource's ID and conversations are represented by their document's ID. + * ID corresponding to the requested idType. Note that channel and threads are represented by the + * underlying datasource's ID and conversations are represented by their document's ID. */ @JsonIgnore public String id() { @@ -133,7 +137,8 @@ public Optional workspaceId() { } /** - * The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. + * The direction of the results asked with respect to the reference timestamp. Missing field defaults + * to OLDER. Only applicable when using a message_id. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -167,7 +172,8 @@ public Optional datasource() { } /** - * The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. + * The datasource instance display name from which the document was extracted. This is used for + * appinstance facet filter for datasources that support multiple instances. */ @JsonIgnore public Optional datasourceInstanceDisplayName() { @@ -189,7 +195,8 @@ public MessagesRequest withIdType(IdType idType) { } /** - * ID corresponding to the requested idType. Note that channel and threads are represented by the underlying datasource's ID and conversations are represented by their document's ID. + * ID corresponding to the requested idType. Note that channel and threads are represented by the + * underlying datasource's ID and conversations are represented by their document's ID. */ public MessagesRequest withId(String id) { Utils.checkNotNull(id, "id"); @@ -217,7 +224,8 @@ public MessagesRequest withWorkspaceId(Optional workspaceId) { } /** - * The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. + * The direction of the results asked with respect to the reference timestamp. Missing field defaults + * to OLDER. Only applicable when using a message_id. */ public MessagesRequest withDirection(Direction direction) { Utils.checkNotNull(direction, "direction"); @@ -227,7 +235,8 @@ public MessagesRequest withDirection(Direction direction) { /** - * The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. + * The direction of the results asked with respect to the reference timestamp. Missing field defaults + * to OLDER. Only applicable when using a message_id. */ public MessagesRequest withDirection(Optional direction) { Utils.checkNotNull(direction, "direction"); @@ -293,7 +302,8 @@ public MessagesRequest withDatasource(Optional datasource) } /** - * The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. + * The datasource instance display name from which the document was extracted. This is used for + * appinstance facet filter for datasources that support multiple instances. */ public MessagesRequest withDatasourceInstanceDisplayName(String datasourceInstanceDisplayName) { Utils.checkNotNull(datasourceInstanceDisplayName, "datasourceInstanceDisplayName"); @@ -303,7 +313,8 @@ public MessagesRequest withDatasourceInstanceDisplayName(String datasourceInstan /** - * The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. + * The datasource instance display name from which the document was extracted. This is used for + * appinstance facet filter for datasources that support multiple instances. */ public MessagesRequest withDatasourceInstanceDisplayName(Optional datasourceInstanceDisplayName) { Utils.checkNotNull(datasourceInstanceDisplayName, "datasourceInstanceDisplayName"); @@ -387,7 +398,8 @@ public Builder idType(IdType idType) { /** - * ID corresponding to the requested idType. Note that channel and threads are represented by the underlying datasource's ID and conversations are represented by their document's ID. + * ID corresponding to the requested idType. Note that channel and threads are represented by the + * underlying datasource's ID and conversations are represented by their document's ID. */ public Builder id(String id) { Utils.checkNotNull(id, "id"); @@ -416,7 +428,8 @@ public Builder workspaceId(Optional workspaceId) { /** - * The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. + * The direction of the results asked with respect to the reference timestamp. Missing field defaults + * to OLDER. Only applicable when using a message_id. */ public Builder direction(Direction direction) { Utils.checkNotNull(direction, "direction"); @@ -425,7 +438,8 @@ public Builder direction(Direction direction) { } /** - * The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. + * The direction of the results asked with respect to the reference timestamp. Missing field defaults + * to OLDER. Only applicable when using a message_id. */ public Builder direction(Optional direction) { Utils.checkNotNull(direction, "direction"); @@ -492,7 +506,8 @@ public Builder datasource(Optional datasource) { /** - * The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. + * The datasource instance display name from which the document was extracted. This is used for + * appinstance facet filter for datasources that support multiple instances. */ public Builder datasourceInstanceDisplayName(String datasourceInstanceDisplayName) { Utils.checkNotNull(datasourceInstanceDisplayName, "datasourceInstanceDisplayName"); @@ -501,7 +516,8 @@ public Builder datasourceInstanceDisplayName(String datasourceInstanceDisplayNam } /** - * The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. + * The datasource instance display name from which the document was extracted. This is used for + * appinstance facet filter for datasources that support multiple instances. */ public Builder datasourceInstanceDisplayName(Optional datasourceInstanceDisplayName) { Utils.checkNotNull(datasourceInstanceDisplayName, "datasourceInstanceDisplayName"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ObjectDefinition.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ObjectDefinition.java index 26c337f2..f4bae25f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ObjectDefinition.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ObjectDefinition.java @@ -23,7 +23,8 @@ */ public class ObjectDefinition { /** - * Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a default for all unmatched `DocumentMetadata.objectType`s in this datasource. + * Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a + * default for all unmatched `DocumentMetadata.objectType`s in this datasource. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") @@ -49,7 +50,8 @@ public class ObjectDefinition { private Optional> propertyDefinitions; /** - * A list of `PropertyGroup`s belonging to this object type, which will group properties to be displayed together in the UI. + * A list of `PropertyGroup`s belonging to this object type, which will group properties to be + * displayed together in the UI. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("propertyGroups") @@ -90,7 +92,8 @@ public ObjectDefinition() { } /** - * Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a default for all unmatched `DocumentMetadata.objectType`s in this datasource. + * Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a + * default for all unmatched `DocumentMetadata.objectType`s in this datasource. */ @JsonIgnore public Optional name() { @@ -121,7 +124,8 @@ public Optional> propertyDefinitions() { } /** - * A list of `PropertyGroup`s belonging to this object type, which will group properties to be displayed together in the UI. + * A list of `PropertyGroup`s belonging to this object type, which will group properties to be + * displayed together in the UI. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -143,7 +147,8 @@ public static Builder builder() { /** - * Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a default for all unmatched `DocumentMetadata.objectType`s in this datasource. + * Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a + * default for all unmatched `DocumentMetadata.objectType`s in this datasource. */ public ObjectDefinition withName(String name) { Utils.checkNotNull(name, "name"); @@ -153,7 +158,8 @@ public ObjectDefinition withName(String name) { /** - * Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a default for all unmatched `DocumentMetadata.objectType`s in this datasource. + * Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a + * default for all unmatched `DocumentMetadata.objectType`s in this datasource. */ public ObjectDefinition withName(Optional name) { Utils.checkNotNull(name, "name"); @@ -213,7 +219,8 @@ public ObjectDefinition withPropertyDefinitions(Optional propertyGroups) { Utils.checkNotNull(propertyGroups, "propertyGroups"); @@ -223,7 +230,8 @@ public ObjectDefinition withPropertyGroups(List propertyGroups) { /** - * A list of `PropertyGroup`s belonging to this object type, which will group properties to be displayed together in the UI. + * A list of `PropertyGroup`s belonging to this object type, which will group properties to be + * displayed together in the UI. */ public ObjectDefinition withPropertyGroups(Optional> propertyGroups) { Utils.checkNotNull(propertyGroups, "propertyGroups"); @@ -307,7 +315,8 @@ private Builder() { /** - * Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a default for all unmatched `DocumentMetadata.objectType`s in this datasource. + * Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a + * default for all unmatched `DocumentMetadata.objectType`s in this datasource. */ public Builder name(String name) { Utils.checkNotNull(name, "name"); @@ -316,7 +325,8 @@ public Builder name(String name) { } /** - * Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a default for all unmatched `DocumentMetadata.objectType`s in this datasource. + * Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a + * default for all unmatched `DocumentMetadata.objectType`s in this datasource. */ public Builder name(Optional name) { Utils.checkNotNull(name, "name"); @@ -377,7 +387,8 @@ public Builder propertyDefinitions(Optional> /** - * A list of `PropertyGroup`s belonging to this object type, which will group properties to be displayed together in the UI. + * A list of `PropertyGroup`s belonging to this object type, which will group properties to be + * displayed together in the UI. */ public Builder propertyGroups(List propertyGroups) { Utils.checkNotNull(propertyGroups, "propertyGroups"); @@ -386,7 +397,8 @@ public Builder propertyGroups(List propertyGroups) { } /** - * A list of `PropertyGroup`s belonging to this object type, which will group properties to be displayed together in the UI. + * A list of `PropertyGroup`s belonging to this object type, which will group properties to be + * displayed together in the UI. */ public Builder propertyGroups(Optional> propertyGroups) { Utils.checkNotNull(propertyGroups, "propertyGroups"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/OperatorMetadata.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/OperatorMetadata.java index 2ad9816e..25574d97 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/OperatorMetadata.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/OperatorMetadata.java @@ -23,7 +23,8 @@ public class OperatorMetadata { private String name; /** - * Whether this operator is supported by default or something that was created within a workplace app (e.g. custom jira field). + * Whether this operator is supported by default or something that was created within a workplace app + * (e.g. custom jira field). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("isCustom") @@ -52,7 +53,8 @@ public class OperatorMetadata { private Optional value; /** - * Human readable value of the operator that can be shown to the user. Only applies when result is an operator value. + * Human readable value of the operator that can be shown to the user. Only applies when result is an + * operator value. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("displayValue") @@ -96,7 +98,8 @@ public String name() { } /** - * Whether this operator is supported by default or something that was created within a workplace app (e.g. custom jira field). + * Whether this operator is supported by default or something that was created within a workplace app + * (e.g. custom jira field). */ @JsonIgnore public Optional isCustom() { @@ -129,7 +132,8 @@ public Optional value() { } /** - * Human readable value of the operator that can be shown to the user. Only applies when result is an operator value. + * Human readable value of the operator that can be shown to the user. Only applies when result is an + * operator value. */ @JsonIgnore public Optional displayValue() { @@ -148,7 +152,8 @@ public OperatorMetadata withName(String name) { } /** - * Whether this operator is supported by default or something that was created within a workplace app (e.g. custom jira field). + * Whether this operator is supported by default or something that was created within a workplace app + * (e.g. custom jira field). */ public OperatorMetadata withIsCustom(boolean isCustom) { Utils.checkNotNull(isCustom, "isCustom"); @@ -158,7 +163,8 @@ public OperatorMetadata withIsCustom(boolean isCustom) { /** - * Whether this operator is supported by default or something that was created within a workplace app (e.g. custom jira field). + * Whether this operator is supported by default or something that was created within a workplace app + * (e.g. custom jira field). */ public OperatorMetadata withIsCustom(Optional isCustom) { Utils.checkNotNull(isCustom, "isCustom"); @@ -225,7 +231,8 @@ public OperatorMetadata withValue(Optional value) { } /** - * Human readable value of the operator that can be shown to the user. Only applies when result is an operator value. + * Human readable value of the operator that can be shown to the user. Only applies when result is an + * operator value. */ public OperatorMetadata withDisplayValue(String displayValue) { Utils.checkNotNull(displayValue, "displayValue"); @@ -235,7 +242,8 @@ public OperatorMetadata withDisplayValue(String displayValue) { /** - * Human readable value of the operator that can be shown to the user. Only applies when result is an operator value. + * Human readable value of the operator that can be shown to the user. Only applies when result is an + * operator value. */ public OperatorMetadata withDisplayValue(Optional displayValue) { Utils.checkNotNull(displayValue, "displayValue"); @@ -312,7 +320,8 @@ public Builder name(String name) { /** - * Whether this operator is supported by default or something that was created within a workplace app (e.g. custom jira field). + * Whether this operator is supported by default or something that was created within a workplace app + * (e.g. custom jira field). */ public Builder isCustom(boolean isCustom) { Utils.checkNotNull(isCustom, "isCustom"); @@ -321,7 +330,8 @@ public Builder isCustom(boolean isCustom) { } /** - * Whether this operator is supported by default or something that was created within a workplace app (e.g. custom jira field). + * Whether this operator is supported by default or something that was created within a workplace app + * (e.g. custom jira field). */ public Builder isCustom(Optional isCustom) { Utils.checkNotNull(isCustom, "isCustom"); @@ -389,7 +399,8 @@ public Builder value(Optional value) { /** - * Human readable value of the operator that can be shown to the user. Only applies when result is an operator value. + * Human readable value of the operator that can be shown to the user. Only applies when result is an + * operator value. */ public Builder displayValue(String displayValue) { Utils.checkNotNull(displayValue, "displayValue"); @@ -398,7 +409,8 @@ public Builder displayValue(String displayValue) { } /** - * Human readable value of the operator that can be shown to the user. Only applies when result is an operator value. + * Human readable value of the operator that can be shown to the user. Only applies when result is an + * operator value. */ public Builder displayValue(Optional displayValue) { Utils.checkNotNull(displayValue, "displayValue"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PeopleRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PeopleRequest.java index e4c922b1..bde67117 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PeopleRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PeopleRequest.java @@ -19,7 +19,8 @@ public class PeopleRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("timezoneOffset") @@ -88,7 +89,8 @@ public PeopleRequest() { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -145,7 +147,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public PeopleRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -155,7 +158,8 @@ public PeopleRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public PeopleRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -315,7 +319,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -324,7 +329,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PeopleResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PeopleResponse.java index f0f66dd0..ee2c790f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PeopleResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PeopleResponse.java @@ -25,7 +25,8 @@ public class PeopleResponse { private Optional> results; /** - * A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is requested and only 1 person is included in the request. + * A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is + * requested and only 1 person is included in the request. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("relatedDocuments") @@ -65,7 +66,8 @@ public Optional> results() { } /** - * A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is requested and only 1 person is included in the request. + * A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is + * requested and only 1 person is included in the request. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -107,7 +109,8 @@ public PeopleResponse withResults(Optional> results) { } /** - * A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is requested and only 1 person is included in the request. + * A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is + * requested and only 1 person is included in the request. */ public PeopleResponse withRelatedDocuments(List relatedDocuments) { Utils.checkNotNull(relatedDocuments, "relatedDocuments"); @@ -117,7 +120,8 @@ public PeopleResponse withRelatedDocuments(List relatedDocumen /** - * A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is requested and only 1 person is included in the request. + * A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is + * requested and only 1 person is included in the request. */ public PeopleResponse withRelatedDocuments(Optional> relatedDocuments) { Utils.checkNotNull(relatedDocuments, "relatedDocuments"); @@ -207,7 +211,8 @@ public Builder results(Optional> results) { /** - * A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is requested and only 1 person is included in the request. + * A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is + * requested and only 1 person is included in the request. */ public Builder relatedDocuments(List relatedDocuments) { Utils.checkNotNull(relatedDocuments, "relatedDocuments"); @@ -216,7 +221,8 @@ public Builder relatedDocuments(List relatedDocuments) { } /** - * A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is requested and only 1 person is included in the request. + * A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is + * requested and only 1 person is included in the request. */ public Builder relatedDocuments(Optional> relatedDocuments) { Utils.checkNotNull(relatedDocuments, "relatedDocuments"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Permissions.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Permissions.java index 54888ed7..8e80e514 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Permissions.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Permissions.java @@ -20,47 +20,56 @@ /** * Permissions * - *

Describes the permissions levels that a user has for permissioned features. When the client sends this, Permissions.read and Permissions.write are the additional permissions granted to a user on top of what they have via their roles. - * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of permissions the user has, and Permissions.roles is just for display purposes. + *

Describes the permissions levels that a user has for permissioned features. When the client sends + * this, Permissions.read and Permissions.write are the additional permissions granted to a user on top + * of what they have via their roles. + * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of + * permissions the user has, and Permissions.roles is just for display purposes. */ public class Permissions { /** - * TODO--deprecate in favor of the read and write properties. True if the user has access to /adminsearch + * TODO--deprecate in favor of the read and write properties. True if the user has access to + * /adminsearch */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("canAdminSearch") private Optional canAdminSearch; /** - * TODO--deprecate in favor of the read and write properties. True if the user can administrate client API tokens with global scope + * TODO--deprecate in favor of the read and write properties. True if the user can administrate client + * API tokens with global scope */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("canAdminClientApiGlobalTokens") private Optional canAdminClientApiGlobalTokens; /** - * TODO--deprecate in favor of the read and write properties. True if the user has access to data loss prevention (DLP) features + * TODO--deprecate in favor of the read and write properties. True if the user has access to data loss + * prevention (DLP) features */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("canDlp") private Optional canDlp; /** - * Describes the read permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the read permission levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("read") private Optional>> read; /** - * Describes the write permissions levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the write permissions levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("write") private Optional>> write; /** - * Describes the grant permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the grant permission levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("grant") @@ -115,7 +124,8 @@ public Permissions() { } /** - * TODO--deprecate in favor of the read and write properties. True if the user has access to /adminsearch + * TODO--deprecate in favor of the read and write properties. True if the user has access to + * /adminsearch */ @JsonIgnore public Optional canAdminSearch() { @@ -123,7 +133,8 @@ public Optional canAdminSearch() { } /** - * TODO--deprecate in favor of the read and write properties. True if the user can administrate client API tokens with global scope + * TODO--deprecate in favor of the read and write properties. True if the user can administrate client + * API tokens with global scope */ @JsonIgnore public Optional canAdminClientApiGlobalTokens() { @@ -131,7 +142,8 @@ public Optional canAdminClientApiGlobalTokens() { } /** - * TODO--deprecate in favor of the read and write properties. True if the user has access to data loss prevention (DLP) features + * TODO--deprecate in favor of the read and write properties. True if the user has access to data loss + * prevention (DLP) features */ @JsonIgnore public Optional canDlp() { @@ -139,7 +151,8 @@ public Optional canDlp() { } /** - * Describes the read permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the read permission levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ @SuppressWarnings("unchecked") @JsonIgnore @@ -148,7 +161,8 @@ public Optional>> read() { } /** - * Describes the write permissions levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the write permissions levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ @SuppressWarnings("unchecked") @JsonIgnore @@ -157,7 +171,8 @@ public Optional>> write() { } /** - * Describes the grant permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the grant permission levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ @SuppressWarnings("unchecked") @JsonIgnore @@ -188,7 +203,8 @@ public static Builder builder() { /** - * TODO--deprecate in favor of the read and write properties. True if the user has access to /adminsearch + * TODO--deprecate in favor of the read and write properties. True if the user has access to + * /adminsearch */ public Permissions withCanAdminSearch(boolean canAdminSearch) { Utils.checkNotNull(canAdminSearch, "canAdminSearch"); @@ -198,7 +214,8 @@ public Permissions withCanAdminSearch(boolean canAdminSearch) { /** - * TODO--deprecate in favor of the read and write properties. True if the user has access to /adminsearch + * TODO--deprecate in favor of the read and write properties. True if the user has access to + * /adminsearch */ public Permissions withCanAdminSearch(Optional canAdminSearch) { Utils.checkNotNull(canAdminSearch, "canAdminSearch"); @@ -207,7 +224,8 @@ public Permissions withCanAdminSearch(Optional canAdminSearch) { } /** - * TODO--deprecate in favor of the read and write properties. True if the user can administrate client API tokens with global scope + * TODO--deprecate in favor of the read and write properties. True if the user can administrate client + * API tokens with global scope */ public Permissions withCanAdminClientApiGlobalTokens(boolean canAdminClientApiGlobalTokens) { Utils.checkNotNull(canAdminClientApiGlobalTokens, "canAdminClientApiGlobalTokens"); @@ -217,7 +235,8 @@ public Permissions withCanAdminClientApiGlobalTokens(boolean canAdminClientApiGl /** - * TODO--deprecate in favor of the read and write properties. True if the user can administrate client API tokens with global scope + * TODO--deprecate in favor of the read and write properties. True if the user can administrate client + * API tokens with global scope */ public Permissions withCanAdminClientApiGlobalTokens(Optional canAdminClientApiGlobalTokens) { Utils.checkNotNull(canAdminClientApiGlobalTokens, "canAdminClientApiGlobalTokens"); @@ -226,7 +245,8 @@ public Permissions withCanAdminClientApiGlobalTokens(Optional canAdminC } /** - * TODO--deprecate in favor of the read and write properties. True if the user has access to data loss prevention (DLP) features + * TODO--deprecate in favor of the read and write properties. True if the user has access to data loss + * prevention (DLP) features */ public Permissions withCanDlp(boolean canDlp) { Utils.checkNotNull(canDlp, "canDlp"); @@ -236,7 +256,8 @@ public Permissions withCanDlp(boolean canDlp) { /** - * TODO--deprecate in favor of the read and write properties. True if the user has access to data loss prevention (DLP) features + * TODO--deprecate in favor of the read and write properties. True if the user has access to data loss + * prevention (DLP) features */ public Permissions withCanDlp(Optional canDlp) { Utils.checkNotNull(canDlp, "canDlp"); @@ -245,7 +266,8 @@ public Permissions withCanDlp(Optional canDlp) { } /** - * Describes the read permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the read permission levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ public Permissions withRead(Map> read) { Utils.checkNotNull(read, "read"); @@ -255,7 +277,8 @@ public Permissions withRead(Map> read) { /** - * Describes the read permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the read permission levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ public Permissions withRead(Optional>> read) { Utils.checkNotNull(read, "read"); @@ -264,7 +287,8 @@ public Permissions withRead(Optional> } /** - * Describes the write permissions levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the write permissions levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ public Permissions withWrite(Map> write) { Utils.checkNotNull(write, "write"); @@ -274,7 +298,8 @@ public Permissions withWrite(Map> write) { /** - * Describes the write permissions levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the write permissions levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ public Permissions withWrite(Optional>> write) { Utils.checkNotNull(write, "write"); @@ -283,7 +308,8 @@ public Permissions withWrite(Optional> grant) { Utils.checkNotNull(grant, "grant"); @@ -293,7 +319,8 @@ public Permissions withGrant(Map> grant) { /** - * Describes the grant permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the grant permission levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ public Permissions withGrant(Optional>> grant) { Utils.checkNotNull(grant, "grant"); @@ -405,7 +432,8 @@ private Builder() { /** - * TODO--deprecate in favor of the read and write properties. True if the user has access to /adminsearch + * TODO--deprecate in favor of the read and write properties. True if the user has access to + * /adminsearch */ public Builder canAdminSearch(boolean canAdminSearch) { Utils.checkNotNull(canAdminSearch, "canAdminSearch"); @@ -414,7 +442,8 @@ public Builder canAdminSearch(boolean canAdminSearch) { } /** - * TODO--deprecate in favor of the read and write properties. True if the user has access to /adminsearch + * TODO--deprecate in favor of the read and write properties. True if the user has access to + * /adminsearch */ public Builder canAdminSearch(Optional canAdminSearch) { Utils.checkNotNull(canAdminSearch, "canAdminSearch"); @@ -424,7 +453,8 @@ public Builder canAdminSearch(Optional canAdminSearch) { /** - * TODO--deprecate in favor of the read and write properties. True if the user can administrate client API tokens with global scope + * TODO--deprecate in favor of the read and write properties. True if the user can administrate client + * API tokens with global scope */ public Builder canAdminClientApiGlobalTokens(boolean canAdminClientApiGlobalTokens) { Utils.checkNotNull(canAdminClientApiGlobalTokens, "canAdminClientApiGlobalTokens"); @@ -433,7 +463,8 @@ public Builder canAdminClientApiGlobalTokens(boolean canAdminClientApiGlobalToke } /** - * TODO--deprecate in favor of the read and write properties. True if the user can administrate client API tokens with global scope + * TODO--deprecate in favor of the read and write properties. True if the user can administrate client + * API tokens with global scope */ public Builder canAdminClientApiGlobalTokens(Optional canAdminClientApiGlobalTokens) { Utils.checkNotNull(canAdminClientApiGlobalTokens, "canAdminClientApiGlobalTokens"); @@ -443,7 +474,8 @@ public Builder canAdminClientApiGlobalTokens(Optional canAdminClientApi /** - * TODO--deprecate in favor of the read and write properties. True if the user has access to data loss prevention (DLP) features + * TODO--deprecate in favor of the read and write properties. True if the user has access to data loss + * prevention (DLP) features */ public Builder canDlp(boolean canDlp) { Utils.checkNotNull(canDlp, "canDlp"); @@ -452,7 +484,8 @@ public Builder canDlp(boolean canDlp) { } /** - * TODO--deprecate in favor of the read and write properties. True if the user has access to data loss prevention (DLP) features + * TODO--deprecate in favor of the read and write properties. True if the user has access to data loss + * prevention (DLP) features */ public Builder canDlp(Optional canDlp) { Utils.checkNotNull(canDlp, "canDlp"); @@ -462,7 +495,8 @@ public Builder canDlp(Optional canDlp) { /** - * Describes the read permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the read permission levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ public Builder read(Map> read) { Utils.checkNotNull(read, "read"); @@ -471,7 +505,8 @@ public Builder read(Map> read) { } /** - * Describes the read permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the read permission levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ public Builder read(Optional>> read) { Utils.checkNotNull(read, "read"); @@ -481,7 +516,8 @@ public Builder read(Optional>> read) /** - * Describes the write permissions levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the write permissions levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ public Builder write(Map> write) { Utils.checkNotNull(write, "write"); @@ -490,7 +526,8 @@ public Builder write(Map> write) { } /** - * Describes the write permissions levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the write permissions levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ public Builder write(Optional>> write) { Utils.checkNotNull(write, "write"); @@ -500,7 +537,8 @@ public Builder write(Optional>> writ /** - * Describes the grant permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the grant permission levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ public Builder grant(Map> grant) { Utils.checkNotNull(grant, "grant"); @@ -509,7 +547,8 @@ public Builder grant(Map> grant) { } /** - * Describes the grant permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject + * Describes the grant permission levels that a user has for permissioned features. Key must be + * PermissionedFeatureOrObject */ public Builder grant(Optional>> grant) { Utils.checkNotNull(grant, "grant"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PersonMetadata.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PersonMetadata.java index 00922c86..5240f088 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PersonMetadata.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PersonMetadata.java @@ -50,7 +50,8 @@ public class PersonMetadata { private Optional title; /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("businessUnit") @@ -118,7 +119,8 @@ public class PersonMetadata { private Optional manager; /** - * The chain of reporting in the company as far up as it goes. The last entry is this person's direct manager. + * The chain of reporting in the company as far up as it goes. The last entry is this person's direct + * manager. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("managementChain") @@ -146,7 +148,8 @@ public class PersonMetadata { private Optional timezoneOffset; /** - * The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all + * valid (but not third-party-authenticated URLs). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("photoUrl") @@ -268,8 +271,11 @@ public class PersonMetadata { private Optional lastExtensionUse; /** - * Describes the permissions levels that a user has for permissioned features. When the client sends this, Permissions.read and Permissions.write are the additional permissions granted to a user on top of what they have via their roles. - * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of permissions the user has, and Permissions.roles is just for display purposes. + * Describes the permissions levels that a user has for permissioned features. When the client sends + * this, Permissions.read and Permissions.write are the additional permissions granted to a user on top + * of what they have via their roles. + * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of + * permissions the user has, and Permissions.roles is just for display purposes. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("permissions") @@ -509,7 +515,8 @@ public Optional title() { } /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ @JsonIgnore public Optional businessUnit() { @@ -590,7 +597,8 @@ public Optional manager() { } /** - * The chain of reporting in the company as far up as it goes. The last entry is this person's direct manager. + * The chain of reporting in the company as far up as it goes. The last entry is this person's direct + * manager. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -623,7 +631,8 @@ public Optional timezoneOffset() { } /** - * The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all + * valid (but not third-party-authenticated URLs). */ @JsonIgnore public Optional photoUrl() { @@ -767,8 +776,11 @@ public Optional lastExtensionUse() { } /** - * Describes the permissions levels that a user has for permissioned features. When the client sends this, Permissions.read and Permissions.write are the additional permissions granted to a user on top of what they have via their roles. - * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of permissions the user has, and Permissions.roles is just for display purposes. + * Describes the permissions levels that a user has for permissioned features. When the client sends + * this, Permissions.read and Permissions.write are the additional permissions granted to a user on top + * of what they have via their roles. + * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of + * permissions the user has, and Permissions.roles is just for display purposes. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -912,7 +924,8 @@ public PersonMetadata withTitle(Optional title) { } /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public PersonMetadata withBusinessUnit(String businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -922,7 +935,8 @@ public PersonMetadata withBusinessUnit(String businessUnit) { /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public PersonMetadata withBusinessUnit(Optional businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -1096,7 +1110,8 @@ public PersonMetadata withManager(Optional manager) { } /** - * The chain of reporting in the company as far up as it goes. The last entry is this person's direct manager. + * The chain of reporting in the company as far up as it goes. The last entry is this person's direct + * manager. */ public PersonMetadata withManagementChain(List managementChain) { Utils.checkNotNull(managementChain, "managementChain"); @@ -1106,7 +1121,8 @@ public PersonMetadata withManagementChain(List managementChain) { /** - * The chain of reporting in the company as far up as it goes. The last entry is this person's direct manager. + * The chain of reporting in the company as far up as it goes. The last entry is this person's direct + * manager. */ public PersonMetadata withManagementChain(Optional> managementChain) { Utils.checkNotNull(managementChain, "managementChain"); @@ -1172,7 +1188,8 @@ public PersonMetadata withTimezoneOffset(Optional timezoneOffset) { } /** - * The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all + * valid (but not third-party-authenticated URLs). */ public PersonMetadata withPhotoUrl(String photoUrl) { Utils.checkNotNull(photoUrl, "photoUrl"); @@ -1182,7 +1199,8 @@ public PersonMetadata withPhotoUrl(String photoUrl) { /** - * The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all + * valid (but not third-party-authenticated URLs). */ public PersonMetadata withPhotoUrl(Optional photoUrl) { Utils.checkNotNull(photoUrl, "photoUrl"); @@ -1502,8 +1520,11 @@ public PersonMetadata withLastExtensionUse(Optional lastExtensio } /** - * Describes the permissions levels that a user has for permissioned features. When the client sends this, Permissions.read and Permissions.write are the additional permissions granted to a user on top of what they have via their roles. - * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of permissions the user has, and Permissions.roles is just for display purposes. + * Describes the permissions levels that a user has for permissioned features. When the client sends + * this, Permissions.read and Permissions.write are the additional permissions granted to a user on top + * of what they have via their roles. + * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of + * permissions the user has, and Permissions.roles is just for display purposes. */ public PersonMetadata withPermissions(Permissions permissions) { Utils.checkNotNull(permissions, "permissions"); @@ -1513,8 +1534,11 @@ public PersonMetadata withPermissions(Permissions permissions) { /** - * Describes the permissions levels that a user has for permissioned features. When the client sends this, Permissions.read and Permissions.write are the additional permissions granted to a user on top of what they have via their roles. - * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of permissions the user has, and Permissions.roles is just for display purposes. + * Describes the permissions levels that a user has for permissioned features. When the client sends + * this, Permissions.read and Permissions.write are the additional permissions granted to a user on top + * of what they have via their roles. + * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of + * permissions the user has, and Permissions.roles is just for display purposes. */ public PersonMetadata withPermissions(Optional permissions) { Utils.checkNotNull(permissions, "permissions"); @@ -1947,7 +1971,8 @@ public Builder title(Optional title) { /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public Builder businessUnit(String businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -1956,7 +1981,8 @@ public Builder businessUnit(String businessUnit) { } /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public Builder businessUnit(Optional businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -2131,7 +2157,8 @@ public Builder manager(Optional manager) { /** - * The chain of reporting in the company as far up as it goes. The last entry is this person's direct manager. + * The chain of reporting in the company as far up as it goes. The last entry is this person's direct + * manager. */ public Builder managementChain(List managementChain) { Utils.checkNotNull(managementChain, "managementChain"); @@ -2140,7 +2167,8 @@ public Builder managementChain(List managementChain) { } /** - * The chain of reporting in the company as far up as it goes. The last entry is this person's direct manager. + * The chain of reporting in the company as far up as it goes. The last entry is this person's direct + * manager. */ public Builder managementChain(Optional> managementChain) { Utils.checkNotNull(managementChain, "managementChain"); @@ -2207,7 +2235,8 @@ public Builder timezoneOffset(Optional timezoneOffset) { /** - * The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all + * valid (but not third-party-authenticated URLs). */ public Builder photoUrl(String photoUrl) { Utils.checkNotNull(photoUrl, "photoUrl"); @@ -2216,7 +2245,8 @@ public Builder photoUrl(String photoUrl) { } /** - * The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). + * The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all + * valid (but not third-party-authenticated URLs). */ public Builder photoUrl(Optional photoUrl) { Utils.checkNotNull(photoUrl, "photoUrl"); @@ -2537,8 +2567,11 @@ public Builder lastExtensionUse(Optional lastExtensionUse) { /** - * Describes the permissions levels that a user has for permissioned features. When the client sends this, Permissions.read and Permissions.write are the additional permissions granted to a user on top of what they have via their roles. - * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of permissions the user has, and Permissions.roles is just for display purposes. + * Describes the permissions levels that a user has for permissioned features. When the client sends + * this, Permissions.read and Permissions.write are the additional permissions granted to a user on top + * of what they have via their roles. + * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of + * permissions the user has, and Permissions.roles is just for display purposes. */ public Builder permissions(Permissions permissions) { Utils.checkNotNull(permissions, "permissions"); @@ -2547,8 +2580,11 @@ public Builder permissions(Permissions permissions) { } /** - * Describes the permissions levels that a user has for permissioned features. When the client sends this, Permissions.read and Permissions.write are the additional permissions granted to a user on top of what they have via their roles. - * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of permissions the user has, and Permissions.roles is just for display purposes. + * Describes the permissions levels that a user has for permissioned features. When the client sends + * this, Permissions.read and Permissions.write are the additional permissions granted to a user on top + * of what they have via their roles. + * When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of + * permissions the user has, and Permissions.roles is just for display purposes. */ public Builder permissions(Optional permissions) { Utils.checkNotNull(permissions, "permissions"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PersonTeam.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PersonTeam.java index 8b87e084..c8577ce9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PersonTeam.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PersonTeam.java @@ -20,7 +20,8 @@ /** * PersonTeam * - *

Use `id` if you index teams via Glean, and use `name` and `externalLink` if you want to use your own team pages + *

Use `id` if you index teams via Glean, and use `name` and `externalLink` if you want to use your own + * team pages */ public class PersonTeam { /** diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PinDocument.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PinDocument.java index df4ddc3f..c7fab1cd 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PinDocument.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PinDocument.java @@ -26,7 +26,8 @@ public class PinDocument { private Optional> queries; /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -110,7 +111,8 @@ public Optional> queries() { } /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -181,7 +183,8 @@ public PinDocument withQueries(Optional> queries) { } /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ public PinDocument withAudienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -191,7 +194,8 @@ public PinDocument withAudienceFilters(List audienceFilters) { /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ public PinDocument withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -364,7 +368,8 @@ public Builder queries(Optional> queries) { /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -373,7 +378,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PinRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PinRequest.java index 4effb87d..58281fd1 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PinRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PinRequest.java @@ -25,7 +25,8 @@ public class PinRequest { private Optional> queries; /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -65,7 +66,8 @@ public Optional> queries() { } /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -106,7 +108,8 @@ public PinRequest withQueries(Optional> queries) { } /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ public PinRequest withAudienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -116,7 +119,8 @@ public PinRequest withAudienceFilters(List audienceFilters) { /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ public PinRequest withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -206,7 +210,8 @@ public Builder queries(Optional> queries) { /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -215,7 +220,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the pinned document. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ProcessAllDocumentsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ProcessAllDocumentsRequest.java index 2e6a50e4..e5719d6b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ProcessAllDocumentsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ProcessAllDocumentsRequest.java @@ -20,7 +20,8 @@ */ public class ProcessAllDocumentsRequest { /** - * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are processed. + * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are + * processed. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("datasource") @@ -38,7 +39,8 @@ public ProcessAllDocumentsRequest() { } /** - * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are processed. + * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are + * processed. */ @JsonIgnore public Optional datasource() { @@ -51,7 +53,8 @@ public static Builder builder() { /** - * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are processed. + * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are + * processed. */ public ProcessAllDocumentsRequest withDatasource(String datasource) { Utils.checkNotNull(datasource, "datasource"); @@ -61,7 +64,8 @@ public ProcessAllDocumentsRequest withDatasource(String datasource) { /** - * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are processed. + * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are + * processed. */ public ProcessAllDocumentsRequest withDatasource(Optional datasource) { Utils.checkNotNull(datasource, "datasource"); @@ -105,7 +109,8 @@ private Builder() { /** - * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are processed. + * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are + * processed. */ public Builder datasource(String datasource) { Utils.checkNotNull(datasource, "datasource"); @@ -114,7 +119,8 @@ public Builder datasource(String datasource) { } /** - * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are processed. + * If provided, process documents only for this custom datasource. Otherwise all uploaded documents are + * processed. */ public Builder datasource(Optional datasource) { Utils.checkNotNull(datasource, "datasource"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ProcessAllMembershipsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ProcessAllMembershipsRequest.java index fca221e7..d8ca210f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ProcessAllMembershipsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ProcessAllMembershipsRequest.java @@ -20,7 +20,8 @@ */ public class ProcessAllMembershipsRequest { /** - * If provided, process group memberships only for this custom datasource. Otherwise all uploaded memberships are processed. + * If provided, process group memberships only for this custom datasource. Otherwise all uploaded + * memberships are processed. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("datasource") @@ -38,7 +39,8 @@ public ProcessAllMembershipsRequest() { } /** - * If provided, process group memberships only for this custom datasource. Otherwise all uploaded memberships are processed. + * If provided, process group memberships only for this custom datasource. Otherwise all uploaded + * memberships are processed. */ @JsonIgnore public Optional datasource() { @@ -51,7 +53,8 @@ public static Builder builder() { /** - * If provided, process group memberships only for this custom datasource. Otherwise all uploaded memberships are processed. + * If provided, process group memberships only for this custom datasource. Otherwise all uploaded + * memberships are processed. */ public ProcessAllMembershipsRequest withDatasource(String datasource) { Utils.checkNotNull(datasource, "datasource"); @@ -61,7 +64,8 @@ public ProcessAllMembershipsRequest withDatasource(String datasource) { /** - * If provided, process group memberships only for this custom datasource. Otherwise all uploaded memberships are processed. + * If provided, process group memberships only for this custom datasource. Otherwise all uploaded + * memberships are processed. */ public ProcessAllMembershipsRequest withDatasource(Optional datasource) { Utils.checkNotNull(datasource, "datasource"); @@ -105,7 +109,8 @@ private Builder() { /** - * If provided, process group memberships only for this custom datasource. Otherwise all uploaded memberships are processed. + * If provided, process group memberships only for this custom datasource. Otherwise all uploaded + * memberships are processed. */ public Builder datasource(String datasource) { Utils.checkNotNull(datasource, "datasource"); @@ -114,7 +119,8 @@ public Builder datasource(String datasource) { } /** - * If provided, process group memberships only for this custom datasource. Otherwise all uploaded memberships are processed. + * If provided, process group memberships only for this custom datasource. Otherwise all uploaded + * memberships are processed. */ public Builder datasource(Optional datasource) { Utils.checkNotNull(datasource, "datasource"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ProcessingState.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ProcessingState.java index cc147a34..038eb263 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ProcessingState.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ProcessingState.java @@ -11,7 +11,8 @@ /** * ProcessingState * - *

The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED + *

The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD + * COMPLETED, DELETION PAUSED, INDEXING COMPLETED */ public enum ProcessingState { UNAVAILABLE("UNAVAILABLE"), diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PropertyDefinition.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PropertyDefinition.java index 9463e4bb..b9a3a6e0 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PropertyDefinition.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PropertyDefinition.java @@ -19,7 +19,8 @@ public class PropertyDefinition { /** - * The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', 'container'). In the future, this will support custom properties too. + * The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', + * 'container'). In the future, this will support custom properties too. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") @@ -40,7 +41,8 @@ public class PropertyDefinition { private Optional displayLabelPlural; /** - * The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. + * The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST + * is not yet supported. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("propertyType") @@ -59,7 +61,11 @@ public class PropertyDefinition { private Optional hideUiFacet; /** - * Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), where N is the number of non-hidden UI facets. These facets will be ordered below the built-in "Type" and "Tag" operators. + * Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for + * all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), + * where N is the number of non-hidden UI facets. + * + *

These facets will be ordered below the built-in "Type" and "Tag" operators. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("uiFacetOrder") @@ -117,7 +123,8 @@ public PropertyDefinition() { } /** - * The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', 'container'). In the future, this will support custom properties too. + * The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', + * 'container'). In the future, this will support custom properties too. */ @JsonIgnore public Optional name() { @@ -141,7 +148,8 @@ public Optional displayLabelPlural() { } /** - * The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. + * The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST + * is not yet supported. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -164,7 +172,11 @@ public Optional hideUiFacet() { } /** - * Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), where N is the number of non-hidden UI facets. These facets will be ordered below the built-in "Type" and "Tag" operators. + * Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for + * all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), + * where N is the number of non-hidden UI facets. + * + *

These facets will be ordered below the built-in "Type" and "Tag" operators. */ @JsonIgnore public Optional uiFacetOrder() { @@ -193,7 +205,8 @@ public static Builder builder() { /** - * The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', 'container'). In the future, this will support custom properties too. + * The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', + * 'container'). In the future, this will support custom properties too. */ public PropertyDefinition withName(String name) { Utils.checkNotNull(name, "name"); @@ -203,7 +216,8 @@ public PropertyDefinition withName(String name) { /** - * The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', 'container'). In the future, this will support custom properties too. + * The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', + * 'container'). In the future, this will support custom properties too. */ public PropertyDefinition withName(Optional name) { Utils.checkNotNull(name, "name"); @@ -250,7 +264,8 @@ public PropertyDefinition withDisplayLabelPlural(Optional displayLabelPl } /** - * The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. + * The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST + * is not yet supported. */ public PropertyDefinition withPropertyType(PropertyType propertyType) { Utils.checkNotNull(propertyType, "propertyType"); @@ -260,7 +275,8 @@ public PropertyDefinition withPropertyType(PropertyType propertyType) { /** - * The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. + * The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST + * is not yet supported. */ public PropertyDefinition withPropertyType(Optional propertyType) { Utils.checkNotNull(propertyType, "propertyType"); @@ -301,7 +317,11 @@ public PropertyDefinition withHideUiFacet(Optional hideUiFacet) { } /** - * Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), where N is the number of non-hidden UI facets. These facets will be ordered below the built-in "Type" and "Tag" operators. + * Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for + * all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), + * where N is the number of non-hidden UI facets. + * + *

These facets will be ordered below the built-in "Type" and "Tag" operators. */ public PropertyDefinition withUiFacetOrder(long uiFacetOrder) { Utils.checkNotNull(uiFacetOrder, "uiFacetOrder"); @@ -311,7 +331,11 @@ public PropertyDefinition withUiFacetOrder(long uiFacetOrder) { /** - * Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), where N is the number of non-hidden UI facets. These facets will be ordered below the built-in "Type" and "Tag" operators. + * Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for + * all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), + * where N is the number of non-hidden UI facets. + * + *

These facets will be ordered below the built-in "Type" and "Tag" operators. */ public PropertyDefinition withUiFacetOrder(Optional uiFacetOrder) { Utils.checkNotNull(uiFacetOrder, "uiFacetOrder"); @@ -427,7 +451,8 @@ private Builder() { /** - * The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', 'container'). In the future, this will support custom properties too. + * The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', + * 'container'). In the future, this will support custom properties too. */ public Builder name(String name) { Utils.checkNotNull(name, "name"); @@ -436,7 +461,8 @@ public Builder name(String name) { } /** - * The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', 'container'). In the future, this will support custom properties too. + * The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', + * 'container'). In the future, this will support custom properties too. */ public Builder name(Optional name) { Utils.checkNotNull(name, "name"); @@ -484,7 +510,8 @@ public Builder displayLabelPlural(Optional displayLabelPlural) { /** - * The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. + * The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST + * is not yet supported. */ public Builder propertyType(PropertyType propertyType) { Utils.checkNotNull(propertyType, "propertyType"); @@ -493,7 +520,8 @@ public Builder propertyType(PropertyType propertyType) { } /** - * The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. + * The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST + * is not yet supported. */ public Builder propertyType(Optional propertyType) { Utils.checkNotNull(propertyType, "propertyType"); @@ -535,7 +563,11 @@ public Builder hideUiFacet(Optional hideUiFacet) { /** - * Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), where N is the number of non-hidden UI facets. These facets will be ordered below the built-in "Type" and "Tag" operators. + * Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for + * all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), + * where N is the number of non-hidden UI facets. + * + *

These facets will be ordered below the built-in "Type" and "Tag" operators. */ public Builder uiFacetOrder(long uiFacetOrder) { Utils.checkNotNull(uiFacetOrder, "uiFacetOrder"); @@ -544,7 +576,11 @@ public Builder uiFacetOrder(long uiFacetOrder) { } /** - * Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), where N is the number of non-hidden UI facets. These facets will be ordered below the built-in "Type" and "Tag" operators. + * Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for + * all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), + * where N is the number of non-hidden UI facets. + * + *

These facets will be ordered below the built-in "Type" and "Tag" operators. */ public Builder uiFacetOrder(Optional uiFacetOrder) { Utils.checkNotNull(uiFacetOrder, "uiFacetOrder"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PropertyType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PropertyType.java index 11cd3ac5..3bef58ad 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PropertyType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PropertyType.java @@ -11,7 +11,8 @@ /** * PropertyType * - *

The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. + *

The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST + * is not yet supported. */ public enum PropertyType { TEXT("TEXT"), diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Quicklink.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Quicklink.java index 8aca02b6..a31e9b03 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Quicklink.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Quicklink.java @@ -18,7 +18,8 @@ /** * Quicklink * - *

An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new issue" for jira. + *

An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new + * issue" for jira. */ public class Quicklink { /** diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/RecommendationsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/RecommendationsRequest.java index fd3b3171..33c5fbcc 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/RecommendationsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/RecommendationsRequest.java @@ -26,7 +26,8 @@ public class RecommendationsRequest { private Optional timestamp; /** - * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. + * A previously received trackingToken for a search associated with the same query. Useful for more + * requests and requests for other tabs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trackingToken") @@ -43,7 +44,8 @@ public class RecommendationsRequest { private Optional sourceDocument; /** - * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + * Hint to the server about how many results to send back. Server may return less or more. Structured + * results and clustered results don't count towards pageSize. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("pageSize") @@ -109,7 +111,8 @@ public Optional timestamp() { } /** - * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. + * A previously received trackingToken for a search associated with the same query. Useful for more + * requests and requests for other tabs. */ @JsonIgnore public Optional trackingToken() { @@ -129,7 +132,8 @@ public Optional sourceDocument() { } /** - * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + * Hint to the server about how many results to send back. Server may return less or more. Structured + * results and clustered results don't count towards pageSize. */ @JsonIgnore public Optional pageSize() { @@ -181,7 +185,8 @@ public RecommendationsRequest withTimestamp(Optional timestamp) } /** - * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. + * A previously received trackingToken for a search associated with the same query. Useful for more + * requests and requests for other tabs. */ public RecommendationsRequest withTrackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -191,7 +196,8 @@ public RecommendationsRequest withTrackingToken(String trackingToken) { /** - * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. + * A previously received trackingToken for a search associated with the same query. Useful for more + * requests and requests for other tabs. */ public RecommendationsRequest withTrackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -226,7 +232,8 @@ public RecommendationsRequest withSourceDocument(Optional so } /** - * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + * Hint to the server about how many results to send back. Server may return less or more. Structured + * results and clustered results don't count towards pageSize. */ public RecommendationsRequest withPageSize(long pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -236,7 +243,8 @@ public RecommendationsRequest withPageSize(long pageSize) { /** - * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + * Hint to the server about how many results to send back. Server may return less or more. Structured + * results and clustered results don't count towards pageSize. */ public RecommendationsRequest withPageSize(Optional pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -374,7 +382,8 @@ public Builder timestamp(Optional timestamp) { /** - * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. + * A previously received trackingToken for a search associated with the same query. Useful for more + * requests and requests for other tabs. */ public Builder trackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -383,7 +392,8 @@ public Builder trackingToken(String trackingToken) { } /** - * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. + * A previously received trackingToken for a search associated with the same query. Useful for more + * requests and requests for other tabs. */ public Builder trackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -419,7 +429,8 @@ public Builder sourceDocument(Optional sourceDocument) { /** - * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + * Hint to the server about how many results to send back. Server may return less or more. Structured + * results and clustered results don't count towards pageSize. */ public Builder pageSize(long pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -428,7 +439,8 @@ public Builder pageSize(long pageSize) { } /** - * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + * Hint to the server about how many results to send back. Server may return less or more. Structured + * results and clustered results don't count towards pageSize. */ public Builder pageSize(Optional pageSize) { Utils.checkNotNull(pageSize, "pageSize"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/RecommendationsRequestOptions.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/RecommendationsRequestOptions.java index 435745d9..f5c66d10 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/RecommendationsRequestOptions.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/RecommendationsRequestOptions.java @@ -25,7 +25,8 @@ public class RecommendationsRequestOptions { private Optional datasourceFilter; /** - * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results are returned if missing. + * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results + * are returned if missing. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("datasourcesFilter") @@ -83,7 +84,8 @@ public Optional datasourceFilter() { } /** - * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results are returned if missing. + * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results + * are returned if missing. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -140,7 +142,8 @@ public RecommendationsRequestOptions withDatasourceFilter(Optional datas } /** - * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results are returned if missing. + * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results + * are returned if missing. */ public RecommendationsRequestOptions withDatasourcesFilter(List datasourcesFilter) { Utils.checkNotNull(datasourcesFilter, "datasourcesFilter"); @@ -150,7 +153,8 @@ public RecommendationsRequestOptions withDatasourcesFilter(List datasour /** - * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results are returned if missing. + * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results + * are returned if missing. */ public RecommendationsRequestOptions withDatasourcesFilter(Optional> datasourcesFilter) { Utils.checkNotNull(datasourcesFilter, "datasourcesFilter"); @@ -281,7 +285,8 @@ public Builder datasourceFilter(Optional datasourceFilter) { /** - * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results are returned if missing. + * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results + * are returned if missing. */ public Builder datasourcesFilter(List datasourcesFilter) { Utils.checkNotNull(datasourcesFilter, "datasourcesFilter"); @@ -290,7 +295,8 @@ public Builder datasourcesFilter(List datasourcesFilter) { } /** - * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results are returned if missing. + * Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results + * are returned if missing. */ public Builder datasourcesFilter(Optional> datasourcesFilter) { Utils.checkNotNull(datasourcesFilter, "datasourcesFilter"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/RelatedDocuments.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/RelatedDocuments.java index ca345b13..d75fc927 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/RelatedDocuments.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/RelatedDocuments.java @@ -26,7 +26,8 @@ public class RelatedDocuments { private Optional relation; /** - * Which entity in the response that this entity relates to. Relevant when there are multiple entities associated with the response (such as merged customers) + * Which entity in the response that this entity relates to. Relevant when there are multiple entities + * associated with the response (such as merged customers) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("associatedEntityId") @@ -48,7 +49,8 @@ public class RelatedDocuments { private Optional> documents; /** - * A truncated list of documents associated with this relation. To be used in favor of `documents` because it contains a trackingToken. + * A truncated list of documents associated with this relation. To be used in favor of `documents` + * because it contains a trackingToken. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("results") @@ -88,7 +90,8 @@ public Optional relation() { } /** - * Which entity in the response that this entity relates to. Relevant when there are multiple entities associated with the response (such as merged customers) + * Which entity in the response that this entity relates to. Relevant when there are multiple entities + * associated with the response (such as merged customers) */ @JsonIgnore public Optional associatedEntityId() { @@ -114,7 +117,8 @@ public Optional> documents() { } /** - * A truncated list of documents associated with this relation. To be used in favor of `documents` because it contains a trackingToken. + * A truncated list of documents associated with this relation. To be used in favor of `documents` + * because it contains a trackingToken. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -147,7 +151,8 @@ public RelatedDocuments withRelation(Optional relation) { } /** - * Which entity in the response that this entity relates to. Relevant when there are multiple entities associated with the response (such as merged customers) + * Which entity in the response that this entity relates to. Relevant when there are multiple entities + * associated with the response (such as merged customers) */ public RelatedDocuments withAssociatedEntityId(String associatedEntityId) { Utils.checkNotNull(associatedEntityId, "associatedEntityId"); @@ -157,7 +162,8 @@ public RelatedDocuments withAssociatedEntityId(String associatedEntityId) { /** - * Which entity in the response that this entity relates to. Relevant when there are multiple entities associated with the response (such as merged customers) + * Which entity in the response that this entity relates to. Relevant when there are multiple entities + * associated with the response (such as merged customers) */ public RelatedDocuments withAssociatedEntityId(Optional associatedEntityId) { Utils.checkNotNull(associatedEntityId, "associatedEntityId"); @@ -204,7 +210,8 @@ public RelatedDocuments withDocuments(Optional> documen } /** - * A truncated list of documents associated with this relation. To be used in favor of `documents` because it contains a trackingToken. + * A truncated list of documents associated with this relation. To be used in favor of `documents` + * because it contains a trackingToken. */ public RelatedDocuments withResults(List results) { Utils.checkNotNull(results, "results"); @@ -214,7 +221,8 @@ public RelatedDocuments withResults(List results) { /** - * A truncated list of documents associated with this relation. To be used in favor of `documents` because it contains a trackingToken. + * A truncated list of documents associated with this relation. To be used in favor of `documents` + * because it contains a trackingToken. */ public RelatedDocuments withResults(Optional> results) { Utils.checkNotNull(results, "results"); @@ -295,7 +303,8 @@ public Builder relation(Optional relation) { /** - * Which entity in the response that this entity relates to. Relevant when there are multiple entities associated with the response (such as merged customers) + * Which entity in the response that this entity relates to. Relevant when there are multiple entities + * associated with the response (such as merged customers) */ public Builder associatedEntityId(String associatedEntityId) { Utils.checkNotNull(associatedEntityId, "associatedEntityId"); @@ -304,7 +313,8 @@ public Builder associatedEntityId(String associatedEntityId) { } /** - * Which entity in the response that this entity relates to. Relevant when there are multiple entities associated with the response (such as merged customers) + * Which entity in the response that this entity relates to. Relevant when there are multiple entities + * associated with the response (such as merged customers) */ public Builder associatedEntityId(Optional associatedEntityId) { Utils.checkNotNull(associatedEntityId, "associatedEntityId"); @@ -352,7 +362,8 @@ public Builder documents(Optional> documents) { /** - * A truncated list of documents associated with this relation. To be used in favor of `documents` because it contains a trackingToken. + * A truncated list of documents associated with this relation. To be used in favor of `documents` + * because it contains a trackingToken. */ public Builder results(List results) { Utils.checkNotNull(results, "results"); @@ -361,7 +372,8 @@ public Builder results(List results) { } /** - * A truncated list of documents associated with this relation. To be used in favor of `documents` because it contains a trackingToken. + * A truncated list of documents associated with this relation. To be used in favor of `documents` + * because it contains a trackingToken. */ public Builder results(Optional> results) { Utils.checkNotNull(results, "results"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Reminder.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Reminder.java index 15e1c9c4..9547b964 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Reminder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Reminder.java @@ -40,7 +40,8 @@ public class Reminder { private Optional createdAt; /** - * An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + * An optional free-text reason for the reminder. This is particularly useful when a reminder is used + * to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("reason") @@ -100,7 +101,8 @@ public Optional createdAt() { } /** - * An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + * An optional free-text reason for the reminder. This is particularly useful when a reminder is used + * to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). */ @JsonIgnore public Optional reason() { @@ -160,7 +162,8 @@ public Reminder withCreatedAt(Optional createdAt) { } /** - * An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + * An optional free-text reason for the reminder. This is particularly useful when a reminder is used + * to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). */ public Reminder withReason(String reason) { Utils.checkNotNull(reason, "reason"); @@ -170,7 +173,8 @@ public Reminder withReason(String reason) { /** - * An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + * An optional free-text reason for the reminder. This is particularly useful when a reminder is used + * to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). */ public Reminder withReason(Optional reason) { Utils.checkNotNull(reason, "reason"); @@ -280,7 +284,8 @@ public Builder createdAt(Optional createdAt) { /** - * An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + * An optional free-text reason for the reminder. This is particularly useful when a reminder is used + * to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). */ public Builder reason(String reason) { Utils.checkNotNull(reason, "reason"); @@ -289,7 +294,8 @@ public Builder reason(String reason) { } /** - * An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + * An optional free-text reason for the reminder. This is particularly useful when a reminder is used + * to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). */ public Builder reason(Optional reason) { Utils.checkNotNull(reason, "reason"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ReminderRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ReminderRequest.java index cc6f8e47..dccbd51d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ReminderRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ReminderRequest.java @@ -37,7 +37,8 @@ public class ReminderRequest { private Optional remindInDays; /** - * An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + * An optional free-text reason for the reminder. This is particularly useful when a reminder is used + * to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("reason") @@ -90,7 +91,8 @@ public Optional remindInDays() { } /** - * An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + * An optional free-text reason for the reminder. This is particularly useful when a reminder is used + * to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). */ @JsonIgnore public Optional reason() { @@ -150,7 +152,8 @@ public ReminderRequest withRemindInDays(Optional remindInDays) { } /** - * An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + * An optional free-text reason for the reminder. This is particularly useful when a reminder is used + * to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). */ public ReminderRequest withReason(String reason) { Utils.checkNotNull(reason, "reason"); @@ -160,7 +163,8 @@ public ReminderRequest withReason(String reason) { /** - * An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + * An optional free-text reason for the reminder. This is particularly useful when a reminder is used + * to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). */ public ReminderRequest withReason(Optional reason) { Utils.checkNotNull(reason, "reason"); @@ -265,7 +269,8 @@ public Builder remindInDays(Optional remindInDays) { /** - * An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + * An optional free-text reason for the reminder. This is particularly useful when a reminder is used + * to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). */ public Builder reason(String reason) { Utils.checkNotNull(reason, "reason"); @@ -274,7 +279,8 @@ public Builder reason(String reason) { } /** - * An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). + * An optional free-text reason for the reminder. This is particularly useful when a reminder is used + * to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). */ public Builder reason(Optional reason) { Utils.checkNotNull(reason, "reason"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/RestrictionFilters.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/RestrictionFilters.java index 8a19e9ca..5121d1da 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/RestrictionFilters.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/RestrictionFilters.java @@ -18,7 +18,11 @@ public class RestrictionFilters { /** - * Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. + * Specifications for containers that should be used as part of the restriction (include/exclude). + * Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, + * Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. + * + *

Recursive memberships do not apply for Collections. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("containerSpecs") @@ -36,7 +40,11 @@ public RestrictionFilters() { } /** - * Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. + * Specifications for containers that should be used as part of the restriction (include/exclude). + * Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, + * Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. + * + *

Recursive memberships do not apply for Collections. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -50,7 +58,11 @@ public static Builder builder() { /** - * Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. + * Specifications for containers that should be used as part of the restriction (include/exclude). + * Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, + * Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. + * + *

Recursive memberships do not apply for Collections. */ public RestrictionFilters withContainerSpecs(List containerSpecs) { Utils.checkNotNull(containerSpecs, "containerSpecs"); @@ -60,7 +72,11 @@ public RestrictionFilters withContainerSpecs(List containerSp /** - * Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. + * Specifications for containers that should be used as part of the restriction (include/exclude). + * Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, + * Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. + * + *

Recursive memberships do not apply for Collections. */ public RestrictionFilters withContainerSpecs(Optional> containerSpecs) { Utils.checkNotNull(containerSpecs, "containerSpecs"); @@ -104,7 +120,11 @@ private Builder() { /** - * Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. + * Specifications for containers that should be used as part of the restriction (include/exclude). + * Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, + * Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. + * + *

Recursive memberships do not apply for Collections. */ public Builder containerSpecs(List containerSpecs) { Utils.checkNotNull(containerSpecs, "containerSpecs"); @@ -113,7 +133,11 @@ public Builder containerSpecs(List containerSpecs) { } /** - * Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. + * Specifications for containers that should be used as part of the restriction (include/exclude). + * Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, + * Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. + * + *

Recursive memberships do not apply for Collections. */ public Builder containerSpecs(Optional> containerSpecs) { Utils.checkNotNull(containerSpecs, "containerSpecs"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ResultsDescription.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ResultsDescription.java index fe937fae..0953b6f5 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ResultsDescription.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ResultsDescription.java @@ -17,7 +17,8 @@ public class ResultsDescription { /** - * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about this topic' for experts in people tab. + * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about + * this topic' for experts in people tab. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("text") @@ -45,7 +46,8 @@ public ResultsDescription() { } /** - * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about this topic' for experts in people tab. + * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about + * this topic' for experts in people tab. */ @JsonIgnore public Optional text() { @@ -67,7 +69,8 @@ public static Builder builder() { /** - * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about this topic' for experts in people tab. + * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about + * this topic' for experts in people tab. */ public ResultsDescription withText(String text) { Utils.checkNotNull(text, "text"); @@ -77,7 +80,8 @@ public ResultsDescription withText(String text) { /** - * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about this topic' for experts in people tab. + * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about + * this topic' for experts in people tab. */ public ResultsDescription withText(Optional text) { Utils.checkNotNull(text, "text"); @@ -144,7 +148,8 @@ private Builder() { /** - * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about this topic' for experts in people tab. + * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about + * this topic' for experts in people tab. */ public Builder text(String text) { Utils.checkNotNull(text, "text"); @@ -153,7 +158,8 @@ public Builder text(String text) { } /** - * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about this topic' for experts in people tab. + * Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about + * this topic' for experts in people tab. */ public Builder text(Optional text) { Utils.checkNotNull(text, "text"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ResultsResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ResultsResponse.java index 386b7b4c..1d71cbe9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ResultsResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ResultsResponse.java @@ -19,7 +19,8 @@ public class ResultsResponse { /** - * A token that should be passed for additional requests related to this request (such as more results requests). + * A token that should be passed for additional requests related to this request (such as more results + * requests). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trackingToken") @@ -99,7 +100,8 @@ public ResultsResponse() { } /** - * A token that should be passed for additional requests related to this request (such as more results requests). + * A token that should be passed for additional requests related to this request (such as more results + * requests). */ @JsonIgnore public Optional trackingToken() { @@ -158,7 +160,8 @@ public static Builder builder() { /** - * A token that should be passed for additional requests related to this request (such as more results requests). + * A token that should be passed for additional requests related to this request (such as more results + * requests). */ public ResultsResponse withTrackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -168,7 +171,8 @@ public ResultsResponse withTrackingToken(String trackingToken) { /** - * A token that should be passed for additional requests related to this request (such as more results requests). + * A token that should be passed for additional requests related to this request (such as more results + * requests). */ public ResultsResponse withTrackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -345,7 +349,8 @@ private Builder() { /** - * A token that should be passed for additional requests related to this request (such as more results requests). + * A token that should be passed for additional requests related to this request (such as more results + * requests). */ public Builder trackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -354,7 +359,8 @@ public Builder trackingToken(String trackingToken) { } /** - * A token that should be passed for additional requests related to this request (such as more results requests). + * A token that should be passed for additional requests related to this request (such as more results + * requests). */ public Builder trackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/RotateTokenResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/RotateTokenResponse.java index 28b4e171..c62c5b25 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/RotateTokenResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/RotateTokenResponse.java @@ -28,14 +28,21 @@ public class RotateTokenResponse { private Optional rawSecret; /** - * Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered unusable. + * Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be + * rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered + * unusable. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("createdAt") private Optional createdAt; /** - * Refers to the time period in minutes before which this token needs to be rotated. It is required to rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp provided during token creation even if the token is being regularly rotated. `rotationPeriodMinutes` property is inherited from the parent token being rotated + * Refers to the time period in minutes before which this token needs to be rotated. It is required to + * rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, + * otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp + * provided during token creation even if the token is being regularly rotated. + * + *

`rotationPeriodMinutes` property is inherited from the parent token being rotated */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("rotationPeriodMinutes") @@ -67,7 +74,9 @@ public Optional rawSecret() { } /** - * Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered unusable. + * Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be + * rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered + * unusable. */ @JsonIgnore public Optional createdAt() { @@ -75,7 +84,12 @@ public Optional createdAt() { } /** - * Refers to the time period in minutes before which this token needs to be rotated. It is required to rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp provided during token creation even if the token is being regularly rotated. `rotationPeriodMinutes` property is inherited from the parent token being rotated + * Refers to the time period in minutes before which this token needs to be rotated. It is required to + * rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, + * otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp + * provided during token creation even if the token is being regularly rotated. + * + *

`rotationPeriodMinutes` property is inherited from the parent token being rotated */ @JsonIgnore public Optional rotationPeriodMinutes() { @@ -107,7 +121,9 @@ public RotateTokenResponse withRawSecret(Optional rawSecret) { } /** - * Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered unusable. + * Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be + * rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered + * unusable. */ public RotateTokenResponse withCreatedAt(long createdAt) { Utils.checkNotNull(createdAt, "createdAt"); @@ -117,7 +133,9 @@ public RotateTokenResponse withCreatedAt(long createdAt) { /** - * Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered unusable. + * Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be + * rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered + * unusable. */ public RotateTokenResponse withCreatedAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); @@ -126,7 +144,12 @@ public RotateTokenResponse withCreatedAt(Optional createdAt) { } /** - * Refers to the time period in minutes before which this token needs to be rotated. It is required to rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp provided during token creation even if the token is being regularly rotated. `rotationPeriodMinutes` property is inherited from the parent token being rotated + * Refers to the time period in minutes before which this token needs to be rotated. It is required to + * rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, + * otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp + * provided during token creation even if the token is being regularly rotated. + * + *

`rotationPeriodMinutes` property is inherited from the parent token being rotated */ public RotateTokenResponse withRotationPeriodMinutes(long rotationPeriodMinutes) { Utils.checkNotNull(rotationPeriodMinutes, "rotationPeriodMinutes"); @@ -136,7 +159,12 @@ public RotateTokenResponse withRotationPeriodMinutes(long rotationPeriodMinutes) /** - * Refers to the time period in minutes before which this token needs to be rotated. It is required to rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp provided during token creation even if the token is being regularly rotated. `rotationPeriodMinutes` property is inherited from the parent token being rotated + * Refers to the time period in minutes before which this token needs to be rotated. It is required to + * rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, + * otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp + * provided during token creation even if the token is being regularly rotated. + * + *

`rotationPeriodMinutes` property is inherited from the parent token being rotated */ public RotateTokenResponse withRotationPeriodMinutes(Optional rotationPeriodMinutes) { Utils.checkNotNull(rotationPeriodMinutes, "rotationPeriodMinutes"); @@ -207,7 +235,9 @@ public Builder rawSecret(Optional rawSecret) { /** - * Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered unusable. + * Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be + * rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered + * unusable. */ public Builder createdAt(long createdAt) { Utils.checkNotNull(createdAt, "createdAt"); @@ -216,7 +246,9 @@ public Builder createdAt(long createdAt) { } /** - * Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered unusable. + * Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be + * rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered + * unusable. */ public Builder createdAt(Optional createdAt) { Utils.checkNotNull(createdAt, "createdAt"); @@ -226,7 +258,12 @@ public Builder createdAt(Optional createdAt) { /** - * Refers to the time period in minutes before which this token needs to be rotated. It is required to rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp provided during token creation even if the token is being regularly rotated. `rotationPeriodMinutes` property is inherited from the parent token being rotated + * Refers to the time period in minutes before which this token needs to be rotated. It is required to + * rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, + * otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp + * provided during token creation even if the token is being regularly rotated. + * + *

`rotationPeriodMinutes` property is inherited from the parent token being rotated */ public Builder rotationPeriodMinutes(long rotationPeriodMinutes) { Utils.checkNotNull(rotationPeriodMinutes, "rotationPeriodMinutes"); @@ -235,7 +272,12 @@ public Builder rotationPeriodMinutes(long rotationPeriodMinutes) { } /** - * Refers to the time period in minutes before which this token needs to be rotated. It is required to rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp provided during token creation even if the token is being regularly rotated. `rotationPeriodMinutes` property is inherited from the parent token being rotated + * Refers to the time period in minutes before which this token needs to be rotated. It is required to + * rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, + * otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp + * provided during token creation even if the token is being regularly rotated. + * + *

`rotationPeriodMinutes` property is inherited from the parent token being rotated */ public Builder rotationPeriodMinutes(Optional rotationPeriodMinutes) { Utils.checkNotNull(rotationPeriodMinutes, "rotationPeriodMinutes"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchAgentsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchAgentsRequest.java index da317b7b..81b197d2 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchAgentsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchAgentsRequest.java @@ -16,7 +16,8 @@ public class SearchAgentsRequest { /** - * Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter. + * Filters on the name of the agent. The keyword search is case-insensitive. If search string is + * ommited or empty, acts as no filter. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") @@ -34,7 +35,8 @@ public SearchAgentsRequest() { } /** - * Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter. + * Filters on the name of the agent. The keyword search is case-insensitive. If search string is + * ommited or empty, acts as no filter. */ @JsonIgnore public Optional name() { @@ -47,7 +49,8 @@ public static Builder builder() { /** - * Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter. + * Filters on the name of the agent. The keyword search is case-insensitive. If search string is + * ommited or empty, acts as no filter. */ public SearchAgentsRequest withName(String name) { Utils.checkNotNull(name, "name"); @@ -57,7 +60,8 @@ public SearchAgentsRequest withName(String name) { /** - * Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter. + * Filters on the name of the agent. The keyword search is case-insensitive. If search string is + * ommited or empty, acts as no filter. */ public SearchAgentsRequest withName(Optional name) { Utils.checkNotNull(name, "name"); @@ -101,7 +105,8 @@ private Builder() { /** - * Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter. + * Filters on the name of the agent. The keyword search is case-insensitive. If search string is + * ommited or empty, acts as no filter. */ public Builder name(String name) { Utils.checkNotNull(name, "name"); @@ -110,7 +115,8 @@ public Builder name(String name) { } /** - * Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter. + * Filters on the name of the agent. The keyword search is case-insensitive. If search string is + * ommited or empty, acts as no filter. */ public Builder name(Optional name) { Utils.checkNotNull(name, "name"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchProviderInfo.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchProviderInfo.java index 2f963067..722aed82 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchProviderInfo.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchProviderInfo.java @@ -30,7 +30,8 @@ public class SearchProviderInfo { private Optional logoUrl; /** - * URL template that can be used to perform the suggested search by replacing the {query} placeholder with the query suggestion. + * URL template that can be used to perform the suggested search by replacing the {query} placeholder + * with the query suggestion. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("searchLinkUrlTemplate") @@ -70,7 +71,8 @@ public Optional logoUrl() { } /** - * URL template that can be used to perform the suggested search by replacing the {query} placeholder with the query suggestion. + * URL template that can be used to perform the suggested search by replacing the {query} placeholder + * with the query suggestion. */ @JsonIgnore public Optional searchLinkUrlTemplate() { @@ -121,7 +123,8 @@ public SearchProviderInfo withLogoUrl(Optional logoUrl) { } /** - * URL template that can be used to perform the suggested search by replacing the {query} placeholder with the query suggestion. + * URL template that can be used to perform the suggested search by replacing the {query} placeholder + * with the query suggestion. */ public SearchProviderInfo withSearchLinkUrlTemplate(String searchLinkUrlTemplate) { Utils.checkNotNull(searchLinkUrlTemplate, "searchLinkUrlTemplate"); @@ -131,7 +134,8 @@ public SearchProviderInfo withSearchLinkUrlTemplate(String searchLinkUrlTemplate /** - * URL template that can be used to perform the suggested search by replacing the {query} placeholder with the query suggestion. + * URL template that can be used to perform the suggested search by replacing the {query} placeholder + * with the query suggestion. */ public SearchProviderInfo withSearchLinkUrlTemplate(Optional searchLinkUrlTemplate) { Utils.checkNotNull(searchLinkUrlTemplate, "searchLinkUrlTemplate"); @@ -221,7 +225,8 @@ public Builder logoUrl(Optional logoUrl) { /** - * URL template that can be used to perform the suggested search by replacing the {query} placeholder with the query suggestion. + * URL template that can be used to perform the suggested search by replacing the {query} placeholder + * with the query suggestion. */ public Builder searchLinkUrlTemplate(String searchLinkUrlTemplate) { Utils.checkNotNull(searchLinkUrlTemplate, "searchLinkUrlTemplate"); @@ -230,7 +235,8 @@ public Builder searchLinkUrlTemplate(String searchLinkUrlTemplate) { } /** - * URL template that can be used to perform the suggested search by replacing the {query} placeholder with the query suggestion. + * URL template that can be used to perform the suggested search by replacing the {query} placeholder + * with the query suggestion. */ public Builder searchLinkUrlTemplate(Optional searchLinkUrlTemplate) { Utils.checkNotNull(searchLinkUrlTemplate, "searchLinkUrlTemplate"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchRequest.java index b11a5cbe..773b287a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchRequest.java @@ -28,7 +28,8 @@ public class SearchRequest { private Optional timestamp; /** - * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. + * A previously received trackingToken for a search associated with the same query. Useful for more + * requests and requests for other tabs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trackingToken") @@ -45,7 +46,8 @@ public class SearchRequest { private Optional sourceDocument; /** - * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + * Hint to the server about how many results to send back. Server may return less or more. Structured + * results and clustered results don't count towards pageSize. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("pageSize") @@ -65,14 +67,16 @@ public class SearchRequest { private String query; /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor") private Optional cursor; /** - * The unique IDs of the result tabs for which to fetch results. This will have precedence over datasource filters if both are specified and in conflict. + * The unique IDs of the result tabs for which to fetch results. This will have precedence over + * datasource filters if both are specified and in conflict. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("resultTabIds") @@ -89,7 +93,8 @@ public class SearchRequest { private Optional requestOptions; /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("timeoutMillis") @@ -163,7 +168,8 @@ public Optional timestamp() { } /** - * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. + * A previously received trackingToken for a search associated with the same query. Useful for more + * requests and requests for other tabs. */ @JsonIgnore public Optional trackingToken() { @@ -183,7 +189,8 @@ public Optional sourceDocument() { } /** - * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + * Hint to the server about how many results to send back. Server may return less or more. Structured + * results and clustered results don't count towards pageSize. */ @JsonIgnore public Optional pageSize() { @@ -207,7 +214,8 @@ public String query() { } /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ @JsonIgnore public Optional cursor() { @@ -215,7 +223,8 @@ public Optional cursor() { } /** - * The unique IDs of the result tabs for which to fetch results. This will have precedence over datasource filters if both are specified and in conflict. + * The unique IDs of the result tabs for which to fetch results. This will have precedence over + * datasource filters if both are specified and in conflict. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -236,7 +245,8 @@ public Optional requestOptions() { } /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ @JsonIgnore public Optional timeoutMillis() { @@ -276,7 +286,8 @@ public SearchRequest withTimestamp(Optional timestamp) { } /** - * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. + * A previously received trackingToken for a search associated with the same query. Useful for more + * requests and requests for other tabs. */ public SearchRequest withTrackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -286,7 +297,8 @@ public SearchRequest withTrackingToken(String trackingToken) { /** - * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. + * A previously received trackingToken for a search associated with the same query. Useful for more + * requests and requests for other tabs. */ public SearchRequest withTrackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -321,7 +333,8 @@ public SearchRequest withSourceDocument(Optional sourceDocum } /** - * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + * Hint to the server about how many results to send back. Server may return less or more. Structured + * results and clustered results don't count towards pageSize. */ public SearchRequest withPageSize(long pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -331,7 +344,8 @@ public SearchRequest withPageSize(long pageSize) { /** - * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + * Hint to the server about how many results to send back. Server may return less or more. Structured + * results and clustered results don't count towards pageSize. */ public SearchRequest withPageSize(Optional pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -368,7 +382,8 @@ public SearchRequest withQuery(String query) { } /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public SearchRequest withCursor(String cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -378,7 +393,8 @@ public SearchRequest withCursor(String cursor) { /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public SearchRequest withCursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -387,7 +403,8 @@ public SearchRequest withCursor(Optional cursor) { } /** - * The unique IDs of the result tabs for which to fetch results. This will have precedence over datasource filters if both are specified and in conflict. + * The unique IDs of the result tabs for which to fetch results. This will have precedence over + * datasource filters if both are specified and in conflict. */ public SearchRequest withResultTabIds(List resultTabIds) { Utils.checkNotNull(resultTabIds, "resultTabIds"); @@ -397,7 +414,8 @@ public SearchRequest withResultTabIds(List resultTabIds) { /** - * The unique IDs of the result tabs for which to fetch results. This will have precedence over datasource filters if both are specified and in conflict. + * The unique IDs of the result tabs for which to fetch results. This will have precedence over + * datasource filters if both are specified and in conflict. */ public SearchRequest withResultTabIds(Optional> resultTabIds) { Utils.checkNotNull(resultTabIds, "resultTabIds"); @@ -432,7 +450,8 @@ public SearchRequest withRequestOptions(Optional } /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ public SearchRequest withTimeoutMillis(long timeoutMillis) { Utils.checkNotNull(timeoutMillis, "timeoutMillis"); @@ -442,7 +461,8 @@ public SearchRequest withTimeoutMillis(long timeoutMillis) { /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ public SearchRequest withTimeoutMillis(Optional timeoutMillis) { Utils.checkNotNull(timeoutMillis, "timeoutMillis"); @@ -576,7 +596,8 @@ public Builder timestamp(Optional timestamp) { /** - * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. + * A previously received trackingToken for a search associated with the same query. Useful for more + * requests and requests for other tabs. */ public Builder trackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -585,7 +606,8 @@ public Builder trackingToken(String trackingToken) { } /** - * A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. + * A previously received trackingToken for a search associated with the same query. Useful for more + * requests and requests for other tabs. */ public Builder trackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -621,7 +643,8 @@ public Builder sourceDocument(Optional sourceDocument) { /** - * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + * Hint to the server about how many results to send back. Server may return less or more. Structured + * results and clustered results don't count towards pageSize. */ public Builder pageSize(long pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -630,7 +653,8 @@ public Builder pageSize(long pageSize) { } /** - * Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. + * Hint to the server about how many results to send back. Server may return less or more. Structured + * results and clustered results don't count towards pageSize. */ public Builder pageSize(Optional pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -669,7 +693,8 @@ public Builder query(String query) { /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public Builder cursor(String cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -678,7 +703,8 @@ public Builder cursor(String cursor) { } /** - * Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. + * Pagination cursor. A previously received opaque token representing the position in the overall + * results at which to start. */ public Builder cursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -688,7 +714,8 @@ public Builder cursor(Optional cursor) { /** - * The unique IDs of the result tabs for which to fetch results. This will have precedence over datasource filters if both are specified and in conflict. + * The unique IDs of the result tabs for which to fetch results. This will have precedence over + * datasource filters if both are specified and in conflict. */ public Builder resultTabIds(List resultTabIds) { Utils.checkNotNull(resultTabIds, "resultTabIds"); @@ -697,7 +724,8 @@ public Builder resultTabIds(List resultTabIds) { } /** - * The unique IDs of the result tabs for which to fetch results. This will have precedence over datasource filters if both are specified and in conflict. + * The unique IDs of the result tabs for which to fetch results. This will have precedence over + * datasource filters if both are specified and in conflict. */ public Builder resultTabIds(Optional> resultTabIds) { Utils.checkNotNull(resultTabIds, "resultTabIds"); @@ -733,7 +761,8 @@ public Builder requestOptions(Optional requestOp /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ public Builder timeoutMillis(long timeoutMillis) { Utils.checkNotNull(timeoutMillis, "timeoutMillis"); @@ -742,7 +771,8 @@ public Builder timeoutMillis(long timeoutMillis) { } /** - * Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. + * Timeout in milliseconds for the request. A `408` error will be returned if handling the request + * takes longer. */ public Builder timeoutMillis(Optional timeoutMillis) { Utils.checkNotNull(timeoutMillis, "timeoutMillis"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchRequestInputDetails.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchRequestInputDetails.java index 49cd74d5..f48acc53 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchRequestInputDetails.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchRequestInputDetails.java @@ -17,7 +17,9 @@ public class SearchRequestInputDetails { /** - * Whether the associated query was at least partially copy-pasted. If subsequent requests are issued after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue to be set for those requests. + * Whether the associated query was at least partially copy-pasted. If subsequent requests are issued + * after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue + * to be set for those requests. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("hasCopyPaste") @@ -35,7 +37,9 @@ public SearchRequestInputDetails() { } /** - * Whether the associated query was at least partially copy-pasted. If subsequent requests are issued after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue to be set for those requests. + * Whether the associated query was at least partially copy-pasted. If subsequent requests are issued + * after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue + * to be set for those requests. */ @JsonIgnore public Optional hasCopyPaste() { @@ -48,7 +52,9 @@ public static Builder builder() { /** - * Whether the associated query was at least partially copy-pasted. If subsequent requests are issued after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue to be set for those requests. + * Whether the associated query was at least partially copy-pasted. If subsequent requests are issued + * after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue + * to be set for those requests. */ public SearchRequestInputDetails withHasCopyPaste(boolean hasCopyPaste) { Utils.checkNotNull(hasCopyPaste, "hasCopyPaste"); @@ -58,7 +64,9 @@ public SearchRequestInputDetails withHasCopyPaste(boolean hasCopyPaste) { /** - * Whether the associated query was at least partially copy-pasted. If subsequent requests are issued after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue to be set for those requests. + * Whether the associated query was at least partially copy-pasted. If subsequent requests are issued + * after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue + * to be set for those requests. */ public SearchRequestInputDetails withHasCopyPaste(Optional hasCopyPaste) { Utils.checkNotNull(hasCopyPaste, "hasCopyPaste"); @@ -102,7 +110,9 @@ private Builder() { /** - * Whether the associated query was at least partially copy-pasted. If subsequent requests are issued after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue to be set for those requests. + * Whether the associated query was at least partially copy-pasted. If subsequent requests are issued + * after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue + * to be set for those requests. */ public Builder hasCopyPaste(boolean hasCopyPaste) { Utils.checkNotNull(hasCopyPaste, "hasCopyPaste"); @@ -111,7 +121,9 @@ public Builder hasCopyPaste(boolean hasCopyPaste) { } /** - * Whether the associated query was at least partially copy-pasted. If subsequent requests are issued after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue to be set for those requests. + * Whether the associated query was at least partially copy-pasted. If subsequent requests are issued + * after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue + * to be set for those requests. */ public Builder hasCopyPaste(Optional hasCopyPaste) { Utils.checkNotNull(hasCopyPaste, "hasCopyPaste"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchRequestOptions.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchRequestOptions.java index d241df85..5edf783b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchRequestOptions.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchRequestOptions.java @@ -34,21 +34,25 @@ public class SearchRequestOptions { private Optional> datasourcesFilter; /** - * If true, the operators in the query are taken to override any operators in facetFilters in the case of conflict. This is used to correctly set rewrittenFacetFilters and rewrittenQuery. + * If true, the operators in the query are taken to override any operators in facetFilters in the case + * of conflict. This is used to correctly set rewrittenFacetFilters and rewrittenQuery. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("queryOverridesFacetFilters") private Optional queryOverridesFacetFilters; /** - * A list of filters for the query. An AND is assumed between different facetFilters. For example, owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. + * A list of filters for the query. An AND is assumed between different facetFilters. For example, + * owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("facetFilters") private Optional> facetFilters; /** - * A list of facet filter sets that will be OR'ed together. SearchRequestOptions where both facetFilterSets and facetFilters set are considered as bad request. Callers should set only one of these fields. + * A list of facet filter sets that will be OR'ed together. SearchRequestOptions where both + * facetFilterSets and facetFilters set are considered as bad request. Callers should set only one of + * these fields. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("facetFilterSets") @@ -66,7 +70,10 @@ public class SearchRequestOptions { private long facetBucketSize; /** - * Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If specified, these values will replace the standard default facets (last_updated_at, from, etc.). The requested facets will be returned alongside datasource-specific facets if searching a single datasource. + * Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If + * specified, these values will replace the standard default facets (last_updated_at, from, etc.). The + * requested facets will be returned alongside datasource-specific facets if searching a single + * datasource. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("defaultFacets") @@ -80,7 +87,8 @@ public class SearchRequestOptions { private Optional> authTokens; /** - * Hints that the QE should return result counts (via the datasource facet result) for all supported datasources, rather than just those specified in the datasource[s]Filter + * Hints that the QE should return result counts (via the datasource facet result) for all supported + * datasources, rather than just those specified in the datasource[s]Filter */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("fetchAllDatasourceCounts") @@ -94,7 +102,8 @@ public class SearchRequestOptions { private Optional> responseHints; /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("timezoneOffset") @@ -115,7 +124,11 @@ public class SearchRequestOptions { private Optional disableQueryAutocorrect; /** - * Enables expanded content to be returned for LLM usage. The size of content per result returned should be modified using maxSnippetSize. Server may return less or more than what is specified in maxSnippetSize. For more details, see https://developers.glean.com/guides/search/llm-content. + * Enables expanded content to be returned for LLM usage. The size of content per result returned + * should be modified using maxSnippetSize. Server may return less or more than what is specified in + * maxSnippetSize. + * + *

For more details, see https://developers.glean.com/guides/search/llm-content. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("returnLlmContentOverSnippets") @@ -214,7 +227,8 @@ public Optional> datasourcesFilter() { } /** - * If true, the operators in the query are taken to override any operators in facetFilters in the case of conflict. This is used to correctly set rewrittenFacetFilters and rewrittenQuery. + * If true, the operators in the query are taken to override any operators in facetFilters in the case + * of conflict. This is used to correctly set rewrittenFacetFilters and rewrittenQuery. */ @JsonIgnore public Optional queryOverridesFacetFilters() { @@ -222,7 +236,8 @@ public Optional queryOverridesFacetFilters() { } /** - * A list of filters for the query. An AND is assumed between different facetFilters. For example, owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. + * A list of filters for the query. An AND is assumed between different facetFilters. For example, + * owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -231,7 +246,9 @@ public Optional> facetFilters() { } /** - * A list of facet filter sets that will be OR'ed together. SearchRequestOptions where both facetFilterSets and facetFilters set are considered as bad request. Callers should set only one of these fields. + * A list of facet filter sets that will be OR'ed together. SearchRequestOptions where both + * facetFilterSets and facetFilters set are considered as bad request. Callers should set only one of + * these fields. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -254,7 +271,10 @@ public long facetBucketSize() { } /** - * Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If specified, these values will replace the standard default facets (last_updated_at, from, etc.). The requested facets will be returned alongside datasource-specific facets if searching a single datasource. + * Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If + * specified, these values will replace the standard default facets (last_updated_at, from, etc.). The + * requested facets will be returned alongside datasource-specific facets if searching a single + * datasource. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -272,7 +292,8 @@ public Optional> authTokens() { } /** - * Hints that the QE should return result counts (via the datasource facet result) for all supported datasources, rather than just those specified in the datasource[s]Filter + * Hints that the QE should return result counts (via the datasource facet result) for all supported + * datasources, rather than just those specified in the datasource[s]Filter */ @JsonIgnore public Optional fetchAllDatasourceCounts() { @@ -289,7 +310,8 @@ public Optional> responseHints() { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -313,7 +335,11 @@ public Optional disableQueryAutocorrect() { } /** - * Enables expanded content to be returned for LLM usage. The size of content per result returned should be modified using maxSnippetSize. Server may return less or more than what is specified in maxSnippetSize. For more details, see https://developers.glean.com/guides/search/llm-content. + * Enables expanded content to be returned for LLM usage. The size of content per result returned + * should be modified using maxSnippetSize. Server may return less or more than what is specified in + * maxSnippetSize. + * + *

For more details, see https://developers.glean.com/guides/search/llm-content. */ @JsonIgnore public Optional returnLlmContentOverSnippets() { @@ -376,7 +402,8 @@ public SearchRequestOptions withDatasourcesFilter(Optional queryOverridesFacetFilters) { Utils.checkNotNull(queryOverridesFacetFilters, "queryOverridesFacetFilters"); @@ -395,7 +423,8 @@ public SearchRequestOptions withQueryOverridesFacetFilters(Optional que } /** - * A list of filters for the query. An AND is assumed between different facetFilters. For example, owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. + * A list of filters for the query. An AND is assumed between different facetFilters. For example, + * owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. */ public SearchRequestOptions withFacetFilters(List facetFilters) { Utils.checkNotNull(facetFilters, "facetFilters"); @@ -405,7 +434,8 @@ public SearchRequestOptions withFacetFilters(List facetFilters) { /** - * A list of filters for the query. An AND is assumed between different facetFilters. For example, owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. + * A list of filters for the query. An AND is assumed between different facetFilters. For example, + * owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. */ public SearchRequestOptions withFacetFilters(Optional> facetFilters) { Utils.checkNotNull(facetFilters, "facetFilters"); @@ -414,7 +444,9 @@ public SearchRequestOptions withFacetFilters(Optional facetFilterSets) { Utils.checkNotNull(facetFilterSets, "facetFilterSets"); @@ -424,7 +456,9 @@ public SearchRequestOptions withFacetFilterSets(List facetFilter /** - * A list of facet filter sets that will be OR'ed together. SearchRequestOptions where both facetFilterSets and facetFilters set are considered as bad request. Callers should set only one of these fields. + * A list of facet filter sets that will be OR'ed together. SearchRequestOptions where both + * facetFilterSets and facetFilters set are considered as bad request. Callers should set only one of + * these fields. */ public SearchRequestOptions withFacetFilterSets(Optional> facetFilterSets) { Utils.checkNotNull(facetFilterSets, "facetFilterSets"); @@ -455,7 +489,10 @@ public SearchRequestOptions withFacetBucketSize(long facetBucketSize) { } /** - * Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If specified, these values will replace the standard default facets (last_updated_at, from, etc.). The requested facets will be returned alongside datasource-specific facets if searching a single datasource. + * Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If + * specified, these values will replace the standard default facets (last_updated_at, from, etc.). The + * requested facets will be returned alongside datasource-specific facets if searching a single + * datasource. */ public SearchRequestOptions withDefaultFacets(List defaultFacets) { Utils.checkNotNull(defaultFacets, "defaultFacets"); @@ -465,7 +502,10 @@ public SearchRequestOptions withDefaultFacets(List defaultFacets) { /** - * Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If specified, these values will replace the standard default facets (last_updated_at, from, etc.). The requested facets will be returned alongside datasource-specific facets if searching a single datasource. + * Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If + * specified, these values will replace the standard default facets (last_updated_at, from, etc.). The + * requested facets will be returned alongside datasource-specific facets if searching a single + * datasource. */ public SearchRequestOptions withDefaultFacets(Optional> defaultFacets) { Utils.checkNotNull(defaultFacets, "defaultFacets"); @@ -493,7 +533,8 @@ public SearchRequestOptions withAuthTokens(Optional> a } /** - * Hints that the QE should return result counts (via the datasource facet result) for all supported datasources, rather than just those specified in the datasource[s]Filter + * Hints that the QE should return result counts (via the datasource facet result) for all supported + * datasources, rather than just those specified in the datasource[s]Filter */ public SearchRequestOptions withFetchAllDatasourceCounts(boolean fetchAllDatasourceCounts) { Utils.checkNotNull(fetchAllDatasourceCounts, "fetchAllDatasourceCounts"); @@ -503,7 +544,8 @@ public SearchRequestOptions withFetchAllDatasourceCounts(boolean fetchAllDatasou /** - * Hints that the QE should return result counts (via the datasource facet result) for all supported datasources, rather than just those specified in the datasource[s]Filter + * Hints that the QE should return result counts (via the datasource facet result) for all supported + * datasources, rather than just those specified in the datasource[s]Filter */ public SearchRequestOptions withFetchAllDatasourceCounts(Optional fetchAllDatasourceCounts) { Utils.checkNotNull(fetchAllDatasourceCounts, "fetchAllDatasourceCounts"); @@ -531,7 +573,8 @@ public SearchRequestOptions withResponseHints(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -588,7 +632,11 @@ public SearchRequestOptions withDisableQueryAutocorrect(Optional disabl } /** - * Enables expanded content to be returned for LLM usage. The size of content per result returned should be modified using maxSnippetSize. Server may return less or more than what is specified in maxSnippetSize. For more details, see https://developers.glean.com/guides/search/llm-content. + * Enables expanded content to be returned for LLM usage. The size of content per result returned + * should be modified using maxSnippetSize. Server may return less or more than what is specified in + * maxSnippetSize. + * + *

For more details, see https://developers.glean.com/guides/search/llm-content. */ public SearchRequestOptions withReturnLlmContentOverSnippets(boolean returnLlmContentOverSnippets) { Utils.checkNotNull(returnLlmContentOverSnippets, "returnLlmContentOverSnippets"); @@ -598,7 +646,11 @@ public SearchRequestOptions withReturnLlmContentOverSnippets(boolean returnLlmCo /** - * Enables expanded content to be returned for LLM usage. The size of content per result returned should be modified using maxSnippetSize. Server may return less or more than what is specified in maxSnippetSize. For more details, see https://developers.glean.com/guides/search/llm-content. + * Enables expanded content to be returned for LLM usage. The size of content per result returned + * should be modified using maxSnippetSize. Server may return less or more than what is specified in + * maxSnippetSize. + * + *

For more details, see https://developers.glean.com/guides/search/llm-content. */ public SearchRequestOptions withReturnLlmContentOverSnippets(Optional returnLlmContentOverSnippets) { Utils.checkNotNull(returnLlmContentOverSnippets, "returnLlmContentOverSnippets"); @@ -775,7 +827,8 @@ public Builder datasourcesFilter(Optional> datasourcesFil /** - * If true, the operators in the query are taken to override any operators in facetFilters in the case of conflict. This is used to correctly set rewrittenFacetFilters and rewrittenQuery. + * If true, the operators in the query are taken to override any operators in facetFilters in the case + * of conflict. This is used to correctly set rewrittenFacetFilters and rewrittenQuery. */ public Builder queryOverridesFacetFilters(boolean queryOverridesFacetFilters) { Utils.checkNotNull(queryOverridesFacetFilters, "queryOverridesFacetFilters"); @@ -784,7 +837,8 @@ public Builder queryOverridesFacetFilters(boolean queryOverridesFacetFilters) { } /** - * If true, the operators in the query are taken to override any operators in facetFilters in the case of conflict. This is used to correctly set rewrittenFacetFilters and rewrittenQuery. + * If true, the operators in the query are taken to override any operators in facetFilters in the case + * of conflict. This is used to correctly set rewrittenFacetFilters and rewrittenQuery. */ public Builder queryOverridesFacetFilters(Optional queryOverridesFacetFilters) { Utils.checkNotNull(queryOverridesFacetFilters, "queryOverridesFacetFilters"); @@ -794,7 +848,8 @@ public Builder queryOverridesFacetFilters(Optional queryOverridesFacetF /** - * A list of filters for the query. An AND is assumed between different facetFilters. For example, owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. + * A list of filters for the query. An AND is assumed between different facetFilters. For example, + * owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. */ public Builder facetFilters(List facetFilters) { Utils.checkNotNull(facetFilters, "facetFilters"); @@ -803,7 +858,8 @@ public Builder facetFilters(List facetFilters) { } /** - * A list of filters for the query. An AND is assumed between different facetFilters. For example, owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. + * A list of filters for the query. An AND is assumed between different facetFilters. For example, + * owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. */ public Builder facetFilters(Optional> facetFilters) { Utils.checkNotNull(facetFilters, "facetFilters"); @@ -813,7 +869,9 @@ public Builder facetFilters(Optional> facetFilters) /** - * A list of facet filter sets that will be OR'ed together. SearchRequestOptions where both facetFilterSets and facetFilters set are considered as bad request. Callers should set only one of these fields. + * A list of facet filter sets that will be OR'ed together. SearchRequestOptions where both + * facetFilterSets and facetFilters set are considered as bad request. Callers should set only one of + * these fields. */ public Builder facetFilterSets(List facetFilterSets) { Utils.checkNotNull(facetFilterSets, "facetFilterSets"); @@ -822,7 +880,9 @@ public Builder facetFilterSets(List facetFilterSets) { } /** - * A list of facet filter sets that will be OR'ed together. SearchRequestOptions where both facetFilterSets and facetFilters set are considered as bad request. Callers should set only one of these fields. + * A list of facet filter sets that will be OR'ed together. SearchRequestOptions where both + * facetFilterSets and facetFilters set are considered as bad request. Callers should set only one of + * these fields. */ public Builder facetFilterSets(Optional> facetFilterSets) { Utils.checkNotNull(facetFilterSets, "facetFilterSets"); @@ -855,7 +915,10 @@ public Builder facetBucketSize(long facetBucketSize) { /** - * Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If specified, these values will replace the standard default facets (last_updated_at, from, etc.). The requested facets will be returned alongside datasource-specific facets if searching a single datasource. + * Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If + * specified, these values will replace the standard default facets (last_updated_at, from, etc.). The + * requested facets will be returned alongside datasource-specific facets if searching a single + * datasource. */ public Builder defaultFacets(List defaultFacets) { Utils.checkNotNull(defaultFacets, "defaultFacets"); @@ -864,7 +927,10 @@ public Builder defaultFacets(List defaultFacets) { } /** - * Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If specified, these values will replace the standard default facets (last_updated_at, from, etc.). The requested facets will be returned alongside datasource-specific facets if searching a single datasource. + * Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If + * specified, these values will replace the standard default facets (last_updated_at, from, etc.). The + * requested facets will be returned alongside datasource-specific facets if searching a single + * datasource. */ public Builder defaultFacets(Optional> defaultFacets) { Utils.checkNotNull(defaultFacets, "defaultFacets"); @@ -893,7 +959,8 @@ public Builder authTokens(Optional> authTokens) { /** - * Hints that the QE should return result counts (via the datasource facet result) for all supported datasources, rather than just those specified in the datasource[s]Filter + * Hints that the QE should return result counts (via the datasource facet result) for all supported + * datasources, rather than just those specified in the datasource[s]Filter */ public Builder fetchAllDatasourceCounts(boolean fetchAllDatasourceCounts) { Utils.checkNotNull(fetchAllDatasourceCounts, "fetchAllDatasourceCounts"); @@ -902,7 +969,8 @@ public Builder fetchAllDatasourceCounts(boolean fetchAllDatasourceCounts) { } /** - * Hints that the QE should return result counts (via the datasource facet result) for all supported datasources, rather than just those specified in the datasource[s]Filter + * Hints that the QE should return result counts (via the datasource facet result) for all supported + * datasources, rather than just those specified in the datasource[s]Filter */ public Builder fetchAllDatasourceCounts(Optional fetchAllDatasourceCounts) { Utils.checkNotNull(fetchAllDatasourceCounts, "fetchAllDatasourceCounts"); @@ -931,7 +999,8 @@ public Builder responseHints(Optional> responseHint /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -940,7 +1009,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -988,7 +1058,11 @@ public Builder disableQueryAutocorrect(Optional disableQueryAutocorrect /** - * Enables expanded content to be returned for LLM usage. The size of content per result returned should be modified using maxSnippetSize. Server may return less or more than what is specified in maxSnippetSize. For more details, see https://developers.glean.com/guides/search/llm-content. + * Enables expanded content to be returned for LLM usage. The size of content per result returned + * should be modified using maxSnippetSize. Server may return less or more than what is specified in + * maxSnippetSize. + * + *

For more details, see https://developers.glean.com/guides/search/llm-content. */ public Builder returnLlmContentOverSnippets(boolean returnLlmContentOverSnippets) { Utils.checkNotNull(returnLlmContentOverSnippets, "returnLlmContentOverSnippets"); @@ -997,7 +1071,11 @@ public Builder returnLlmContentOverSnippets(boolean returnLlmContentOverSnippets } /** - * Enables expanded content to be returned for LLM usage. The size of content per result returned should be modified using maxSnippetSize. Server may return less or more than what is specified in maxSnippetSize. For more details, see https://developers.glean.com/guides/search/llm-content. + * Enables expanded content to be returned for LLM usage. The size of content per result returned + * should be modified using maxSnippetSize. Server may return less or more than what is specified in + * maxSnippetSize. + * + *

For more details, see https://developers.glean.com/guides/search/llm-content. */ public Builder returnLlmContentOverSnippets(Optional returnLlmContentOverSnippets) { Utils.checkNotNull(returnLlmContentOverSnippets, "returnLlmContentOverSnippets"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResponse.java index 968d4890..dbe95ead 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResponse.java @@ -20,7 +20,8 @@ public class SearchResponse { /** - * A token that should be passed for additional requests related to this request (such as more results requests). + * A token that should be passed for additional requests related to this request (such as more results + * requests). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trackingToken") @@ -83,7 +84,8 @@ public class SearchResponse { private Optional> facetResults; /** - * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the request. + * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the + * request. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("resultTabs") @@ -102,14 +104,16 @@ public class SearchResponse { private Optional resultsDescription; /** - * The actual applied facet filters based on the operators and facetFilters in the query. Useful for mapping typed operators to visual facets. + * The actual applied facet filters based on the operators and facetFilters in the query. Useful for + * mapping typed operators to visual facets. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("rewrittenFacetFilters") private Optional> rewrittenFacetFilters; /** - * Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. + * Cursor that indicates the start of the next page of results. To be passed in "more" requests for + * this query. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor") @@ -187,7 +191,8 @@ public SearchResponse() { } /** - * A token that should be passed for additional requests related to this request (such as more results requests). + * A token that should be passed for additional requests related to this request (such as more results + * requests). */ @JsonIgnore public Optional trackingToken() { @@ -262,7 +267,8 @@ public Optional> facetResults() { } /** - * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the request. + * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the + * request. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -286,7 +292,8 @@ public Optional resultsDescription() { } /** - * The actual applied facet filters based on the operators and facetFilters in the query. Useful for mapping typed operators to visual facets. + * The actual applied facet filters based on the operators and facetFilters in the query. Useful for + * mapping typed operators to visual facets. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -295,7 +302,8 @@ public Optional> rewrittenFacetFilters() { } /** - * Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. + * Cursor that indicates the start of the next page of results. To be passed in "more" requests for + * this query. */ @JsonIgnore public Optional cursor() { @@ -316,7 +324,8 @@ public static Builder builder() { /** - * A token that should be passed for additional requests related to this request (such as more results requests). + * A token that should be passed for additional requests related to this request (such as more results + * requests). */ public SearchResponse withTrackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -326,7 +335,8 @@ public SearchResponse withTrackingToken(String trackingToken) { /** - * A token that should be passed for additional requests related to this request (such as more results requests). + * A token that should be passed for additional requests related to this request (such as more results + * requests). */ public SearchResponse withTrackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -483,7 +493,8 @@ public SearchResponse withFacetResults(Optional> fac } /** - * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the request. + * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the + * request. */ public SearchResponse withResultTabs(List resultTabs) { Utils.checkNotNull(resultTabs, "resultTabs"); @@ -493,7 +504,8 @@ public SearchResponse withResultTabs(List resultTabs) { /** - * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the request. + * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the + * request. */ public SearchResponse withResultTabs(Optional> resultTabs) { Utils.checkNotNull(resultTabs, "resultTabs"); @@ -534,7 +546,8 @@ public SearchResponse withResultsDescription(Optional rewrittenFacetFilters) { Utils.checkNotNull(rewrittenFacetFilters, "rewrittenFacetFilters"); @@ -544,7 +557,8 @@ public SearchResponse withRewrittenFacetFilters(List rewrittenFacet /** - * The actual applied facet filters based on the operators and facetFilters in the query. Useful for mapping typed operators to visual facets. + * The actual applied facet filters based on the operators and facetFilters in the query. Useful for + * mapping typed operators to visual facets. */ public SearchResponse withRewrittenFacetFilters(Optional> rewrittenFacetFilters) { Utils.checkNotNull(rewrittenFacetFilters, "rewrittenFacetFilters"); @@ -553,7 +567,8 @@ public SearchResponse withRewrittenFacetFilters(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -695,7 +711,8 @@ private Builder() { /** - * A token that should be passed for additional requests related to this request (such as more results requests). + * A token that should be passed for additional requests related to this request (such as more results + * requests). */ public Builder trackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -704,7 +721,8 @@ public Builder trackingToken(String trackingToken) { } /** - * A token that should be passed for additional requests related to this request (such as more results requests). + * A token that should be passed for additional requests related to this request (such as more results + * requests). */ public Builder trackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -862,7 +880,8 @@ public Builder facetResults(Optional> facetResults) /** - * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the request. + * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the + * request. */ public Builder resultTabs(List resultTabs) { Utils.checkNotNull(resultTabs, "resultTabs"); @@ -871,7 +890,8 @@ public Builder resultTabs(List resultTabs) { } /** - * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the request. + * All result tabs available for the current query. Populated if QUERY_METADATA is specified in the + * request. */ public Builder resultTabs(Optional> resultTabs) { Utils.checkNotNull(resultTabs, "resultTabs"); @@ -913,7 +933,8 @@ public Builder resultsDescription(Optional results /** - * The actual applied facet filters based on the operators and facetFilters in the query. Useful for mapping typed operators to visual facets. + * The actual applied facet filters based on the operators and facetFilters in the query. Useful for + * mapping typed operators to visual facets. */ public Builder rewrittenFacetFilters(List rewrittenFacetFilters) { Utils.checkNotNull(rewrittenFacetFilters, "rewrittenFacetFilters"); @@ -922,7 +943,8 @@ public Builder rewrittenFacetFilters(List rewrittenFacetFilters) { } /** - * The actual applied facet filters based on the operators and facetFilters in the query. Useful for mapping typed operators to visual facets. + * The actual applied facet filters based on the operators and facetFilters in the query. Useful for + * mapping typed operators to visual facets. */ public Builder rewrittenFacetFilters(Optional> rewrittenFacetFilters) { Utils.checkNotNull(rewrittenFacetFilters, "rewrittenFacetFilters"); @@ -932,7 +954,8 @@ public Builder rewrittenFacetFilters(Optional> rewri /** - * Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. + * Cursor that indicates the start of the next page of results. To be passed in "more" requests for + * this query. */ public Builder cursor(String cursor) { Utils.checkNotNull(cursor, "cursor"); @@ -941,7 +964,8 @@ public Builder cursor(String cursor) { } /** - * Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. + * Cursor that indicates the start of the next page of results. To be passed in "more" requests for + * this query. */ public Builder cursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResponseMetadata.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResponseMetadata.java index c09c1f09..2dcc9adb 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResponseMetadata.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResponseMetadata.java @@ -19,7 +19,8 @@ public class SearchResponseMetadata { /** - * A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping visual facets to search operators. + * A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping + * visual facets to search operators. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("rewrittenQuery") @@ -78,7 +79,8 @@ public class SearchResponseMetadata { private Optional modifiedQueryWasUsed; /** - * No results were found for the original query. The usage of this bit in conjunction with modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. + * No results were found for the original query. The usage of this bit in conjunction with + * modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("originalQueryHadNoResults") @@ -155,7 +157,8 @@ public SearchResponseMetadata() { } /** - * A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping visual facets to search operators. + * A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping + * visual facets to search operators. */ @JsonIgnore public Optional rewrittenQuery() { @@ -225,7 +228,8 @@ public Optional modifiedQueryWasUsed() { } /** - * No results were found for the original query. The usage of this bit in conjunction with modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. + * No results were found for the original query. The usage of this bit in conjunction with + * modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. */ @JsonIgnore public Optional originalQueryHadNoResults() { @@ -260,7 +264,8 @@ public static Builder builder() { /** - * A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping visual facets to search operators. + * A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping + * visual facets to search operators. */ public SearchResponseMetadata withRewrittenQuery(String rewrittenQuery) { Utils.checkNotNull(rewrittenQuery, "rewrittenQuery"); @@ -270,7 +275,8 @@ public SearchResponseMetadata withRewrittenQuery(String rewrittenQuery) { /** - * A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping visual facets to search operators. + * A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping + * visual facets to search operators. */ public SearchResponseMetadata withRewrittenQuery(Optional rewrittenQuery) { Utils.checkNotNull(rewrittenQuery, "rewrittenQuery"); @@ -419,7 +425,8 @@ public SearchResponseMetadata withModifiedQueryWasUsed(Optional modifie } /** - * No results were found for the original query. The usage of this bit in conjunction with modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. + * No results were found for the original query. The usage of this bit in conjunction with + * modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. */ public SearchResponseMetadata withOriginalQueryHadNoResults(boolean originalQueryHadNoResults) { Utils.checkNotNull(originalQueryHadNoResults, "originalQueryHadNoResults"); @@ -429,7 +436,8 @@ public SearchResponseMetadata withOriginalQueryHadNoResults(boolean originalQuer /** - * No results were found for the original query. The usage of this bit in conjunction with modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. + * No results were found for the original query. The usage of this bit in conjunction with + * modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. */ public SearchResponseMetadata withOriginalQueryHadNoResults(Optional originalQueryHadNoResults) { Utils.checkNotNull(originalQueryHadNoResults, "originalQueryHadNoResults"); @@ -576,7 +584,8 @@ private Builder() { /** - * A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping visual facets to search operators. + * A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping + * visual facets to search operators. */ public Builder rewrittenQuery(String rewrittenQuery) { Utils.checkNotNull(rewrittenQuery, "rewrittenQuery"); @@ -585,7 +594,8 @@ public Builder rewrittenQuery(String rewrittenQuery) { } /** - * A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping visual facets to search operators. + * A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping + * visual facets to search operators. */ public Builder rewrittenQuery(Optional rewrittenQuery) { Utils.checkNotNull(rewrittenQuery, "rewrittenQuery"); @@ -735,7 +745,8 @@ public Builder modifiedQueryWasUsed(Optional modifiedQueryWasUsed) { /** - * No results were found for the original query. The usage of this bit in conjunction with modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. + * No results were found for the original query. The usage of this bit in conjunction with + * modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. */ public Builder originalQueryHadNoResults(boolean originalQueryHadNoResults) { Utils.checkNotNull(originalQueryHadNoResults, "originalQueryHadNoResults"); @@ -744,7 +755,8 @@ public Builder originalQueryHadNoResults(boolean originalQueryHadNoResults) { } /** - * No results were found for the original query. The usage of this bit in conjunction with modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. + * No results were found for the original query. The usage of this bit in conjunction with + * modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. */ public Builder originalQueryHadNoResults(Optional originalQueryHadNoResults) { Utils.checkNotNull(originalQueryHadNoResults, "originalQueryHadNoResults"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResult.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResult.java index 26537556..a941c931 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResult.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResult.java @@ -26,7 +26,8 @@ public class SearchResult { private Optional> structuredResults; /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trackingToken") @@ -47,7 +48,8 @@ public class SearchResult { private String url; /** - * A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://...). + * A deep link, if available, into the datasource's native application for the user's platform (e.g. + * slack://...). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("nativeAppUrl") @@ -61,21 +63,25 @@ public class SearchResult { private Optional> snippets; /** - * The full body text of the result if not already contained in the snippets. Only populated for conversation results (e.g. results from a messaging app such as Slack). + * The full body text of the result if not already contained in the snippets. Only populated for + * conversation results (e.g. results from a messaging app such as Slack). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("fullText") private Optional fullText; /** - * The full body text of the result if not already contained in the snippets; each item in the array represents a separate line in the original text. Only populated for conversation results (e.g. results from a messaging app such as Slack). + * The full body text of the result if not already contained in the snippets; each item in the array + * represents a separate line in the original text. Only populated for conversation results (e.g. + * results from a messaging app such as Slack). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("fullTextList") private Optional> fullTextList; /** - * A list of results related to this search result. Eg. for conversation results it contains individual messages from the conversation document which will be shown on SERP. + * A list of results related to this search result. Eg. for conversation results it contains individual + * messages from the conversation document which will be shown on SERP. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("relatedResults") @@ -110,7 +116,8 @@ public class SearchResult { private Optional> attachments; /** - * A list of results that should be displayed as backlinks of this result in reverse chronological order. + * A list of results that should be displayed as backlinks of this result in reverse chronological + * order. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("backlinkResults") @@ -242,7 +249,8 @@ public Optional> structuredResults() { } /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ @JsonIgnore public Optional trackingToken() { @@ -266,7 +274,8 @@ public String url() { } /** - * A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://...). + * A deep link, if available, into the datasource's native application for the user's platform (e.g. + * slack://...). */ @JsonIgnore public Optional nativeAppUrl() { @@ -283,7 +292,8 @@ public Optional> snippets() { } /** - * The full body text of the result if not already contained in the snippets. Only populated for conversation results (e.g. results from a messaging app such as Slack). + * The full body text of the result if not already contained in the snippets. Only populated for + * conversation results (e.g. results from a messaging app such as Slack). */ @JsonIgnore public Optional fullText() { @@ -291,7 +301,9 @@ public Optional fullText() { } /** - * The full body text of the result if not already contained in the snippets; each item in the array represents a separate line in the original text. Only populated for conversation results (e.g. results from a messaging app such as Slack). + * The full body text of the result if not already contained in the snippets; each item in the array + * represents a separate line in the original text. Only populated for conversation results (e.g. + * results from a messaging app such as Slack). */ @SuppressWarnings("unchecked") @JsonIgnore @@ -300,7 +312,8 @@ public Optional> fullTextList() { } /** - * A list of results related to this search result. Eg. for conversation results it contains individual messages from the conversation document which will be shown on SERP. + * A list of results related to this search result. Eg. for conversation results it contains individual + * messages from the conversation document which will be shown on SERP. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -344,7 +357,8 @@ public Optional> attachments() { } /** - * A list of results that should be displayed as backlinks of this result in reverse chronological order. + * A list of results that should be displayed as backlinks of this result in reverse chronological + * order. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -424,7 +438,8 @@ public SearchResult withStructuredResults(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -475,7 +491,8 @@ public SearchResult withUrl(String url) { } /** - * A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://...). + * A deep link, if available, into the datasource's native application for the user's platform (e.g. + * slack://...). */ public SearchResult withNativeAppUrl(String nativeAppUrl) { Utils.checkNotNull(nativeAppUrl, "nativeAppUrl"); @@ -485,7 +502,8 @@ public SearchResult withNativeAppUrl(String nativeAppUrl) { /** - * A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://...). + * A deep link, if available, into the datasource's native application for the user's platform (e.g. + * slack://...). */ public SearchResult withNativeAppUrl(Optional nativeAppUrl) { Utils.checkNotNull(nativeAppUrl, "nativeAppUrl"); @@ -513,7 +531,8 @@ public SearchResult withSnippets(Optional> s } /** - * The full body text of the result if not already contained in the snippets. Only populated for conversation results (e.g. results from a messaging app such as Slack). + * The full body text of the result if not already contained in the snippets. Only populated for + * conversation results (e.g. results from a messaging app such as Slack). */ public SearchResult withFullText(String fullText) { Utils.checkNotNull(fullText, "fullText"); @@ -523,7 +542,8 @@ public SearchResult withFullText(String fullText) { /** - * The full body text of the result if not already contained in the snippets. Only populated for conversation results (e.g. results from a messaging app such as Slack). + * The full body text of the result if not already contained in the snippets. Only populated for + * conversation results (e.g. results from a messaging app such as Slack). */ public SearchResult withFullText(Optional fullText) { Utils.checkNotNull(fullText, "fullText"); @@ -532,7 +552,9 @@ public SearchResult withFullText(Optional fullText) { } /** - * The full body text of the result if not already contained in the snippets; each item in the array represents a separate line in the original text. Only populated for conversation results (e.g. results from a messaging app such as Slack). + * The full body text of the result if not already contained in the snippets; each item in the array + * represents a separate line in the original text. Only populated for conversation results (e.g. + * results from a messaging app such as Slack). */ public SearchResult withFullTextList(List fullTextList) { Utils.checkNotNull(fullTextList, "fullTextList"); @@ -542,7 +564,9 @@ public SearchResult withFullTextList(List fullTextList) { /** - * The full body text of the result if not already contained in the snippets; each item in the array represents a separate line in the original text. Only populated for conversation results (e.g. results from a messaging app such as Slack). + * The full body text of the result if not already contained in the snippets; each item in the array + * represents a separate line in the original text. Only populated for conversation results (e.g. + * results from a messaging app such as Slack). */ public SearchResult withFullTextList(Optional> fullTextList) { Utils.checkNotNull(fullTextList, "fullTextList"); @@ -551,7 +575,8 @@ public SearchResult withFullTextList(Optional> fullTextLi } /** - * A list of results related to this search result. Eg. for conversation results it contains individual messages from the conversation document which will be shown on SERP. + * A list of results related to this search result. Eg. for conversation results it contains individual + * messages from the conversation document which will be shown on SERP. */ public SearchResult withRelatedResults(List relatedResults) { Utils.checkNotNull(relatedResults, "relatedResults"); @@ -561,7 +586,8 @@ public SearchResult withRelatedResults(List relatedResults) { /** - * A list of results related to this search result. Eg. for conversation results it contains individual messages from the conversation document which will be shown on SERP. + * A list of results related to this search result. Eg. for conversation results it contains individual + * messages from the conversation document which will be shown on SERP. */ public SearchResult withRelatedResults(Optional> relatedResults) { Utils.checkNotNull(relatedResults, "relatedResults"); @@ -646,7 +672,8 @@ public SearchResult withAttachments(Optional> attac } /** - * A list of results that should be displayed as backlinks of this result in reverse chronological order. + * A list of results that should be displayed as backlinks of this result in reverse chronological + * order. */ public SearchResult withBacklinkResults(List backlinkResults) { Utils.checkNotNull(backlinkResults, "backlinkResults"); @@ -656,7 +683,8 @@ public SearchResult withBacklinkResults(List backlinkResults) { /** - * A list of results that should be displayed as backlinks of this result in reverse chronological order. + * A list of results that should be displayed as backlinks of this result in reverse chronological + * order. */ public SearchResult withBacklinkResults(Optional> backlinkResults) { Utils.checkNotNull(backlinkResults, "backlinkResults"); @@ -907,7 +935,8 @@ public Builder structuredResults(Optional> stru /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ public Builder trackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -916,7 +945,8 @@ public Builder trackingToken(String trackingToken) { } /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ public Builder trackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -959,7 +989,8 @@ public Builder url(String url) { /** - * A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://...). + * A deep link, if available, into the datasource's native application for the user's platform (e.g. + * slack://...). */ public Builder nativeAppUrl(String nativeAppUrl) { Utils.checkNotNull(nativeAppUrl, "nativeAppUrl"); @@ -968,7 +999,8 @@ public Builder nativeAppUrl(String nativeAppUrl) { } /** - * A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://...). + * A deep link, if available, into the datasource's native application for the user's platform (e.g. + * slack://...). */ public Builder nativeAppUrl(Optional nativeAppUrl) { Utils.checkNotNull(nativeAppUrl, "nativeAppUrl"); @@ -997,7 +1029,8 @@ public Builder snippets(Optional> snippets) /** - * The full body text of the result if not already contained in the snippets. Only populated for conversation results (e.g. results from a messaging app such as Slack). + * The full body text of the result if not already contained in the snippets. Only populated for + * conversation results (e.g. results from a messaging app such as Slack). */ public Builder fullText(String fullText) { Utils.checkNotNull(fullText, "fullText"); @@ -1006,7 +1039,8 @@ public Builder fullText(String fullText) { } /** - * The full body text of the result if not already contained in the snippets. Only populated for conversation results (e.g. results from a messaging app such as Slack). + * The full body text of the result if not already contained in the snippets. Only populated for + * conversation results (e.g. results from a messaging app such as Slack). */ public Builder fullText(Optional fullText) { Utils.checkNotNull(fullText, "fullText"); @@ -1016,7 +1050,9 @@ public Builder fullText(Optional fullText) { /** - * The full body text of the result if not already contained in the snippets; each item in the array represents a separate line in the original text. Only populated for conversation results (e.g. results from a messaging app such as Slack). + * The full body text of the result if not already contained in the snippets; each item in the array + * represents a separate line in the original text. Only populated for conversation results (e.g. + * results from a messaging app such as Slack). */ public Builder fullTextList(List fullTextList) { Utils.checkNotNull(fullTextList, "fullTextList"); @@ -1025,7 +1061,9 @@ public Builder fullTextList(List fullTextList) { } /** - * The full body text of the result if not already contained in the snippets; each item in the array represents a separate line in the original text. Only populated for conversation results (e.g. results from a messaging app such as Slack). + * The full body text of the result if not already contained in the snippets; each item in the array + * represents a separate line in the original text. Only populated for conversation results (e.g. + * results from a messaging app such as Slack). */ public Builder fullTextList(Optional> fullTextList) { Utils.checkNotNull(fullTextList, "fullTextList"); @@ -1035,7 +1073,8 @@ public Builder fullTextList(Optional> fullTextList) { /** - * A list of results related to this search result. Eg. for conversation results it contains individual messages from the conversation document which will be shown on SERP. + * A list of results related to this search result. Eg. for conversation results it contains individual + * messages from the conversation document which will be shown on SERP. */ public Builder relatedResults(List relatedResults) { Utils.checkNotNull(relatedResults, "relatedResults"); @@ -1044,7 +1083,8 @@ public Builder relatedResults(List relatedResults) { } /** - * A list of results related to this search result. Eg. for conversation results it contains individual messages from the conversation document which will be shown on SERP. + * A list of results related to this search result. Eg. for conversation results it contains individual + * messages from the conversation document which will be shown on SERP. */ public Builder relatedResults(Optional> relatedResults) { Utils.checkNotNull(relatedResults, "relatedResults"); @@ -1130,7 +1170,8 @@ public Builder attachments(Optional> attachments) { /** - * A list of results that should be displayed as backlinks of this result in reverse chronological order. + * A list of results that should be displayed as backlinks of this result in reverse chronological + * order. */ public Builder backlinkResults(List backlinkResults) { Utils.checkNotNull(backlinkResults, "backlinkResults"); @@ -1139,7 +1180,8 @@ public Builder backlinkResults(List backlinkResults) { } /** - * A list of results that should be displayed as backlinks of this result in reverse chronological order. + * A list of results that should be displayed as backlinks of this result in reverse chronological + * order. */ public Builder backlinkResults(Optional> backlinkResults) { Utils.checkNotNull(backlinkResults, "backlinkResults"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResultSnippet.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResultSnippet.java index 84775aca..74eb0108 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResultSnippet.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchResultSnippet.java @@ -48,14 +48,16 @@ public class SearchResultSnippet { private Optional> ranges; /** - * A URL, generated based on availability, that links to the position of the snippet text or to the nearest header above the snippet text. + * A URL, generated based on availability, that links to the position of the snippet text or to the + * nearest header above the snippet text. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("url") private Optional url; /** - * A matching snippet from the document. Query term matches are marked by the unicode characters uE006 and uE007. Use 'text' field instead. + * A matching snippet from the document. Query term matches are marked by the unicode characters uE006 + * and uE007. Use 'text' field instead. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -125,7 +127,8 @@ public Optional> ranges() { } /** - * A URL, generated based on availability, that links to the position of the snippet text or to the nearest header above the snippet text. + * A URL, generated based on availability, that links to the position of the snippet text or to the + * nearest header above the snippet text. */ @JsonIgnore public Optional url() { @@ -133,7 +136,8 @@ public Optional url() { } /** - * A matching snippet from the document. Query term matches are marked by the unicode characters uE006 and uE007. Use 'text' field instead. + * A matching snippet from the document. Query term matches are marked by the unicode characters uE006 + * and uE007. Use 'text' field instead. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -225,7 +229,8 @@ public SearchResultSnippet withRanges(Optional> ranges } /** - * A URL, generated based on availability, that links to the position of the snippet text or to the nearest header above the snippet text. + * A URL, generated based on availability, that links to the position of the snippet text or to the + * nearest header above the snippet text. */ public SearchResultSnippet withUrl(String url) { Utils.checkNotNull(url, "url"); @@ -235,7 +240,8 @@ public SearchResultSnippet withUrl(String url) { /** - * A URL, generated based on availability, that links to the position of the snippet text or to the nearest header above the snippet text. + * A URL, generated based on availability, that links to the position of the snippet text or to the + * nearest header above the snippet text. */ public SearchResultSnippet withUrl(Optional url) { Utils.checkNotNull(url, "url"); @@ -244,7 +250,8 @@ public SearchResultSnippet withUrl(Optional url) { } /** - * A matching snippet from the document. Query term matches are marked by the unicode characters uE006 and uE007. Use 'text' field instead. + * A matching snippet from the document. Query term matches are marked by the unicode characters uE006 + * and uE007. Use 'text' field instead. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ @@ -389,7 +396,8 @@ public Builder ranges(Optional> ranges) { /** - * A URL, generated based on availability, that links to the position of the snippet text or to the nearest header above the snippet text. + * A URL, generated based on availability, that links to the position of the snippet text or to the + * nearest header above the snippet text. */ public Builder url(String url) { Utils.checkNotNull(url, "url"); @@ -398,7 +406,8 @@ public Builder url(String url) { } /** - * A URL, generated based on availability, that links to the position of the snippet text or to the nearest header above the snippet text. + * A URL, generated based on availability, that links to the position of the snippet text or to the + * nearest header above the snippet text. */ public Builder url(Optional url) { Utils.checkNotNull(url, "url"); @@ -408,7 +417,8 @@ public Builder url(Optional url) { /** - * A matching snippet from the document. Query term matches are marked by the unicode characters uE006 and uE007. Use 'text' field instead. + * A matching snippet from the document. Query term matches are marked by the unicode characters uE006 + * and uE007. Use 'text' field instead. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchWarning.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchWarning.java index 7e9d3cbf..1da3a463 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchWarning.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SearchWarning.java @@ -38,7 +38,8 @@ public class SearchWarning { private Optional quotesIgnoredQuery; /** - * A list of query terms that were ignored when generating search results, if any. For example, terms containing invalid filters such as "updated:invalid_date" will be ignored. + * A list of query terms that were ignored when generating search results, if any. For example, terms + * containing invalid filters such as "updated:invalid_date" will be ignored. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ignoredTerms") @@ -91,7 +92,8 @@ public Optional quotesIgnoredQuery() { } /** - * A list of query terms that were ignored when generating search results, if any. For example, terms containing invalid filters such as "updated:invalid_date" will be ignored. + * A list of query terms that were ignored when generating search results, if any. For example, terms + * containing invalid filters such as "updated:invalid_date" will be ignored. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -152,7 +154,8 @@ public SearchWarning withQuotesIgnoredQuery(Optional quotesIgnoredQuery) } /** - * A list of query terms that were ignored when generating search results, if any. For example, terms containing invalid filters such as "updated:invalid_date" will be ignored. + * A list of query terms that were ignored when generating search results, if any. For example, terms + * containing invalid filters such as "updated:invalid_date" will be ignored. */ public SearchWarning withIgnoredTerms(List ignoredTerms) { Utils.checkNotNull(ignoredTerms, "ignoredTerms"); @@ -162,7 +165,8 @@ public SearchWarning withIgnoredTerms(List ignoredTerms) { /** - * A list of query terms that were ignored when generating search results, if any. For example, terms containing invalid filters such as "updated:invalid_date" will be ignored. + * A list of query terms that were ignored when generating search results, if any. For example, terms + * containing invalid filters such as "updated:invalid_date" will be ignored. */ public SearchWarning withIgnoredTerms(Optional> ignoredTerms) { Utils.checkNotNull(ignoredTerms, "ignoredTerms"); @@ -267,7 +271,8 @@ public Builder quotesIgnoredQuery(Optional quotesIgnoredQuery) { /** - * A list of query terms that were ignored when generating search results, if any. For example, terms containing invalid filters such as "updated:invalid_date" will be ignored. + * A list of query terms that were ignored when generating search results, if any. For example, terms + * containing invalid filters such as "updated:invalid_date" will be ignored. */ public Builder ignoredTerms(List ignoredTerms) { Utils.checkNotNull(ignoredTerms, "ignoredTerms"); @@ -276,7 +281,8 @@ public Builder ignoredTerms(List ignoredTerms) { } /** - * A list of query terms that were ignored when generating search results, if any. For example, terms containing invalid filters such as "updated:invalid_date" will be ignored. + * A list of query terms that were ignored when generating search results, if any. For example, terms + * containing invalid filters such as "updated:invalid_date" will be ignored. */ public Builder ignoredTerms(Optional> ignoredTerms) { Utils.checkNotNull(ignoredTerms, "ignoredTerms"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SeenFeedbackInfo.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SeenFeedbackInfo.java index fdce4d7e..03ec17c8 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SeenFeedbackInfo.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SeenFeedbackInfo.java @@ -17,7 +17,8 @@ public class SeenFeedbackInfo { /** - * The confidence of the user seeing the object is high because they explicitly interacted with it e.g. answer impression in SERP with additional user interaction. + * The confidence of the user seeing the object is high because they explicitly interacted with it e.g. + * answer impression in SERP with additional user interaction. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("isExplicit") @@ -35,7 +36,8 @@ public SeenFeedbackInfo() { } /** - * The confidence of the user seeing the object is high because they explicitly interacted with it e.g. answer impression in SERP with additional user interaction. + * The confidence of the user seeing the object is high because they explicitly interacted with it e.g. + * answer impression in SERP with additional user interaction. */ @JsonIgnore public Optional isExplicit() { @@ -48,7 +50,8 @@ public static Builder builder() { /** - * The confidence of the user seeing the object is high because they explicitly interacted with it e.g. answer impression in SERP with additional user interaction. + * The confidence of the user seeing the object is high because they explicitly interacted with it e.g. + * answer impression in SERP with additional user interaction. */ public SeenFeedbackInfo withIsExplicit(boolean isExplicit) { Utils.checkNotNull(isExplicit, "isExplicit"); @@ -58,7 +61,8 @@ public SeenFeedbackInfo withIsExplicit(boolean isExplicit) { /** - * The confidence of the user seeing the object is high because they explicitly interacted with it e.g. answer impression in SERP with additional user interaction. + * The confidence of the user seeing the object is high because they explicitly interacted with it e.g. + * answer impression in SERP with additional user interaction. */ public SeenFeedbackInfo withIsExplicit(Optional isExplicit) { Utils.checkNotNull(isExplicit, "isExplicit"); @@ -102,7 +106,8 @@ private Builder() { /** - * The confidence of the user seeing the object is high because they explicitly interacted with it e.g. answer impression in SERP with additional user interaction. + * The confidence of the user seeing the object is high because they explicitly interacted with it e.g. + * answer impression in SERP with additional user interaction. */ public Builder isExplicit(boolean isExplicit) { Utils.checkNotNull(isExplicit, "isExplicit"); @@ -111,7 +116,8 @@ public Builder isExplicit(boolean isExplicit) { } /** - * The confidence of the user seeing the object is high because they explicitly interacted with it e.g. answer impression in SERP with additional user interaction. + * The confidence of the user seeing the object is high because they explicitly interacted with it e.g. + * answer impression in SERP with additional user interaction. */ public Builder isExplicit(Optional isExplicit) { Utils.checkNotNull(isExplicit, "isExplicit"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SensitiveContentOptions.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SensitiveContentOptions.java index 0daaa4da..f397fd31 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SensitiveContentOptions.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SensitiveContentOptions.java @@ -22,7 +22,8 @@ */ public class SensitiveContentOptions { /** - * Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types. + * Predefined categories of terms to consider as sensitive content. See + * https://cloud.google.com/dlp/docs/infotypes-reference for available types. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sensitiveInfoTypes") @@ -60,7 +61,8 @@ public SensitiveContentOptions() { } /** - * Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types. + * Predefined categories of terms to consider as sensitive content. See + * https://cloud.google.com/dlp/docs/infotypes-reference for available types. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -92,7 +94,8 @@ public static Builder builder() { /** - * Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types. + * Predefined categories of terms to consider as sensitive content. See + * https://cloud.google.com/dlp/docs/infotypes-reference for available types. */ public SensitiveContentOptions withSensitiveInfoTypes(List sensitiveInfoTypes) { Utils.checkNotNull(sensitiveInfoTypes, "sensitiveInfoTypes"); @@ -102,7 +105,8 @@ public SensitiveContentOptions withSensitiveInfoTypes(List se /** - * Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types. + * Predefined categories of terms to consider as sensitive content. See + * https://cloud.google.com/dlp/docs/infotypes-reference for available types. */ public SensitiveContentOptions withSensitiveInfoTypes(Optional> sensitiveInfoTypes) { Utils.checkNotNull(sensitiveInfoTypes, "sensitiveInfoTypes"); @@ -192,7 +196,8 @@ private Builder() { /** - * Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types. + * Predefined categories of terms to consider as sensitive content. See + * https://cloud.google.com/dlp/docs/infotypes-reference for available types. */ public Builder sensitiveInfoTypes(List sensitiveInfoTypes) { Utils.checkNotNull(sensitiveInfoTypes, "sensitiveInfoTypes"); @@ -201,7 +206,8 @@ public Builder sensitiveInfoTypes(List sensitiveInfoTypes) { } /** - * Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types. + * Predefined categories of terms to consider as sensitive content. See + * https://cloud.google.com/dlp/docs/infotypes-reference for available types. */ public Builder sensitiveInfoTypes(Optional> sensitiveInfoTypes) { Utils.checkNotNull(sensitiveInfoTypes, "sensitiveInfoTypes"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SensitiveExpression.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SensitiveExpression.java index 1fb538fd..30b9d68c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SensitiveExpression.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SensitiveExpression.java @@ -25,7 +25,8 @@ public class SensitiveExpression { private Optional expression; /** - * Zero to three proximate regular expressions necessary to consider an expression as sensitive content. + * Zero to three proximate regular expressions necessary to consider an expression as sensitive + * content. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("hotwords") @@ -54,7 +55,8 @@ public Optional expression() { } /** - * Zero to three proximate regular expressions necessary to consider an expression as sensitive content. + * Zero to three proximate regular expressions necessary to consider an expression as sensitive + * content. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -87,7 +89,8 @@ public SensitiveExpression withExpression(Optional expression) { } /** - * Zero to three proximate regular expressions necessary to consider an expression as sensitive content. + * Zero to three proximate regular expressions necessary to consider an expression as sensitive + * content. */ public SensitiveExpression withHotwords(List hotwords) { Utils.checkNotNull(hotwords, "hotwords"); @@ -97,7 +100,8 @@ public SensitiveExpression withHotwords(List hotwords) { /** - * Zero to three proximate regular expressions necessary to consider an expression as sensitive content. + * Zero to three proximate regular expressions necessary to consider an expression as sensitive + * content. */ public SensitiveExpression withHotwords(Optional> hotwords) { Utils.checkNotNull(hotwords, "hotwords"); @@ -164,7 +168,8 @@ public Builder expression(Optional expression) { /** - * Zero to three proximate regular expressions necessary to consider an expression as sensitive content. + * Zero to three proximate regular expressions necessary to consider an expression as sensitive + * content. */ public Builder hotwords(List hotwords) { Utils.checkNotNull(hotwords, "hotwords"); @@ -173,7 +178,8 @@ public Builder hotwords(List hotwords) { } /** - * Zero to three proximate regular expressions necessary to consider an expression as sensitive content. + * Zero to three proximate regular expressions necessary to consider an expression as sensitive + * content. */ public Builder hotwords(Optional> hotwords) { Utils.checkNotNull(hotwords, "hotwords"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SessionInfo.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SessionInfo.java index 156af337..3f9653b6 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SessionInfo.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SessionInfo.java @@ -17,14 +17,16 @@ public class SessionInfo { /** - * A unique token for this session. A new session (and token) is created when the user issues a request from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. + * A unique token for this session. A new session (and token) is created when the user issues a request + * from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sessionTrackingToken") private Optional sessionTrackingToken; /** - * A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is only generated when a user issues a request from a new tab. + * A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is + * only generated when a user issues a request from a new tab. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tabId") @@ -66,7 +68,8 @@ public SessionInfo() { } /** - * A unique token for this session. A new session (and token) is created when the user issues a request from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. + * A unique token for this session. A new session (and token) is created when the user issues a request + * from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. */ @JsonIgnore public Optional sessionTrackingToken() { @@ -74,7 +77,8 @@ public Optional sessionTrackingToken() { } /** - * A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is only generated when a user issues a request from a new tab. + * A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is + * only generated when a user issues a request from a new tab. */ @JsonIgnore public Optional tabId() { @@ -103,7 +107,8 @@ public static Builder builder() { /** - * A unique token for this session. A new session (and token) is created when the user issues a request from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. + * A unique token for this session. A new session (and token) is created when the user issues a request + * from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. */ public SessionInfo withSessionTrackingToken(String sessionTrackingToken) { Utils.checkNotNull(sessionTrackingToken, "sessionTrackingToken"); @@ -113,7 +118,8 @@ public SessionInfo withSessionTrackingToken(String sessionTrackingToken) { /** - * A unique token for this session. A new session (and token) is created when the user issues a request from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. + * A unique token for this session. A new session (and token) is created when the user issues a request + * from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. */ public SessionInfo withSessionTrackingToken(Optional sessionTrackingToken) { Utils.checkNotNull(sessionTrackingToken, "sessionTrackingToken"); @@ -122,7 +128,8 @@ public SessionInfo withSessionTrackingToken(Optional sessionTrackingToke } /** - * A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is only generated when a user issues a request from a new tab. + * A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is + * only generated when a user issues a request from a new tab. */ public SessionInfo withTabId(String tabId) { Utils.checkNotNull(tabId, "tabId"); @@ -132,7 +139,8 @@ public SessionInfo withTabId(String tabId) { /** - * A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is only generated when a user issues a request from a new tab. + * A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is + * only generated when a user issues a request from a new tab. */ public SessionInfo withTabId(Optional tabId) { Utils.checkNotNull(tabId, "tabId"); @@ -227,7 +235,8 @@ private Builder() { /** - * A unique token for this session. A new session (and token) is created when the user issues a request from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. + * A unique token for this session. A new session (and token) is created when the user issues a request + * from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. */ public Builder sessionTrackingToken(String sessionTrackingToken) { Utils.checkNotNull(sessionTrackingToken, "sessionTrackingToken"); @@ -236,7 +245,8 @@ public Builder sessionTrackingToken(String sessionTrackingToken) { } /** - * A unique token for this session. A new session (and token) is created when the user issues a request from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. + * A unique token for this session. A new session (and token) is created when the user issues a request + * from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. */ public Builder sessionTrackingToken(Optional sessionTrackingToken) { Utils.checkNotNull(sessionTrackingToken, "sessionTrackingToken"); @@ -246,7 +256,8 @@ public Builder sessionTrackingToken(Optional sessionTrackingToken) { /** - * A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is only generated when a user issues a request from a new tab. + * A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is + * only generated when a user issues a request from a new tab. */ public Builder tabId(String tabId) { Utils.checkNotNull(tabId, "tabId"); @@ -255,7 +266,8 @@ public Builder tabId(String tabId) { } /** - * A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is only generated when a user issues a request from a new tab. + * A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is + * only generated when a user issues a request from a new tab. */ public Builder tabId(Optional tabId) { Utils.checkNotNull(tabId, "tabId"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Share.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Share.java index de23c1ac..cde5f51b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Share.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Share.java @@ -18,7 +18,8 @@ /** * Share * - *

Search endpoint will only fill out numDays ago since that's all we need to display shared badge; docmetadata endpoint will fill out all the fields so that we can display shared badge tooltip + *

Search endpoint will only fill out numDays ago since that's all we need to display shared badge; + * docmetadata endpoint will fill out all the fields so that we can display shared badge tooltip */ public class Share { /** diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Shortcut.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Shortcut.java index b2f014d8..d0c8c95a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Shortcut.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Shortcut.java @@ -117,14 +117,18 @@ public class Shortcut { private Optional destinationDocument; /** - * The URL from which the user is then redirected to the destination URL. Full replacement for https://go/<inputAlias>. + * The URL from which the user is then redirected to the destination URL. Full replacement for + * https://go/. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("intermediateUrl") private Optional intermediateUrl; /** - * The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should end with "/". e.g. "go/" for native shortcuts. + * The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should + * end with "/". e.g. + * + *

"go/" for native shortcuts. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewPrefix") @@ -362,7 +366,8 @@ public Optional destinationDocument() { } /** - * The URL from which the user is then redirected to the destination URL. Full replacement for https://go/<inputAlias>. + * The URL from which the user is then redirected to the destination URL. Full replacement for + * https://go/. */ @JsonIgnore public Optional intermediateUrl() { @@ -370,7 +375,10 @@ public Optional intermediateUrl() { } /** - * The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should end with "/". e.g. "go/" for native shortcuts. + * The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should + * end with "/". e.g. + * + *

"go/" for native shortcuts. */ @JsonIgnore public Optional viewPrefix() { @@ -675,7 +683,8 @@ public Shortcut withDestinationDocument(Optional destination } /** - * The URL from which the user is then redirected to the destination URL. Full replacement for https://go/<inputAlias>. + * The URL from which the user is then redirected to the destination URL. Full replacement for + * https://go/. */ public Shortcut withIntermediateUrl(String intermediateUrl) { Utils.checkNotNull(intermediateUrl, "intermediateUrl"); @@ -685,7 +694,8 @@ public Shortcut withIntermediateUrl(String intermediateUrl) { /** - * The URL from which the user is then redirected to the destination URL. Full replacement for https://go/<inputAlias>. + * The URL from which the user is then redirected to the destination URL. Full replacement for + * https://go/. */ public Shortcut withIntermediateUrl(Optional intermediateUrl) { Utils.checkNotNull(intermediateUrl, "intermediateUrl"); @@ -694,7 +704,10 @@ public Shortcut withIntermediateUrl(Optional intermediateUrl) { } /** - * The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should end with "/". e.g. "go/" for native shortcuts. + * The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should + * end with "/". e.g. + * + *

"go/" for native shortcuts. */ public Shortcut withViewPrefix(String viewPrefix) { Utils.checkNotNull(viewPrefix, "viewPrefix"); @@ -704,7 +717,10 @@ public Shortcut withViewPrefix(String viewPrefix) { /** - * The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should end with "/". e.g. "go/" for native shortcuts. + * The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should + * end with "/". e.g. + * + *

"go/" for native shortcuts. */ public Shortcut withViewPrefix(Optional viewPrefix) { Utils.checkNotNull(viewPrefix, "viewPrefix"); @@ -1186,7 +1202,8 @@ public Builder destinationDocument(Optional destinationDocum /** - * The URL from which the user is then redirected to the destination URL. Full replacement for https://go/<inputAlias>. + * The URL from which the user is then redirected to the destination URL. Full replacement for + * https://go/. */ public Builder intermediateUrl(String intermediateUrl) { Utils.checkNotNull(intermediateUrl, "intermediateUrl"); @@ -1195,7 +1212,8 @@ public Builder intermediateUrl(String intermediateUrl) { } /** - * The URL from which the user is then redirected to the destination URL. Full replacement for https://go/<inputAlias>. + * The URL from which the user is then redirected to the destination URL. Full replacement for + * https://go/. */ public Builder intermediateUrl(Optional intermediateUrl) { Utils.checkNotNull(intermediateUrl, "intermediateUrl"); @@ -1205,7 +1223,10 @@ public Builder intermediateUrl(Optional intermediateUrl) { /** - * The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should end with "/". e.g. "go/" for native shortcuts. + * The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should + * end with "/". e.g. + * + *

"go/" for native shortcuts. */ public Builder viewPrefix(String viewPrefix) { Utils.checkNotNull(viewPrefix, "viewPrefix"); @@ -1214,7 +1235,10 @@ public Builder viewPrefix(String viewPrefix) { } /** - * The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should end with "/". e.g. "go/" for native shortcuts. + * The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should + * end with "/". e.g. + * + *

"go/" for native shortcuts. */ public Builder viewPrefix(Optional viewPrefix) { Utils.checkNotNull(viewPrefix, "viewPrefix"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/StructuredResult.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/StructuredResult.java index f1fa7892..8fe16dff 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/StructuredResult.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/StructuredResult.java @@ -18,7 +18,8 @@ /** * StructuredResult * - *

A single object that can support any object in the work graph. Only a single object will be populated. + *

A single object that can support any object in the work graph. Only a single object will be + * populated. */ public class StructuredResult { @@ -123,7 +124,8 @@ public class StructuredResult { private Optional> snippets; /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trackingToken") @@ -348,7 +350,8 @@ public Optional> snippets() { } /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ @JsonIgnore public Optional trackingToken() { @@ -644,7 +647,8 @@ public StructuredResult withSnippets(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -1092,7 +1097,8 @@ public Builder snippets(Optional> snippets) /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ public Builder trackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -1101,7 +1107,8 @@ public Builder trackingToken(String trackingToken) { } /** - * An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. + * An opaque token that represents this particular result in this particular query. To be used for + * /feedback reporting. */ public Builder trackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/StructuredText.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/StructuredText.java index 78c9f961..f5aedaac 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/StructuredText.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/StructuredText.java @@ -22,7 +22,8 @@ public class StructuredText { private String text; /** - * An array of objects each of which contains either a string or a link which optionally corresponds to a document. + * An array of objects each of which contains either a string or a link which optionally corresponds to + * a document. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("structuredList") @@ -49,7 +50,8 @@ public String text() { } /** - * An array of objects each of which contains either a string or a link which optionally corresponds to a document. + * An array of objects each of which contains either a string or a link which optionally corresponds to + * a document. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -69,7 +71,8 @@ public StructuredText withText(String text) { } /** - * An array of objects each of which contains either a string or a link which optionally corresponds to a document. + * An array of objects each of which contains either a string or a link which optionally corresponds to + * a document. */ public StructuredText withStructuredList(List structuredList) { Utils.checkNotNull(structuredList, "structuredList"); @@ -79,7 +82,8 @@ public StructuredText withStructuredList(List structuredList /** - * An array of objects each of which contains either a string or a link which optionally corresponds to a document. + * An array of objects each of which contains either a string or a link which optionally corresponds to + * a document. */ public StructuredText withStructuredList(Optional> structuredList) { Utils.checkNotNull(structuredList, "structuredList"); @@ -134,7 +138,8 @@ public Builder text(String text) { /** - * An array of objects each of which contains either a string or a link which optionally corresponds to a document. + * An array of objects each of which contains either a string or a link which optionally corresponds to + * a document. */ public Builder structuredList(List structuredList) { Utils.checkNotNull(structuredList, "structuredList"); @@ -143,7 +148,8 @@ public Builder structuredList(List structuredList) { } /** - * An array of objects each of which contains either a string or a link which optionally corresponds to a document. + * An array of objects each of which contains either a string or a link which optionally corresponds to + * a document. */ public Builder structuredList(Optional> structuredList) { Utils.checkNotNull(structuredList, "structuredList"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/StructuredTextItem.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/StructuredTextItem.java index b8ad75e4..4be9e454 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/StructuredTextItem.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/StructuredTextItem.java @@ -32,7 +32,8 @@ public class StructuredTextItem { private Optional text; /** - * A single object that can support any object in the work graph. Only a single object will be populated. + * A single object that can support any object in the work graph. Only a single object will be + * populated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("structuredResult") @@ -76,7 +77,8 @@ public Optional text() { } /** - * A single object that can support any object in the work graph. Only a single object will be populated. + * A single object that can support any object in the work graph. Only a single object will be + * populated. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -129,7 +131,8 @@ public StructuredTextItem withText(Optional text) { } /** - * A single object that can support any object in the work graph. Only a single object will be populated. + * A single object that can support any object in the work graph. Only a single object will be + * populated. */ public StructuredTextItem withStructuredResult(StructuredResult structuredResult) { Utils.checkNotNull(structuredResult, "structuredResult"); @@ -139,7 +142,8 @@ public StructuredTextItem withStructuredResult(StructuredResult structuredResult /** - * A single object that can support any object in the work graph. Only a single object will be populated. + * A single object that can support any object in the work graph. Only a single object will be + * populated. */ public StructuredTextItem withStructuredResult(Optional structuredResult) { Utils.checkNotNull(structuredResult, "structuredResult"); @@ -235,7 +239,8 @@ public Builder text(Optional text) { /** - * A single object that can support any object in the work graph. Only a single object will be populated. + * A single object that can support any object in the work graph. Only a single object will be + * populated. */ public Builder structuredResult(StructuredResult structuredResult) { Utils.checkNotNull(structuredResult, "structuredResult"); @@ -244,7 +249,8 @@ public Builder structuredResult(StructuredResult structuredResult) { } /** - * A single object that can support any object in the work graph. Only a single object will be populated. + * A single object that can support any object in the work graph. Only a single object will be + * populated. */ public Builder structuredResult(Optional structuredResult) { Utils.checkNotNull(structuredResult, "structuredResult"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/SummarizeResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/SummarizeResponse.java index 03ed43f2..06f77deb 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/SummarizeResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/SummarizeResponse.java @@ -27,7 +27,8 @@ public class SummarizeResponse { private Optional summary; /** - * An opaque token that represents this summary in this particular query. To be used for /feedback reporting. + * An opaque token that represents this summary in this particular query. To be used for /feedback + * reporting. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("trackingToken") @@ -63,7 +64,8 @@ public Optional

summary() { } /** - * An opaque token that represents this summary in this particular query. To be used for /feedback reporting. + * An opaque token that represents this summary in this particular query. To be used for /feedback + * reporting. */ @JsonIgnore public Optional trackingToken() { @@ -102,7 +104,8 @@ public SummarizeResponse withSummary(Optional summary) { } /** - * An opaque token that represents this summary in this particular query. To be used for /feedback reporting. + * An opaque token that represents this summary in this particular query. To be used for /feedback + * reporting. */ public SummarizeResponse withTrackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -112,7 +115,8 @@ public SummarizeResponse withTrackingToken(String trackingToken) { /** - * An opaque token that represents this summary in this particular query. To be used for /feedback reporting. + * An opaque token that represents this summary in this particular query. To be used for /feedback + * reporting. */ public SummarizeResponse withTrackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -190,7 +194,8 @@ public Builder summary(Optional summary) { /** - * An opaque token that represents this summary in this particular query. To be used for /feedback reporting. + * An opaque token that represents this summary in this particular query. To be used for /feedback + * reporting. */ public Builder trackingToken(String trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); @@ -199,7 +204,8 @@ public Builder trackingToken(String trackingToken) { } /** - * An opaque token that represents this summary in this particular query. To be used for /feedback reporting. + * An opaque token that represents this summary in this particular query. To be used for /feedback + * reporting. */ public Builder trackingToken(Optional trackingToken) { Utils.checkNotNull(trackingToken, "trackingToken"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Team.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Team.java index 5a709105..8db8e743 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Team.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Team.java @@ -55,7 +55,8 @@ public class Team { private Optional description; /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("businessUnit") @@ -97,7 +98,8 @@ public class Team { private Optional> members; /** - * Number of members on this team (recursive; includes all individuals that belong to this team, and all individuals that belong to a subteam within this team) + * Number of members on this team (recursive; includes all individuals that belong to this team, and + * all individuals that belong to a subteam within this team) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("memberCount") @@ -285,7 +287,8 @@ public Optional description() { } /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ @JsonIgnore public Optional businessUnit() { @@ -334,7 +337,8 @@ public Optional> members() { } /** - * Number of members on this team (recursive; includes all individuals that belong to this team, and all individuals that belong to a subteam within this team) + * Number of members on this team (recursive; includes all individuals that belong to this team, and + * all individuals that belong to a subteam within this team) */ @JsonIgnore public Optional memberCount() { @@ -492,7 +496,8 @@ public Team withDescription(Optional description) { } /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public Team withBusinessUnit(String businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -502,7 +507,8 @@ public Team withBusinessUnit(String businessUnit) { /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public Team withBusinessUnit(Optional businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -606,7 +612,8 @@ public Team withMembers(Optional> membe } /** - * Number of members on this team (recursive; includes all individuals that belong to this team, and all individuals that belong to a subteam within this team) + * Number of members on this team (recursive; includes all individuals that belong to this team, and + * all individuals that belong to a subteam within this team) */ public Team withMemberCount(long memberCount) { Utils.checkNotNull(memberCount, "memberCount"); @@ -616,7 +623,8 @@ public Team withMemberCount(long memberCount) { /** - * Number of members on this team (recursive; includes all individuals that belong to this team, and all individuals that belong to a subteam within this team) + * Number of members on this team (recursive; includes all individuals that belong to this team, and + * all individuals that belong to a subteam within this team) */ public Team withMemberCount(Optional memberCount) { Utils.checkNotNull(memberCount, "memberCount"); @@ -988,7 +996,8 @@ public Builder description(Optional description) { /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public Builder businessUnit(String businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -997,7 +1006,8 @@ public Builder businessUnit(String businessUnit) { } /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public Builder businessUnit(Optional businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -1102,7 +1112,8 @@ public Builder members(Optional> member /** - * Number of members on this team (recursive; includes all individuals that belong to this team, and all individuals that belong to a subteam within this team) + * Number of members on this team (recursive; includes all individuals that belong to this team, and + * all individuals that belong to a subteam within this team) */ public Builder memberCount(long memberCount) { Utils.checkNotNull(memberCount, "memberCount"); @@ -1111,7 +1122,8 @@ public Builder memberCount(long memberCount) { } /** - * Number of members on this team (recursive; includes all individuals that belong to this team, and all individuals that belong to a subteam within this team) + * Number of members on this team (recursive; includes all individuals that belong to this team, and + * all individuals that belong to a subteam within this team) */ public Builder memberCount(Optional memberCount) { Utils.checkNotNull(memberCount, "memberCount"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/TeamInfoDefinition.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/TeamInfoDefinition.java index 1eb21a56..13a838ac 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/TeamInfoDefinition.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/TeamInfoDefinition.java @@ -41,7 +41,8 @@ public class TeamInfoDefinition { private Optional description; /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("businessUnit") @@ -167,7 +168,8 @@ public Optional description() { } /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ @JsonIgnore public Optional businessUnit() { @@ -276,7 +278,8 @@ public TeamInfoDefinition withDescription(Optional description) { } /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public TeamInfoDefinition withBusinessUnit(String businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -286,7 +289,8 @@ public TeamInfoDefinition withBusinessUnit(String businessUnit) { /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public TeamInfoDefinition withBusinessUnit(Optional businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -535,7 +539,8 @@ public Builder description(Optional description) { /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public Builder businessUnit(String businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); @@ -544,7 +549,8 @@ public Builder businessUnit(String businessUnit) { } /** - * Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. + * Typically the highest level organizational unit; generally applies to bigger companies with multiple + * distinct businesses. */ public Builder businessUnit(Optional businessUnit) { Utils.checkNotNull(businessUnit, "businessUnit"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/TeamMember.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/TeamMember.java index f2ad8d24..d37dce44 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/TeamMember.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/TeamMember.java @@ -29,7 +29,8 @@ public class TeamMember { private String email; /** - * The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, `OTHER` + * The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, + * `OTHER` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("relationship") @@ -69,7 +70,8 @@ public String email() { } /** - * The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, `OTHER` + * The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, + * `OTHER` */ @JsonIgnore public Optional relationship() { @@ -99,7 +101,8 @@ public TeamMember withEmail(String email) { } /** - * The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, `OTHER` + * The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, + * `OTHER` */ public TeamMember withRelationship(String relationship) { Utils.checkNotNull(relationship, "relationship"); @@ -109,7 +112,8 @@ public TeamMember withRelationship(String relationship) { /** - * The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, `OTHER` + * The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, + * `OTHER` */ public TeamMember withRelationship(Optional relationship) { Utils.checkNotNull(relationship, "relationship"); @@ -190,7 +194,8 @@ public Builder email(String email) { /** - * The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, `OTHER` + * The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, + * `OTHER` */ public Builder relationship(String relationship) { Utils.checkNotNull(relationship, "relationship"); @@ -199,7 +204,8 @@ public Builder relationship(String relationship) { } /** - * The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, `OTHER` + * The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, + * `OTHER` */ public Builder relationship(Optional relationship) { Utils.checkNotNull(relationship, "relationship"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Tool.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Tool.java index 2fe36fd0..b3c43b49 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Tool.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Tool.java @@ -46,7 +46,8 @@ public class Tool { private Optional description; /** - * The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. + * The parameters for the tool. Each key is the name of the parameter and the value is the parameter + * object. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("parameters") @@ -110,7 +111,8 @@ public Optional description() { } /** - * The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. + * The parameters for the tool. Each key is the name of the parameter and the value is the parameter + * object. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -200,7 +202,8 @@ public Tool withDescription(Optional description) { } /** - * The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. + * The parameters for the tool. Each key is the name of the parameter and the value is the parameter + * object. */ public Tool withParameters(Map parameters) { Utils.checkNotNull(parameters, "parameters"); @@ -210,7 +213,8 @@ public Tool withParameters(Map parameters) { /** - * The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. + * The parameters for the tool. Each key is the name of the parameter and the value is the parameter + * object. */ public Tool withParameters(Optional> parameters) { Utils.checkNotNull(parameters, "parameters"); @@ -347,7 +351,8 @@ public Builder description(Optional description) { /** - * The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. + * The parameters for the tool. Each key is the name of the parameter and the value is the parameter + * object. */ public Builder parameters(Map parameters) { Utils.checkNotNull(parameters, "parameters"); @@ -356,7 +361,8 @@ public Builder parameters(Map parameters) { } /** - * The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. + * The parameters for the tool. Each key is the name of the parameter and the value is the parameter + * object. */ public Builder parameters(Optional> parameters) { Utils.checkNotNull(parameters, "parameters"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolMetadata.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolMetadata.java index 99453511..9c132746 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolMetadata.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolMetadata.java @@ -29,7 +29,8 @@ public class ToolMetadata { private ToolMetadataType type; /** - * Unique identifier for the tool. Name should be understandable by the LLM, and will be used to invoke a tool. + * Unique identifier for the tool. Name should be understandable by the LLM, and will be used to invoke + * a tool. */ @JsonProperty("name") private String name; @@ -61,7 +62,8 @@ public class ToolMetadata { private Optional logoUrl; /** - * Name of the generated object. This will be used to indicate to the end user what the generated object contains. + * Name of the generated object. This will be used to indicate to the end user what the generated + * object contains. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("objectName") @@ -99,7 +101,10 @@ public class ToolMetadata { private Optional lastUpdatedAt; /** - * Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. + * Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the + * URL which contains information for carrying out the action. + * + *

EXECUTION - Send a request to an external server and execute the action. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("writeActionType") @@ -107,7 +112,8 @@ public class ToolMetadata { /** * The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. @@ -222,7 +228,8 @@ public ToolMetadataType type() { } /** - * Unique identifier for the tool. Name should be understandable by the LLM, and will be used to invoke a tool. + * Unique identifier for the tool. Name should be understandable by the LLM, and will be used to invoke + * a tool. */ @JsonIgnore public String name() { @@ -262,7 +269,8 @@ public Optional logoUrl() { } /** - * Name of the generated object. This will be used to indicate to the end user what the generated object contains. + * Name of the generated object. This will be used to indicate to the end user what the generated + * object contains. */ @JsonIgnore public Optional objectName() { @@ -307,7 +315,10 @@ public Optional lastUpdatedAt() { } /** - * Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. + * Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the + * URL which contains information for carrying out the action. + * + *

EXECUTION - Send a request to an external server and execute the action. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -317,7 +328,8 @@ public Optional writeActionType() { /** * The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. @@ -374,7 +386,8 @@ public ToolMetadata withType(ToolMetadataType type) { } /** - * Unique identifier for the tool. Name should be understandable by the LLM, and will be used to invoke a tool. + * Unique identifier for the tool. Name should be understandable by the LLM, and will be used to invoke + * a tool. */ public ToolMetadata withName(String name) { Utils.checkNotNull(name, "name"); @@ -439,7 +452,8 @@ public ToolMetadata withLogoUrl(Optional logoUrl) { } /** - * Name of the generated object. This will be used to indicate to the end user what the generated object contains. + * Name of the generated object. This will be used to indicate to the end user what the generated + * object contains. */ public ToolMetadata withObjectName(String objectName) { Utils.checkNotNull(objectName, "objectName"); @@ -449,7 +463,8 @@ public ToolMetadata withObjectName(String objectName) { /** - * Name of the generated object. This will be used to indicate to the end user what the generated object contains. + * Name of the generated object. This will be used to indicate to the end user what the generated + * object contains. */ public ToolMetadata withObjectName(Optional objectName) { Utils.checkNotNull(objectName, "objectName"); @@ -541,7 +556,10 @@ public ToolMetadata withLastUpdatedAt(Optional lastUpdatedAt) { } /** - * Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. + * Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the + * URL which contains information for carrying out the action. + * + *

EXECUTION - Send a request to an external server and execute the action. */ public ToolMetadata withWriteActionType(WriteActionType writeActionType) { Utils.checkNotNull(writeActionType, "writeActionType"); @@ -551,7 +569,10 @@ public ToolMetadata withWriteActionType(WriteActionType writeActionType) { /** - * Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. + * Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the + * URL which contains information for carrying out the action. + * + *

EXECUTION - Send a request to an external server and execute the action. */ public ToolMetadata withWriteActionType(Optional writeActionType) { Utils.checkNotNull(writeActionType, "writeActionType"); @@ -561,7 +582,8 @@ public ToolMetadata withWriteActionType(Optional writ /** * The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. @@ -575,7 +597,8 @@ public ToolMetadata withAuthType(AuthType authType) { /** * The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. @@ -775,7 +798,8 @@ public Builder type(ToolMetadataType type) { /** - * Unique identifier for the tool. Name should be understandable by the LLM, and will be used to invoke a tool. + * Unique identifier for the tool. Name should be understandable by the LLM, and will be used to invoke + * a tool. */ public Builder name(String name) { Utils.checkNotNull(name, "name"); @@ -843,7 +867,8 @@ public Builder logoUrl(Optional logoUrl) { /** - * Name of the generated object. This will be used to indicate to the end user what the generated object contains. + * Name of the generated object. This will be used to indicate to the end user what the generated + * object contains. */ public Builder objectName(String objectName) { Utils.checkNotNull(objectName, "objectName"); @@ -852,7 +877,8 @@ public Builder objectName(String objectName) { } /** - * Name of the generated object. This will be used to indicate to the end user what the generated object contains. + * Name of the generated object. This will be used to indicate to the end user what the generated + * object contains. */ public Builder objectName(Optional objectName) { Utils.checkNotNull(objectName, "objectName"); @@ -945,7 +971,10 @@ public Builder lastUpdatedAt(Optional lastUpdatedAt) { /** - * Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. + * Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the + * URL which contains information for carrying out the action. + * + *

EXECUTION - Send a request to an external server and execute the action. */ public Builder writeActionType(WriteActionType writeActionType) { Utils.checkNotNull(writeActionType, "writeActionType"); @@ -954,7 +983,10 @@ public Builder writeActionType(WriteActionType writeActionType) { } /** - * Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. + * Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the + * URL which contains information for carrying out the action. + * + *

EXECUTION - Send a request to an external server and execute the action. */ public Builder writeActionType(Optional writeActionType) { Utils.checkNotNull(writeActionType, "writeActionType"); @@ -965,7 +997,8 @@ public Builder writeActionType(Optional writeActionTy /** * The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. @@ -978,7 +1011,8 @@ public Builder authType(AuthType authType) { /** * The type of authentication being used. - * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. + * Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth + * token. * 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. * 'OAUTH_USER' uses individual user tokens for external API calls. * 'DWD' refers to domain wide delegation. diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolParameter.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolParameter.java index 5f168924..711dfa33 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolParameter.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolParameter.java @@ -48,7 +48,8 @@ public class ToolParameter { private Optional isRequired; /** - * The possible values for the parameter. Can contain only primitive values or arrays of primitive values. + * The possible values for the parameter. Can contain only primitive values or arrays of primitive + * values. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("possibleValues") @@ -131,7 +132,8 @@ public Optional isRequired() { } /** - * The possible values for the parameter. Can contain only primitive values or arrays of primitive values. + * The possible values for the parameter. Can contain only primitive values or arrays of primitive + * values. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -236,7 +238,8 @@ public ToolParameter withIsRequired(Optional isRequired) { } /** - * The possible values for the parameter. Can contain only primitive values or arrays of primitive values. + * The possible values for the parameter. Can contain only primitive values or arrays of primitive + * values. */ public ToolParameter withPossibleValues(List possibleValues) { Utils.checkNotNull(possibleValues, "possibleValues"); @@ -246,7 +249,8 @@ public ToolParameter withPossibleValues(List possibleValues) { /** - * The possible values for the parameter. Can contain only primitive values or arrays of primitive values. + * The possible values for the parameter. Can contain only primitive values or arrays of primitive + * values. */ public ToolParameter withPossibleValues(Optional> possibleValues) { Utils.checkNotNull(possibleValues, "possibleValues"); @@ -424,7 +428,8 @@ public Builder isRequired(Optional isRequired) { /** - * The possible values for the parameter. Can contain only primitive values or arrays of primitive values. + * The possible values for the parameter. Can contain only primitive values or arrays of primitive + * values. */ public Builder possibleValues(List possibleValues) { Utils.checkNotNull(possibleValues, "possibleValues"); @@ -433,7 +438,8 @@ public Builder possibleValues(List possibleValues) { } /** - * The possible values for the parameter. Can contain only primitive values or arrays of primitive values. + * The possible values for the parameter. Can contain only primitive values or arrays of primitive + * values. */ public Builder possibleValues(Optional> possibleValues) { Utils.checkNotNull(possibleValues, "possibleValues"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolSets.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolSets.java index 2809a11a..3905b449 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolSets.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolSets.java @@ -17,7 +17,8 @@ /** * ToolSets * - *

The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values + *

The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` + * values */ public class ToolSets { /** diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolsCallRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolsCallRequest.java index ef687cd9..f94b47a3 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolsCallRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/ToolsCallRequest.java @@ -20,7 +20,8 @@ public class ToolsCallRequest { private String name; /** - * The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. + * The parameters for the tool. Each key is the name of the parameter and the value is the parameter + * object. */ @JsonProperty("parameters") private Map parameters; @@ -45,7 +46,8 @@ public String name() { } /** - * The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. + * The parameters for the tool. Each key is the name of the parameter and the value is the parameter + * object. */ @JsonIgnore public Map parameters() { @@ -67,7 +69,8 @@ public ToolsCallRequest withName(String name) { } /** - * The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. + * The parameters for the tool. Each key is the name of the parameter and the value is the parameter + * object. */ public ToolsCallRequest withParameters(Map parameters) { Utils.checkNotNull(parameters, "parameters"); @@ -125,7 +128,8 @@ public Builder name(String name) { /** - * The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. + * The parameters for the tool. Each key is the name of the parameter and the value is the parameter + * object. */ public Builder parameters(Map parameters) { Utils.checkNotNull(parameters, "parameters"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/UpdateAnnouncementRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/UpdateAnnouncementRequest.java index f9515c9b..1820dcf7 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/UpdateAnnouncementRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/UpdateAnnouncementRequest.java @@ -61,7 +61,8 @@ public class UpdateAnnouncementRequest { private Optional banner; /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("audienceFilters") @@ -89,7 +90,8 @@ public class UpdateAnnouncementRequest { private Optional channel; /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("postType") @@ -103,7 +105,10 @@ public class UpdateAnnouncementRequest { private Optional isPrioritized; /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewUrl") @@ -227,7 +232,8 @@ public Optional banner() { } /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -261,7 +267,8 @@ public Optional channel() { } /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -278,7 +285,10 @@ public Optional isPrioritized() { } /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ @JsonIgnore public Optional viewUrl() { @@ -384,7 +394,8 @@ public UpdateAnnouncementRequest withBanner(Optional banner } /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ public UpdateAnnouncementRequest withAudienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -394,7 +405,8 @@ public UpdateAnnouncementRequest withAudienceFilters(List audienceF /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ public UpdateAnnouncementRequest withAudienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -460,7 +472,8 @@ public UpdateAnnouncementRequest withChannel(Optional postType) { Utils.checkNotNull(postType, "postType"); @@ -498,7 +512,10 @@ public UpdateAnnouncementRequest withIsPrioritized(Optional isPrioritiz } /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ public UpdateAnnouncementRequest withViewUrl(String viewUrl) { Utils.checkNotNull(viewUrl, "viewUrl"); @@ -508,7 +525,10 @@ public UpdateAnnouncementRequest withViewUrl(String viewUrl) { /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ public UpdateAnnouncementRequest withViewUrl(Optional viewUrl) { Utils.checkNotNull(viewUrl, "viewUrl"); @@ -709,7 +729,8 @@ public Builder banner(Optional banner) { /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(List audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -718,7 +739,8 @@ public Builder audienceFilters(List audienceFilters) { } /** - * Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. + * Filters which restrict who should see the announcement. Values are taken from the corresponding + * filters in people search. */ public Builder audienceFilters(Optional> audienceFilters) { Utils.checkNotNull(audienceFilters, "audienceFilters"); @@ -785,7 +807,8 @@ public Builder channel(Optional chan /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ public Builder postType(UpdateAnnouncementRequestPostType postType) { Utils.checkNotNull(postType, "postType"); @@ -794,7 +817,8 @@ public Builder postType(UpdateAnnouncementRequestPostType postType) { } /** - * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + * This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ public Builder postType(Optional postType) { Utils.checkNotNull(postType, "postType"); @@ -823,7 +847,10 @@ public Builder isPrioritized(Optional isPrioritized) { /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ public Builder viewUrl(String viewUrl) { Utils.checkNotNull(viewUrl, "viewUrl"); @@ -832,7 +859,10 @@ public Builder viewUrl(String viewUrl) { } /** - * URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". + * URL for viewing the announcement. It will be set to document URL for announcements from other + * datasources e.g. simpplr. + * + *

Can only be written when channel="SOCIAL_FEED". */ public Builder viewUrl(Optional viewUrl) { Utils.checkNotNull(viewUrl, "viewUrl"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/UpdateAnnouncementRequestPostType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/UpdateAnnouncementRequestPostType.java index f34d3e7d..10db7e64 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/UpdateAnnouncementRequestPostType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/UpdateAnnouncementRequestPostType.java @@ -11,7 +11,8 @@ /** * UpdateAnnouncementRequestPostType * - *

This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. + *

This determines whether this is an external-link post or a regular announcement post. TEXT - Regular + * announcement that can contain rich text. LINK - Announcement that is linked to an external site. */ public enum UpdateAnnouncementRequestPostType { TEXT("TEXT"), diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/UpdatePermissionsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/UpdatePermissionsRequest.java index 3aa3e886..3de32f13 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/UpdatePermissionsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/UpdatePermissionsRequest.java @@ -24,21 +24,24 @@ public class UpdatePermissionsRequest { private String datasource; /** - * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ + * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces + * or _ */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("objectType") private Optional objectType; /** - * The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. + * The datasource specific id for the document. This field is case insensitive and should not be more + * than 200 characters in length. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") private Optional id; /** - * The permalink for viewing the document. **Note: viewURL is a required field if id was not set when uploading the document.**' + * The permalink for viewing the document. **Note: viewURL is a required field if id was not set when + * uploading the document.**' */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("viewURL") @@ -82,7 +85,8 @@ public String datasource() { } /** - * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ + * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces + * or _ */ @JsonIgnore public Optional objectType() { @@ -90,7 +94,8 @@ public Optional objectType() { } /** - * The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. + * The datasource specific id for the document. This field is case insensitive and should not be more + * than 200 characters in length. */ @JsonIgnore public Optional id() { @@ -98,7 +103,8 @@ public Optional id() { } /** - * The permalink for viewing the document. **Note: viewURL is a required field if id was not set when uploading the document.**' + * The permalink for viewing the document. **Note: viewURL is a required field if id was not set when + * uploading the document.**' */ @JsonIgnore public Optional viewURL() { @@ -125,7 +131,8 @@ public UpdatePermissionsRequest withDatasource(String datasource) { } /** - * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ + * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces + * or _ */ public UpdatePermissionsRequest withObjectType(String objectType) { Utils.checkNotNull(objectType, "objectType"); @@ -135,7 +142,8 @@ public UpdatePermissionsRequest withObjectType(String objectType) { /** - * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ + * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces + * or _ */ public UpdatePermissionsRequest withObjectType(Optional objectType) { Utils.checkNotNull(objectType, "objectType"); @@ -144,7 +152,8 @@ public UpdatePermissionsRequest withObjectType(Optional objectType) { } /** - * The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. + * The datasource specific id for the document. This field is case insensitive and should not be more + * than 200 characters in length. */ public UpdatePermissionsRequest withId(String id) { Utils.checkNotNull(id, "id"); @@ -154,7 +163,8 @@ public UpdatePermissionsRequest withId(String id) { /** - * The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. + * The datasource specific id for the document. This field is case insensitive and should not be more + * than 200 characters in length. */ public UpdatePermissionsRequest withId(Optional id) { Utils.checkNotNull(id, "id"); @@ -163,7 +173,8 @@ public UpdatePermissionsRequest withId(Optional id) { } /** - * The permalink for viewing the document. **Note: viewURL is a required field if id was not set when uploading the document.**' + * The permalink for viewing the document. **Note: viewURL is a required field if id was not set when + * uploading the document.**' */ public UpdatePermissionsRequest withViewURL(String viewURL) { Utils.checkNotNull(viewURL, "viewURL"); @@ -173,7 +184,8 @@ public UpdatePermissionsRequest withViewURL(String viewURL) { /** - * The permalink for viewing the document. **Note: viewURL is a required field if id was not set when uploading the document.**' + * The permalink for viewing the document. **Note: viewURL is a required field if id was not set when + * uploading the document.**' */ public UpdatePermissionsRequest withViewURL(Optional viewURL) { Utils.checkNotNull(viewURL, "viewURL"); @@ -250,7 +262,8 @@ public Builder datasource(String datasource) { /** - * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ + * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces + * or _ */ public Builder objectType(String objectType) { Utils.checkNotNull(objectType, "objectType"); @@ -259,7 +272,8 @@ public Builder objectType(String objectType) { } /** - * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ + * The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces + * or _ */ public Builder objectType(Optional objectType) { Utils.checkNotNull(objectType, "objectType"); @@ -269,7 +283,8 @@ public Builder objectType(Optional objectType) { /** - * The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. + * The datasource specific id for the document. This field is case insensitive and should not be more + * than 200 characters in length. */ public Builder id(String id) { Utils.checkNotNull(id, "id"); @@ -278,7 +293,8 @@ public Builder id(String id) { } /** - * The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. + * The datasource specific id for the document. This field is case insensitive and should not be more + * than 200 characters in length. */ public Builder id(Optional id) { Utils.checkNotNull(id, "id"); @@ -288,7 +304,8 @@ public Builder id(Optional id) { /** - * The permalink for viewing the document. **Note: viewURL is a required field if id was not set when uploading the document.**' + * The permalink for viewing the document. **Note: viewURL is a required field if id was not set when + * uploading the document.**' */ public Builder viewURL(String viewURL) { Utils.checkNotNull(viewURL, "viewURL"); @@ -297,7 +314,8 @@ public Builder viewURL(String viewURL) { } /** - * The permalink for viewing the document. **Note: viewURL is a required field if id was not set when uploading the document.**' + * The permalink for viewing the document. **Note: viewURL is a required field if id was not set when + * uploading the document.**' */ public Builder viewURL(Optional viewURL) { Utils.checkNotNull(viewURL, "viewURL"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/UploadShortcutsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/UploadShortcutsRequest.java index d583580b..0ef1b951 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/UploadShortcutsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/UploadShortcutsRequest.java @@ -42,7 +42,8 @@ public class UploadShortcutsRequest { private Optional isLastPage; /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("forceRestartUpload") @@ -105,7 +106,8 @@ public Optional isLastPage() { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ @JsonIgnore public Optional forceRestartUpload() { @@ -173,7 +175,8 @@ public UploadShortcutsRequest withIsLastPage(Optional isLastPage) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public UploadShortcutsRequest withForceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -183,7 +186,8 @@ public UploadShortcutsRequest withForceRestartUpload(boolean forceRestartUpload) /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public UploadShortcutsRequest withForceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -301,7 +305,8 @@ public Builder isLastPage(Optional isLastPage) { /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(boolean forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); @@ -310,7 +315,8 @@ public Builder forceRestartUpload(boolean forceRestartUpload) { } /** - * Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + * Flag to discard previous upload attempts and start from scratch. Must be specified with + * isFirstPage=true */ public Builder forceRestartUpload(Optional forceRestartUpload) { Utils.checkNotNull(forceRestartUpload, "forceRestartUpload"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/User.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/User.java index eeb602a4..575c1f84 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/User.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/User.java @@ -16,7 +16,8 @@ public class User { /** - * An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not specified). + * An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not + * specified). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("userID") @@ -44,7 +45,8 @@ public User() { } /** - * An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not specified). + * An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not + * specified). */ @JsonIgnore public Optional userID() { @@ -65,7 +67,8 @@ public static Builder builder() { /** - * An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not specified). + * An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not + * specified). */ public User withUserID(String userID) { Utils.checkNotNull(userID, "userID"); @@ -75,7 +78,8 @@ public User withUserID(String userID) { /** - * An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not specified). + * An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not + * specified). */ public User withUserID(Optional userID) { Utils.checkNotNull(userID, "userID"); @@ -142,7 +146,8 @@ private Builder() { /** - * An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not specified). + * An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not + * specified). */ public Builder userID(String userID) { Utils.checkNotNull(userID, "userID"); @@ -151,7 +156,8 @@ public Builder userID(String userID) { } /** - * An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not specified). + * An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not + * specified). */ public Builder userID(Optional userID) { Utils.checkNotNull(userID, "userID"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/UserInsightsResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/UserInsightsResponse.java index 45aa6d28..235acd43 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/UserInsightsResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/UserInsightsResponse.java @@ -33,7 +33,8 @@ public class UserInsightsResponse { private Optional> activityInsights; /** - * Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0. + * Insights for all in inactive users with respect to set of actions and time period. Activity count + * will be set to 0. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("inactiveInsights") @@ -105,7 +106,8 @@ public Optional> activityInsights() { } /** - * Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0. + * Insights for all in inactive users with respect to set of actions and time period. Activity count + * will be set to 0. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -182,7 +184,8 @@ public UserInsightsResponse withActivityInsights(Optional inactiveInsights) { Utils.checkNotNull(inactiveInsights, "inactiveInsights"); @@ -192,7 +195,8 @@ public UserInsightsResponse withInactiveInsights(List inact /** - * Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0. + * Insights for all in inactive users with respect to set of actions and time period. Activity count + * will be set to 0. */ public UserInsightsResponse withInactiveInsights(Optional> inactiveInsights) { Utils.checkNotNull(inactiveInsights, "inactiveInsights"); @@ -352,7 +356,8 @@ public Builder activityInsights(Optional> ac /** - * Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0. + * Insights for all in inactive users with respect to set of actions and time period. Activity count + * will be set to 0. */ public Builder inactiveInsights(List inactiveInsights) { Utils.checkNotNull(inactiveInsights, "inactiveInsights"); @@ -361,7 +366,8 @@ public Builder inactiveInsights(List inactiveInsights) { } /** - * Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0. + * Insights for all in inactive users with respect to set of actions and time period. Activity count + * will be set to 0. */ public Builder inactiveInsights(Optional> inactiveInsights) { Utils.checkNotNull(inactiveInsights, "inactiveInsights"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/UserReferenceDefinition.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/UserReferenceDefinition.java index 62e223f7..e94e1f71 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/UserReferenceDefinition.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/UserReferenceDefinition.java @@ -16,7 +16,8 @@ /** * UserReferenceDefinition * - *

Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. + *

Describes how a user is referenced in a document. The user can be referenced by email or by a + * datasource specific id. */ public class UserReferenceDefinition { diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/Value.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Value.java index d9ff2e31..46690a03 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Value.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Value.java @@ -11,7 +11,8 @@ /** * Value * - *

Either a string or HypertextField. When OpenAPI Generator supports oneOf, we can semantically enforce this in the docs. + *

Either a string or HypertextField. When OpenAPI Generator supports oneOf, we can semantically + * enforce this in the docs. */ public class Value { @JsonCreator diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/VerificationMetadata.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/VerificationMetadata.java index 9893e8ee..2e64d4d7 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/VerificationMetadata.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/VerificationMetadata.java @@ -62,7 +62,8 @@ public class VerificationMetadata { private Optional> visitorCount; /** - * List of potential verifiers for the document e.g. old verifiers and/or users with view/edit permissions. + * List of potential verifiers for the document e.g. old verifiers and/or users with view/edit + * permissions. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("candidateVerifiers") @@ -155,7 +156,8 @@ public Optional> visitorCount() { } /** - * List of potential verifiers for the document e.g. old verifiers and/or users with view/edit permissions. + * List of potential verifiers for the document e.g. old verifiers and/or users with view/edit + * permissions. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -284,7 +286,8 @@ public VerificationMetadata withVisitorCount(Optional> } /** - * List of potential verifiers for the document e.g. old verifiers and/or users with view/edit permissions. + * List of potential verifiers for the document e.g. old verifiers and/or users with view/edit + * permissions. */ public VerificationMetadata withCandidateVerifiers(List candidateVerifiers) { Utils.checkNotNull(candidateVerifiers, "candidateVerifiers"); @@ -294,7 +297,8 @@ public VerificationMetadata withCandidateVerifiers(List candidateVerifie /** - * List of potential verifiers for the document e.g. old verifiers and/or users with view/edit permissions. + * List of potential verifiers for the document e.g. old verifiers and/or users with view/edit + * permissions. */ public VerificationMetadata withCandidateVerifiers(Optional> candidateVerifiers) { Utils.checkNotNull(candidateVerifiers, "candidateVerifiers"); @@ -483,7 +487,8 @@ public Builder visitorCount(Optional> visitorCount) { /** - * List of potential verifiers for the document e.g. old verifiers and/or users with view/edit permissions. + * List of potential verifiers for the document e.g. old verifiers and/or users with view/edit + * permissions. */ public Builder candidateVerifiers(List candidateVerifiers) { Utils.checkNotNull(candidateVerifiers, "candidateVerifiers"); @@ -492,7 +497,8 @@ public Builder candidateVerifiers(List candidateVerifiers) { } /** - * List of potential verifiers for the document e.g. old verifiers and/or users with view/edit permissions. + * List of potential verifiers for the document e.g. old verifiers and/or users with view/edit + * permissions. */ public Builder candidateVerifiers(Optional> candidateVerifiers) { Utils.checkNotNull(candidateVerifiers, "candidateVerifiers"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/WriteActionType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/WriteActionType.java index 9f18c7b2..7dee16f7 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/WriteActionType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/WriteActionType.java @@ -11,7 +11,10 @@ /** * WriteActionType * - *

Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. + *

Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the + * URL which contains information for carrying out the action. + * + *

EXECUTION - Send a request to an external server and execute the action. */ public enum WriteActionType { REDIRECT("REDIRECT"), diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatRequest.java index d17815d1..61e409a2 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatRequest.java @@ -15,7 +15,8 @@ public class ChatRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timezoneOffset") private Optional timezoneOffset; @@ -42,7 +43,8 @@ public ChatRequest( } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -63,7 +65,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public ChatRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -73,7 +76,8 @@ public ChatRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public ChatRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -130,7 +134,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -139,7 +144,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatStreamRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatStreamRequest.java index 35d042be..63818494 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatStreamRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatStreamRequest.java @@ -16,7 +16,8 @@ public class ChatStreamRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timezoneOffset") private Optional timezoneOffset; @@ -43,7 +44,8 @@ public ChatStreamRequest( } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -64,7 +66,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public ChatStreamRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -74,7 +77,8 @@ public ChatStreamRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public ChatStreamRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -131,7 +135,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -140,7 +145,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteallchatsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteallchatsRequest.java index a0c3111c..dc907bad 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteallchatsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteallchatsRequest.java @@ -15,7 +15,8 @@ public class DeleteallchatsRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timezoneOffset") private Optional timezoneOffset; @@ -32,7 +33,8 @@ public DeleteallchatsRequest() { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -45,7 +47,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public DeleteallchatsRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -55,7 +58,8 @@ public DeleteallchatsRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public DeleteallchatsRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -99,7 +103,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -108,7 +113,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatfilesRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatfilesRequest.java index d0e4ec9c..a17bd69f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatfilesRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatfilesRequest.java @@ -16,7 +16,8 @@ public class DeletechatfilesRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timezoneOffset") private Optional timezoneOffset; @@ -41,7 +42,8 @@ public DeletechatfilesRequest( } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -59,7 +61,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public DeletechatfilesRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -69,7 +72,8 @@ public DeletechatfilesRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public DeletechatfilesRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -123,7 +127,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -132,7 +137,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatsRequest.java index d6e1beeb..5d6a848b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatsRequest.java @@ -16,7 +16,8 @@ public class DeletechatsRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timezoneOffset") private Optional timezoneOffset; @@ -41,7 +42,8 @@ public DeletechatsRequest( } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -59,7 +61,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public DeletechatsRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -69,7 +72,8 @@ public DeletechatsRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public DeletechatsRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -123,7 +127,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -132,7 +137,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentRequest.java index 038653eb..4336a3bb 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentRequest.java @@ -15,7 +15,8 @@ public class GetAgentRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timezoneOffset") private Optional timezoneOffset; @@ -42,7 +43,8 @@ public GetAgentRequest( } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -63,7 +65,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public GetAgentRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -73,7 +76,8 @@ public GetAgentRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public GetAgentRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -130,7 +134,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -139,7 +144,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentSchemasRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentSchemasRequest.java index 661b35ec..2a7a3900 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentSchemasRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentSchemasRequest.java @@ -15,7 +15,8 @@ public class GetAgentSchemasRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timezoneOffset") private Optional timezoneOffset; @@ -42,7 +43,8 @@ public GetAgentSchemasRequest( } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -63,7 +65,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public GetAgentSchemasRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -73,7 +76,8 @@ public GetAgentSchemasRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public GetAgentSchemasRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -130,7 +134,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -139,7 +144,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatRequest.java index 40f9df61..c19d2e05 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatRequest.java @@ -16,7 +16,8 @@ public class GetchatRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timezoneOffset") private Optional timezoneOffset; @@ -41,7 +42,8 @@ public GetchatRequest( } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -59,7 +61,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public GetchatRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -69,7 +72,8 @@ public GetchatRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public GetchatRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -123,7 +127,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -132,7 +137,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatapplicationRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatapplicationRequest.java index 7643ba71..bf95bda9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatapplicationRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatapplicationRequest.java @@ -16,7 +16,8 @@ public class GetchatapplicationRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timezoneOffset") private Optional timezoneOffset; @@ -41,7 +42,8 @@ public GetchatapplicationRequest( } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -59,7 +61,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public GetchatapplicationRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -69,7 +72,8 @@ public GetchatapplicationRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public GetchatapplicationRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -123,7 +127,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -132,7 +137,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatfilesRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatfilesRequest.java index 3fb46daa..e8dc151d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatfilesRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatfilesRequest.java @@ -16,7 +16,8 @@ public class GetchatfilesRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timezoneOffset") private Optional timezoneOffset; @@ -41,7 +42,8 @@ public GetchatfilesRequest( } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -59,7 +61,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public GetchatfilesRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -69,7 +72,8 @@ public GetchatfilesRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public GetchatfilesRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -123,7 +127,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -132,7 +137,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpolicyRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpolicyRequest.java index 505530d2..b7a08d36 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpolicyRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpolicyRequest.java @@ -21,7 +21,8 @@ public class GetpolicyRequest { private String id; /** - * The version of the policy to fetch. Each time a policy is updated, the older version is still stored. If this is left empty, the latest policy is fetched. + * The version of the policy to fetch. Each time a policy is updated, the older version is still + * stored. If this is left empty, the latest policy is fetched. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=version") private Optional version; @@ -50,7 +51,8 @@ public String id() { } /** - * The version of the policy to fetch. Each time a policy is updated, the older version is still stored. If this is left empty, the latest policy is fetched. + * The version of the policy to fetch. Each time a policy is updated, the older version is still + * stored. If this is left empty, the latest policy is fetched. */ @JsonIgnore public Optional version() { @@ -72,7 +74,8 @@ public GetpolicyRequest withId(String id) { } /** - * The version of the policy to fetch. Each time a policy is updated, the older version is still stored. If this is left empty, the latest policy is fetched. + * The version of the policy to fetch. Each time a policy is updated, the older version is still + * stored. If this is left empty, the latest policy is fetched. */ public GetpolicyRequest withVersion(long version) { Utils.checkNotNull(version, "version"); @@ -82,7 +85,8 @@ public GetpolicyRequest withVersion(long version) { /** - * The version of the policy to fetch. Each time a policy is updated, the older version is still stored. If this is left empty, the latest policy is fetched. + * The version of the policy to fetch. Each time a policy is updated, the older version is still + * stored. If this is left empty, the latest policy is fetched. */ public GetpolicyRequest withVersion(Optional version) { Utils.checkNotNull(version, "version"); @@ -140,7 +144,8 @@ public Builder id(String id) { /** - * The version of the policy to fetch. Each time a policy is updated, the older version is still stored. If this is left empty, the latest policy is fetched. + * The version of the policy to fetch. Each time a policy is updated, the older version is still + * stored. If this is left empty, the latest policy is fetched. */ public Builder version(long version) { Utils.checkNotNull(version, "version"); @@ -149,7 +154,8 @@ public Builder version(long version) { } /** - * The version of the policy to fetch. Each time a policy is updated, the older version is still stored. If this is left empty, the latest policy is fetched. + * The version of the policy to fetch. Each time a policy is updated, the older version is still + * stored. If this is left empty, the latest policy is fetched. */ public Builder version(Optional version) { Utils.checkNotNull(version, "version"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListchatsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListchatsRequest.java index 119cdc59..e3ef5019 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListchatsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListchatsRequest.java @@ -15,7 +15,8 @@ public class ListchatsRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timezoneOffset") private Optional timezoneOffset; @@ -32,7 +33,8 @@ public ListchatsRequest() { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -45,7 +47,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public ListchatsRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -55,7 +58,8 @@ public ListchatsRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public ListchatsRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -99,7 +103,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -108,7 +113,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UploadchatfilesRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UploadchatfilesRequest.java index c3196cbf..66c72ab0 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UploadchatfilesRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UploadchatfilesRequest.java @@ -16,7 +16,8 @@ public class UploadchatfilesRequest { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=timezoneOffset") private Optional timezoneOffset; @@ -41,7 +42,8 @@ public UploadchatfilesRequest( } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ @JsonIgnore public Optional timezoneOffset() { @@ -59,7 +61,8 @@ public static Builder builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public UploadchatfilesRequest withTimezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -69,7 +72,8 @@ public UploadchatfilesRequest withTimezoneOffset(long timezoneOffset) { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public UploadchatfilesRequest withTimezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -123,7 +127,8 @@ private Builder() { /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); @@ -132,7 +137,8 @@ public Builder timezoneOffset(long timezoneOffset) { } /** - * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. + * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours + * behind UTC. */ public Builder timezoneOffset(Optional timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/utils/AsyncHooks.java b/src/main/java/com/glean/api_client/glean_api_client/utils/AsyncHooks.java index e7a1d949..3cf97a08 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/utils/AsyncHooks.java +++ b/src/main/java/com/glean/api_client/glean_api_client/utils/AsyncHooks.java @@ -45,7 +45,7 @@ public AsyncHooks() { /** * Registers an async before-request hook. Hooks are chained in registration order. * - * @param beforeRequest async hook returning CompletableFuture<HttpRequest> + * @param beforeRequest async hook returning {@code CompletableFuture} * @return this */ public AsyncHooks registerBeforeRequest(BeforeRequest beforeRequest) { @@ -57,7 +57,7 @@ public AsyncHooks registerBeforeRequest(BeforeRequest beforeRequest) { /** * Registers an async after-success hook. Hooks are chained in registration order. * - * @param afterSuccess async hook returning CompletableFuture<HttpResponse> + * @param afterSuccess async hook returning {@code CompletableFuture} * @return this */ public AsyncHooks registerAfterSuccess(AfterSuccess afterSuccess) { diff --git a/src/test/java/com/glean/api_client/glean_api_client/ActivitiesTests.java b/src/test/java/com/glean/api_client/glean_api_client/ActivitiesTests.java deleted file mode 100644 index 0ed6ad48..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/ActivitiesTests.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.Event; -import com.glean.api_client.glean_api_client.models.components.Feedback; -import com.glean.api_client.glean_api_client.models.operations.FeedbackResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.util.List; -import org.junit.jupiter.api.Test; - -public class ActivitiesTests { - - @Test - public void testActivities_Feedback() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("feedback"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - FeedbackResponse res = sdk.client().activity().feedback() - .feedback1(Feedback.builder() - .trackingTokens(List.of( - "trackingTokens")) - .event(Event.VIEW) - .build()) - .call(); - assertEquals(200, res.statusCode()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/AgentsTests.java b/src/test/java/com/glean/api_client/glean_api_client/AgentsTests.java deleted file mode 100644 index 245edaf9..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/AgentsTests.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.Agent; -import com.glean.api_client.glean_api_client.models.components.AgentCapabilities; -import com.glean.api_client.glean_api_client.models.components.AgentSchemas; -import com.glean.api_client.glean_api_client.models.components.InputSchema; -import com.glean.api_client.glean_api_client.models.components.OutputSchema; -import com.glean.api_client.glean_api_client.models.operations.GetAgentResponse; -import com.glean.api_client.glean_api_client.models.operations.GetAgentSchemasResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class AgentsTests { - - @Test - public void testAgents_Runagent() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step runagent.test referencing operation runagent not found in document`]"); - } - - @Test - public void testAgents_Listagents() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step listagents.test referencing operation listagents not found in document`]"); - } - - @Test - public void testAgents_Getagentinputs() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step getagentinputs.test referencing operation getagentinputs not found in document`]"); - } - - @Test - public void testAgents_GetAgent() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getAgent"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetAgentResponse res = sdk.client().agents().retrieve() - .agentId("") - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - Agent.builder() - .agentId("") - .name("") - .capabilities(AgentCapabilities.builder() - .build()) - .build(), - res.agent().get()); - } - - @Test - public void testAgents_GetAgentSchemas() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getAgentSchemas"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetAgentSchemasResponse res = sdk.client().agents().retrieveSchemas() - .agentId("") - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - AgentSchemas.builder() - .agentId("") - .inputSchema(InputSchema.builder() - .build()) - .outputSchema(OutputSchema.builder() - .build()) - .build(), - res.agentSchemas().get()); - } - - @Test - public void testAgents_SearchAgents() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step searchAgents.test referencing operation searchAgents is missing required request body`]"); - } - - @Test - public void testAgents_CreateAndStreamRun() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step createAndStreamRun.test referencing operation createAndStreamRun is not currently supported`]"); - } - - @Test - public void testAgents_CreateAndWaitRun() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step createAndWaitRun.test referencing operation createAndWaitRun is missing required request body`]"); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/AnnouncementsTests.java b/src/test/java/com/glean/api_client/glean_api_client/AnnouncementsTests.java deleted file mode 100644 index 4080efe0..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/AnnouncementsTests.java +++ /dev/null @@ -1,8127 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.Announcement; -import com.glean.api_client.glean_api_client.models.components.AuthToken; -import com.glean.api_client.glean_api_client.models.components.Badge; -import com.glean.api_client.glean_api_client.models.components.ChannelInviteInfo; -import com.glean.api_client.glean_api_client.models.components.Collection; -import com.glean.api_client.glean_api_client.models.components.CollectionItem; -import com.glean.api_client.glean_api_client.models.components.CollectionItemItemType; -import com.glean.api_client.glean_api_client.models.components.CreateAnnouncementRequest; -import com.glean.api_client.glean_api_client.models.components.CustomDataValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldData; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValueStr; -import com.glean.api_client.glean_api_client.models.components.DatasourceProfile; -import com.glean.api_client.glean_api_client.models.components.DeleteAnnouncementRequest; -import com.glean.api_client.glean_api_client.models.components.Document; -import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; -import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; -import com.glean.api_client.glean_api_client.models.components.FacetFilter; -import com.glean.api_client.glean_api_client.models.components.FacetFilterSet; -import com.glean.api_client.glean_api_client.models.components.FacetFilterValue; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.InviteInfo; -import com.glean.api_client.glean_api_client.models.components.Person; -import com.glean.api_client.glean_api_client.models.components.PersonMetadata; -import com.glean.api_client.glean_api_client.models.components.PersonMetadataType; -import com.glean.api_client.glean_api_client.models.components.PinDocument; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestion; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestionList; -import com.glean.api_client.glean_api_client.models.components.Reaction; -import com.glean.api_client.glean_api_client.models.components.RelatedDocuments; -import com.glean.api_client.glean_api_client.models.components.RelationType; -import com.glean.api_client.glean_api_client.models.components.Reminder; -import com.glean.api_client.glean_api_client.models.components.SearchProviderInfo; -import com.glean.api_client.glean_api_client.models.components.SearchRequestInputDetails; -import com.glean.api_client.glean_api_client.models.components.SearchRequestOptions; -import com.glean.api_client.glean_api_client.models.components.SearchResult; -import com.glean.api_client.glean_api_client.models.components.SearchResultSnippet; -import com.glean.api_client.glean_api_client.models.components.Share; -import com.glean.api_client.glean_api_client.models.components.State; -import com.glean.api_client.glean_api_client.models.components.StructuredText; -import com.glean.api_client.glean_api_client.models.components.StructuredTextItem; -import com.glean.api_client.glean_api_client.models.components.TextRange; -import com.glean.api_client.glean_api_client.models.components.UpdateAnnouncementRequest; -import com.glean.api_client.glean_api_client.models.components.UserRole; -import com.glean.api_client.glean_api_client.models.components.UserRoleSpecification; -import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerificationMetadata; -import com.glean.api_client.glean_api_client.models.operations.CreateannouncementResponse; -import com.glean.api_client.glean_api_client.models.operations.DeleteannouncementResponse; -import com.glean.api_client.glean_api_client.models.operations.UpdateannouncementResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class AnnouncementsTests { - - @Test - public void testAnnouncements_Createannouncement() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("createannouncement"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - CreateAnnouncementRequest req = CreateAnnouncementRequest.builder() - .startTime(OffsetDateTime.parse("2024-06-17T07:14:55.338Z")) - .endTime(OffsetDateTime.parse("2024-11-30T17:06:07.804Z")) - .title("") - .body(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(796474L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(86L) - .build(), - TextRange.builder() - .startIndex(169727L) - .build(), - TextRange.builder() - .startIndex(89964L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .mentionedPeople(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("yuck mortally round") - .id(924484L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(583353L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(911742L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(428745L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(860420L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(284120L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(); - - CreateannouncementResponse res = sdk.client().announcements().create() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - Announcement.builder() - .body(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(520049L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(800759L) - .build(), - TextRange.builder() - .startIndex(117747L) - .build(), - TextRange.builder() - .startIndex(589813L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(277321L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .mentionedPeople(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("sleet where schedule") - .id(108833L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(572012L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(616892L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("zowie nasalise punctually yippee") - .id(703146L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(312813L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Share.builder() - .numDaysAgo(903800L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(620608L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(188605L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(252418L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(874230L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .draftId(342L) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(605172L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - res.announcement().get()); - } - - @Test - public void testAnnouncements_Createdraftannouncement() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step createdraftannouncement.test referencing operation createdraftannouncement not found in document`]"); - } - - @Test - public void testAnnouncements_Deleteannouncement() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("deleteannouncement"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - DeleteAnnouncementRequest req = DeleteAnnouncementRequest.builder() - .id(545907L) - .build(); - - DeleteannouncementResponse res = sdk.client().announcements().delete() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testAnnouncements_Deletedraftannouncement() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step deletedraftannouncement.test referencing operation deletedraftannouncement not found in document`]"); - } - - @Test - public void testAnnouncements_Getannouncement() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step getannouncement.test referencing operation getannouncement not found in document`]"); - } - - @Test - public void testAnnouncements_Getdraftannouncement() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step getdraftannouncement.test referencing operation getdraftannouncement not found in document`]"); - } - - @Test - public void testAnnouncements_Listannouncements() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step listannouncements.test referencing operation listannouncements not found in document`]"); - } - - @Test - public void testAnnouncements_Previewannouncement() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step previewannouncement.test referencing operation previewannouncement not found in document`]"); - } - - @Test - public void testAnnouncements_Previewannouncementdraft() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step previewannouncementdraft.test referencing operation previewannouncementdraft not found in document`]"); - } - - @Test - public void testAnnouncements_Publishdraftannouncement() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step publishdraftannouncement.test referencing operation publishdraftannouncement not found in document`]"); - } - - @Test - public void testAnnouncements_Unpublishannouncement() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step unpublishannouncement.test referencing operation unpublishannouncement not found in document`]"); - } - - @Test - public void testAnnouncements_Updateannouncement() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("updateannouncement"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - UpdateAnnouncementRequest req = UpdateAnnouncementRequest.builder() - .startTime(OffsetDateTime.parse("2025-07-28T19:04:48.565Z")) - .endTime(OffsetDateTime.parse("2024-10-16T10:52:42.015Z")) - .title("") - .id(761625L) - .body(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(488852L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(54062L) - .build(), - TextRange.builder() - .startIndex(896501L) - .build(), - TextRange.builder() - .startIndex(446863L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(249440L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(789275L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .mentionedPeople(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("daintily certainly yak surprised beyond blah intensely") - .id(249026L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(784089L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(416023L) - .itemType(CollectionItemItemType.COLLECTION) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("misjudge scare cinema ouch weary euphonium") - .id(553539L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Collection.builder() - .name("") - .description("exotic fussy shadowy") - .id(890948L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(178177L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(691669L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(219050L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(358043L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(); - - UpdateannouncementResponse res = sdk.client().announcements().update() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - Announcement.builder() - .body(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(517232L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(676467L) - .build(), - TextRange.builder() - .startIndex(749867L) - .build(), - TextRange.builder() - .startIndex(595467L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(454586L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .mentionedPeople(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("queasily down worthy generously than narrate pish off") - .id(162698L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(553022L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(322125L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(132693L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Share.builder() - .numDaysAgo(241217L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Share.builder() - .numDaysAgo(355708L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(46236L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(25092L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(109020L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(390161L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(349429L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .draftId(342L) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(726281L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - res.announcement().get()); - } - - @Test - public void testAnnouncements_Updatedraftannouncement() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step updatedraftannouncement.test referencing operation updatedraftannouncement not found in document`]"); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/AnswersTests.java b/src/test/java/com/glean/api_client/glean_api_client/AnswersTests.java deleted file mode 100644 index 519d3eb4..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/AnswersTests.java +++ /dev/null @@ -1,11477 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.Answer; -import com.glean.api_client.glean_api_client.models.components.AnswerBoard; -import com.glean.api_client.glean_api_client.models.components.AnswerCreationData; -import com.glean.api_client.glean_api_client.models.components.AnswerLike; -import com.glean.api_client.glean_api_client.models.components.AnswerLikes; -import com.glean.api_client.glean_api_client.models.components.AnswerResult; -import com.glean.api_client.glean_api_client.models.components.AuthToken; -import com.glean.api_client.glean_api_client.models.components.Badge; -import com.glean.api_client.glean_api_client.models.components.ChannelInviteInfo; -import com.glean.api_client.glean_api_client.models.components.Collection; -import com.glean.api_client.glean_api_client.models.components.CollectionItem; -import com.glean.api_client.glean_api_client.models.components.CollectionItemItemType; -import com.glean.api_client.glean_api_client.models.components.CreateAnswerRequest; -import com.glean.api_client.glean_api_client.models.components.CustomDataValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldData; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValueStr; -import com.glean.api_client.glean_api_client.models.components.DatasourceProfile; -import com.glean.api_client.glean_api_client.models.components.DeleteAnswerRequest; -import com.glean.api_client.glean_api_client.models.components.Document; -import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; -import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; -import com.glean.api_client.glean_api_client.models.components.EditAnswerRequest; -import com.glean.api_client.glean_api_client.models.components.FacetFilter; -import com.glean.api_client.glean_api_client.models.components.FacetFilterSet; -import com.glean.api_client.glean_api_client.models.components.FacetFilterValue; -import com.glean.api_client.glean_api_client.models.components.GetAnswerError; -import com.glean.api_client.glean_api_client.models.components.GetAnswerRequest; -import com.glean.api_client.glean_api_client.models.components.GetAnswerResponse; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.InviteInfo; -import com.glean.api_client.glean_api_client.models.components.ListAnswersRequest; -import com.glean.api_client.glean_api_client.models.components.ListAnswersResponse; -import com.glean.api_client.glean_api_client.models.components.Person; -import com.glean.api_client.glean_api_client.models.components.PersonMetadata; -import com.glean.api_client.glean_api_client.models.components.PersonMetadataType; -import com.glean.api_client.glean_api_client.models.components.PinDocument; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestion; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestionList; -import com.glean.api_client.glean_api_client.models.components.Reaction; -import com.glean.api_client.glean_api_client.models.components.RelatedDocuments; -import com.glean.api_client.glean_api_client.models.components.RelationType; -import com.glean.api_client.glean_api_client.models.components.Reminder; -import com.glean.api_client.glean_api_client.models.components.SearchProviderInfo; -import com.glean.api_client.glean_api_client.models.components.SearchRequestInputDetails; -import com.glean.api_client.glean_api_client.models.components.SearchRequestOptions; -import com.glean.api_client.glean_api_client.models.components.SearchResult; -import com.glean.api_client.glean_api_client.models.components.SearchResultSnippet; -import com.glean.api_client.glean_api_client.models.components.Share; -import com.glean.api_client.glean_api_client.models.components.State; -import com.glean.api_client.glean_api_client.models.components.StructuredText; -import com.glean.api_client.glean_api_client.models.components.StructuredTextItem; -import com.glean.api_client.glean_api_client.models.components.StructuredTextMutableProperties; -import com.glean.api_client.glean_api_client.models.components.TextRange; -import com.glean.api_client.glean_api_client.models.components.UserRole; -import com.glean.api_client.glean_api_client.models.components.UserRoleSpecification; -import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerificationMetadata; -import com.glean.api_client.glean_api_client.models.operations.CreateanswerResponse; -import com.glean.api_client.glean_api_client.models.operations.DeleteanswerResponse; -import com.glean.api_client.glean_api_client.models.operations.EditanswerResponse; -import com.glean.api_client.glean_api_client.models.operations.GetanswerResponse; -import com.glean.api_client.glean_api_client.models.operations.ListanswersResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class AnswersTests { - - @Test - public void testAnswers_Createanswer() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("createanswer"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - CreateAnswerRequest req = CreateAnswerRequest.builder() - .data(AnswerCreationData.builder() - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(134365L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(796474L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("fumigate convection though zowie") - .id(496323L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(782367L) - .itemType(CollectionItemItemType.DOCUMENT) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(219974L) - .build(), - Share.builder() - .numDaysAgo(449221L) - .build(), - Share.builder() - .numDaysAgo(427887L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(491427L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(490420L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(45416L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .combinedAnswerText(StructuredTextMutableProperties.builder() - .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.") - .build()) - .build()) - .build(); - - CreateanswerResponse res = sdk.client().answers().create() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(433224L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(995852L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("shadowy foodstuffs welcome via deeply writ amid") - .id(629063L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(338524L) - .itemType(CollectionItemItemType.COLLECTION) - .build(), - CollectionItem.builder() - .collectionId(154150L) - .itemType(CollectionItemItemType.URL) - .build(), - CollectionItem.builder() - .collectionId(739949L) - .itemType(CollectionItemItemType.COLLECTION) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(982866L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(749299L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(150565L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(572012L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(185076L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(616892L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(190973L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(665035L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(261757L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .likedByUser(true) - .numLikes(453975L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(557925L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("massive under meh severe ditch bungalow when sauerkraut") - .id(404062L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(639388L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - res.answer().get()); - } - - @Test - public void testAnswers_Deleteanswer() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("deleteanswer"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - DeleteAnswerRequest req = DeleteAnswerRequest.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .build(); - - DeleteanswerResponse res = sdk.client().answers().delete() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testAnswers_Editanswer() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("editanswer"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - EditAnswerRequest req = EditAnswerRequest.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(149825L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(700217L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("about huzzah institute violin aw pillow abnegate memorable") - .id(384736L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(670716L) - .itemType(CollectionItemItemType.URL) - .build(), - CollectionItem.builder() - .collectionId(793957L) - .itemType(CollectionItemItemType.URL) - .build())) - .build(), - Collection.builder() - .name("") - .description("trouser twine because unnaturally card gallery among") - .id(818393L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - Collection.builder() - .name("") - .description("zebra ugh exactly pfft once") - .id(29269L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(177137L) - .build(), - Share.builder() - .numDaysAgo(127401L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(843043L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(630893L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(862908L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .combinedAnswerText(StructuredTextMutableProperties.builder() - .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.") - .build()) - .build(); - - EditanswerResponse res = sdk.client().answers().update() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(490266L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(949852L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("overwork scent er alert consequently brochure awful chilly scary") - .id(859594L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(359827L) - .itemType(CollectionItemItemType.TEXT) - .build())) - .build(), - Collection.builder() - .name("") - .description("below considering correctly poor instead") - .id(973585L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - Collection.builder() - .name("") - .description("brr pillbox exactly through scented drive etch") - .id(353341L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(119170L) - .build(), - Share.builder() - .numDaysAgo(28922L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(103434L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(57214L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(72991L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(900561L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(751237L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(488606L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .likedByUser(false) - .numLikes(526808L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(945691L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("transparency lest while up yahoo towards fabricate motionless") - .id(882159L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(12186L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - res.answer().get()); - } - - @Test - public void testAnswers_Getanswer() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getanswer"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetAnswerRequest req = GetAnswerRequest.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .build(); - - GetanswerResponse res = sdk.client().answers().retrieve() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetAnswerResponse.builder() - .answerResult(AnswerResult.builder() - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(521235L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(458049L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("carefully glorious scrabble ignite") - .id(159685L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(108980L) - .itemType(CollectionItemItemType.COLLECTION) - .build(), - CollectionItem.builder() - .collectionId(644971L) - .itemType(CollectionItemItemType.URL) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(384844L) - .build(), - Share.builder() - .numDaysAgo(91052L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(656841L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(570980L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(607679L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(397483L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(455424L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(103111L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(392574L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(754054L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(710636L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(395188L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(547184L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .likedByUser(false) - .numLikes(576892L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(258862L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("whether deflate book knotty er beneath nervously than") - .id(194354L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(831606L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .build()) - .error(GetAnswerError.builder() - .answerAuthor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build(), - res.getAnswerResponse().get()); - } - - @Test - public void testAnswers_Listanswers() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("listanswers"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ListAnswersRequest req = ListAnswersRequest.builder() - .build(); - - ListanswersResponse res = sdk.client().answers().list() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - ListAnswersResponse.builder() - .answerResults(List.of( - AnswerResult.builder() - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(229716L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(635532L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("avalanche jungle unto meanwhile beside tromp worth reluctantly") - .id(781409L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(66993L) - .itemType(CollectionItemItemType.DOCUMENT) - .build(), - CollectionItem.builder() - .collectionId(294083L) - .itemType(CollectionItemItemType.COLLECTION) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(678179L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(810770L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(956959L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(948614L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(20615L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(370293L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(50388L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(487446L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("boo massive sorrowful aw strict behind along energetic oddball") - .id(472871L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(367314L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .build(), - AnswerResult.builder() - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(233358L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(536405L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("likely up questionably forgery glow warmhearted") - .id(674469L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(359708L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .build(), - AnswerResult.builder() - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(80289L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(327973L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("freely overcook till boo ack") - .id(477827L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(238432L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .build())) - .build(), - res.listAnswersResponse().get()); - } - - @Test - public void testAnswers_Previewanswer() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step previewanswer.test referencing operation previewanswer not found in document`]"); - } - - @Test - public void testAnswers_Previewanswerdraft() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step previewanswerdraft.test referencing operation previewanswerdraft not found in document`]"); - } - - @Test - public void testAnswers_Updateanswerlikes() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step updateanswerlikes.test referencing operation updateanswerlikes not found in document`]"); - } - - @Test - public void testAnswers_Createanswerboard() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step createanswerboard.test referencing operation createanswerboard not found in document`]"); - } - - @Test - public void testAnswers_Deleteanswerboards() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step deleteanswerboards.test referencing operation deleteanswerboards not found in document`]"); - } - - @Test - public void testAnswers_Editanswerboard() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step editanswerboard.test referencing operation editanswerboard not found in document`]"); - } - - @Test - public void testAnswers_Getanswerboard() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step getanswerboard.test referencing operation getanswerboard not found in document`]"); - } - - @Test - public void testAnswers_Listanswerboards() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step listanswerboards.test referencing operation listanswerboards not found in document`]"); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/CalendarTests.java b/src/test/java/com/glean/api_client/glean_api_client/CalendarTests.java deleted file mode 100644 index 980c7176..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/CalendarTests.java +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import java.lang.Exception; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class CalendarTests { - - @Test - public void testCalendar_Getevents() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step getevents.test referencing operation getevents not found in document`]"); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/ClientActivityTests.java b/src/test/java/com/glean/api_client/glean_api_client/ClientActivityTests.java deleted file mode 100644 index cf9471bb..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/ClientActivityTests.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.Activity; -import com.glean.api_client.glean_api_client.models.components.ActivityEvent; -import com.glean.api_client.glean_api_client.models.components.ActivityEventAction; -import com.glean.api_client.glean_api_client.models.components.ActivityEventParams; -import com.glean.api_client.glean_api_client.models.operations.ActivityResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.OffsetDateTime; -import java.util.List; -import org.junit.jupiter.api.Test; - -public class ClientActivityTests { - - @Test - public void testClientActivity_Activity() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("activity"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - Activity req = Activity.builder() - .events(List.of( - ActivityEvent.builder() - .action(ActivityEventAction.HISTORICAL_VIEW) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/") - .build(), - ActivityEvent.builder() - .action(ActivityEventAction.SEARCH) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/search?q=query") - .params(ActivityEventParams.builder() - .query("query") - .build()) - .build(), - ActivityEvent.builder() - .action(ActivityEventAction.VIEW) - .timestamp(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .url("https://example.com/") - .params(ActivityEventParams.builder() - .duration(20L) - .referrer("https://example.com/document") - .build()) - .build())) - .build(); - - ActivityResponse res = sdk.client().activity().report() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/ClientAuthenticationTests.java b/src/test/java/com/glean/api_client/glean_api_client/ClientAuthenticationTests.java deleted file mode 100644 index 4d35cc93..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/ClientAuthenticationTests.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.CreateAuthTokenResponse; -import com.glean.api_client.glean_api_client.models.operations.CreateauthtokenResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class ClientAuthenticationTests { - - @Test - public void testClientAuthentication_Createanonymoustoken() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step createanonymoustoken.test referencing operation createanonymoustoken not found in document`]"); - } - - @Test - public void testClientAuthentication_Createauthtoken() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("createauthtoken"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - CreateauthtokenResponse res = sdk.client().authentication().createToken() - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - CreateAuthTokenResponse.builder() - .token("") - .expirationTime(207213L) - .build(), - res.createAuthTokenResponse().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/ClientChatTests.java b/src/test/java/com/glean/api_client/glean_api_client/ClientChatTests.java deleted file mode 100644 index f0c7bf68..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/ClientChatTests.java +++ /dev/null @@ -1,11254 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.AgentConfig; -import com.glean.api_client.glean_api_client.models.components.AgentEnum; -import com.glean.api_client.glean_api_client.models.components.Answer; -import com.glean.api_client.glean_api_client.models.components.AnswerBoard; -import com.glean.api_client.glean_api_client.models.components.AnswerLike; -import com.glean.api_client.glean_api_client.models.components.AnswerLikes; -import com.glean.api_client.glean_api_client.models.components.AnswerSourceType; -import com.glean.api_client.glean_api_client.models.components.AppResult; -import com.glean.api_client.glean_api_client.models.components.AuthConfig; -import com.glean.api_client.glean_api_client.models.components.AuthConfigStatus; -import com.glean.api_client.glean_api_client.models.components.AuthConfigType; -import com.glean.api_client.glean_api_client.models.components.AuthToken; -import com.glean.api_client.glean_api_client.models.components.AuthType; -import com.glean.api_client.glean_api_client.models.components.Author; -import com.glean.api_client.glean_api_client.models.components.Badge; -import com.glean.api_client.glean_api_client.models.components.CalendarAttendee; -import com.glean.api_client.glean_api_client.models.components.CalendarAttendees; -import com.glean.api_client.glean_api_client.models.components.ChannelInviteInfo; -import com.glean.api_client.glean_api_client.models.components.Chat; -import com.glean.api_client.glean_api_client.models.components.ChatFile; -import com.glean.api_client.glean_api_client.models.components.ChatFileFailureReason; -import com.glean.api_client.glean_api_client.models.components.ChatFileMetadata; -import com.glean.api_client.glean_api_client.models.components.ChatFileStatus; -import com.glean.api_client.glean_api_client.models.components.ChatMessage; -import com.glean.api_client.glean_api_client.models.components.ChatMessageCitation; -import com.glean.api_client.glean_api_client.models.components.ChatMessageFragment; -import com.glean.api_client.glean_api_client.models.components.ChatMetadata; -import com.glean.api_client.glean_api_client.models.components.ChatMetadataResult; -import com.glean.api_client.glean_api_client.models.components.ChatRequest; -import com.glean.api_client.glean_api_client.models.components.ChatResult; -import com.glean.api_client.glean_api_client.models.components.ClusterGroup; -import com.glean.api_client.glean_api_client.models.components.Code; -import com.glean.api_client.glean_api_client.models.components.Collection; -import com.glean.api_client.glean_api_client.models.components.CollectionItem; -import com.glean.api_client.glean_api_client.models.components.CollectionItemItemType; -import com.glean.api_client.glean_api_client.models.components.Company; -import com.glean.api_client.glean_api_client.models.components.ConnectorType; -import com.glean.api_client.glean_api_client.models.components.CustomDataValue; -import com.glean.api_client.glean_api_client.models.components.CustomEntity; -import com.glean.api_client.glean_api_client.models.components.CustomFieldData; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValuePerson; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValueStr; -import com.glean.api_client.glean_api_client.models.components.Customer; -import com.glean.api_client.glean_api_client.models.components.DatasourceProfile; -import com.glean.api_client.glean_api_client.models.components.DeleteChatFilesRequest; -import com.glean.api_client.glean_api_client.models.components.DeleteChatsRequest; -import com.glean.api_client.glean_api_client.models.components.Disambiguation; -import com.glean.api_client.glean_api_client.models.components.Document; -import com.glean.api_client.glean_api_client.models.components.DocumentContent; -import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; -import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; -import com.glean.api_client.glean_api_client.models.components.DocumentSection; -import com.glean.api_client.glean_api_client.models.components.DocumentSpec3; -import com.glean.api_client.glean_api_client.models.components.DocumentSpecUgcType1; -import com.glean.api_client.glean_api_client.models.components.DocumentSpecUnion; -import com.glean.api_client.glean_api_client.models.components.EntityType; -import com.glean.api_client.glean_api_client.models.components.ExtractedQnA; -import com.glean.api_client.glean_api_client.models.components.FacetFilter; -import com.glean.api_client.glean_api_client.models.components.FacetFilterSet; -import com.glean.api_client.glean_api_client.models.components.FacetFilterValue; -import com.glean.api_client.glean_api_client.models.components.GetChatApplicationRequest; -import com.glean.api_client.glean_api_client.models.components.GetChatApplicationResponse; -import com.glean.api_client.glean_api_client.models.components.GetChatFilesRequest; -import com.glean.api_client.glean_api_client.models.components.GetChatFilesResponse; -import com.glean.api_client.glean_api_client.models.components.GetChatRequest; -import com.glean.api_client.glean_api_client.models.components.GetChatResponse; -import com.glean.api_client.glean_api_client.models.components.GrantType; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.InviteInfo; -import com.glean.api_client.glean_api_client.models.components.KnowledgeType; -import com.glean.api_client.glean_api_client.models.components.ListChatsResponse; -import com.glean.api_client.glean_api_client.models.components.Meeting; -import com.glean.api_client.glean_api_client.models.components.MessageType; -import com.glean.api_client.glean_api_client.models.components.Mode; -import com.glean.api_client.glean_api_client.models.components.ObjectPermissions; -import com.glean.api_client.glean_api_client.models.components.Person; -import com.glean.api_client.glean_api_client.models.components.PersonMetadata; -import com.glean.api_client.glean_api_client.models.components.PersonMetadataType; -import com.glean.api_client.glean_api_client.models.components.PersonObject; -import com.glean.api_client.glean_api_client.models.components.PersonToTeamRelationship; -import com.glean.api_client.glean_api_client.models.components.PinDocument; -import com.glean.api_client.glean_api_client.models.components.Prominence; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestion; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestionList; -import com.glean.api_client.glean_api_client.models.components.Reaction; -import com.glean.api_client.glean_api_client.models.components.ReferenceRange; -import com.glean.api_client.glean_api_client.models.components.RelatedDocuments; -import com.glean.api_client.glean_api_client.models.components.RelatedQuestion; -import com.glean.api_client.glean_api_client.models.components.RelationType; -import com.glean.api_client.glean_api_client.models.components.Reminder; -import com.glean.api_client.glean_api_client.models.components.SearchProviderInfo; -import com.glean.api_client.glean_api_client.models.components.SearchRequestInputDetails; -import com.glean.api_client.glean_api_client.models.components.SearchRequestOptions; -import com.glean.api_client.glean_api_client.models.components.SearchResult; -import com.glean.api_client.glean_api_client.models.components.SearchResultSnippet; -import com.glean.api_client.glean_api_client.models.components.Share; -import com.glean.api_client.glean_api_client.models.components.Shortcut; -import com.glean.api_client.glean_api_client.models.components.State; -import com.glean.api_client.glean_api_client.models.components.StructuredResult; -import com.glean.api_client.glean_api_client.models.components.StructuredResultSource; -import com.glean.api_client.glean_api_client.models.components.StructuredText; -import com.glean.api_client.glean_api_client.models.components.StructuredTextItem; -import com.glean.api_client.glean_api_client.models.components.Team; -import com.glean.api_client.glean_api_client.models.components.TeamStatus; -import com.glean.api_client.glean_api_client.models.components.TextRange; -import com.glean.api_client.glean_api_client.models.components.TextRangeType; -import com.glean.api_client.glean_api_client.models.components.ToolInfo; -import com.glean.api_client.glean_api_client.models.components.ToolMetadata; -import com.glean.api_client.glean_api_client.models.components.ToolMetadataType; -import com.glean.api_client.glean_api_client.models.components.UserRole; -import com.glean.api_client.glean_api_client.models.components.UserRoleSpecification; -import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerificationMetadata; -import com.glean.api_client.glean_api_client.models.components.WriteActionParameter; -import com.glean.api_client.glean_api_client.models.components.WriteActionParameterType; -import com.glean.api_client.glean_api_client.models.components.WriteActionType; -import com.glean.api_client.glean_api_client.models.operations.ChatStreamResponse; -import com.glean.api_client.glean_api_client.models.operations.DeleteallchatsResponse; -import com.glean.api_client.glean_api_client.models.operations.DeletechatfilesResponse; -import com.glean.api_client.glean_api_client.models.operations.DeletechatsResponse; -import com.glean.api_client.glean_api_client.models.operations.GetchatResponse; -import com.glean.api_client.glean_api_client.models.operations.GetchatapplicationResponse; -import com.glean.api_client.glean_api_client.models.operations.GetchatfilesResponse; -import com.glean.api_client.glean_api_client.models.operations.ListchatsResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class ClientChatTests { - - @Test - public void testClientChat_Ask() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step ask.test referencing operation ask not found in document`]"); - } - - @Test - public void testClientChat_ChatDefaultExample() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step chat-defaultExample.test referencing operation chat does not contain response body with content type text/plain`]"); - } - - @Test - public void testClientChat_ChatGptAgentExample() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step chat-gptAgentExample.test referencing operation chat does not contain response body with content type text/plain`]"); - } - - @Test - public void testClientChat_ChatStreamingExample() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step chat-streamingExample.test referencing operation chat does not contain response body with content type text/plain`]"); - } - - @Test - public void testClientChat_ChatUpdateResponse() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step chat-updateResponse.test referencing operation chat does not contain response body with content type text/plain`]"); - } - - @Test - public void testClientChat_ChatCitationResponse() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step chat-citationResponse.test referencing operation chat does not contain response body with content type text/plain`]"); - } - - @Test - public void testClientChat_Deleteallchats() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("deleteallchats"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - DeleteallchatsResponse res = sdk.client().chat().deleteAll() - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testClientChat_Deletechats() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("deletechats"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - DeletechatsResponse res = sdk.client().chat().delete() - .deleteChatsRequest(DeleteChatsRequest.builder() - .ids(List.of( - "", - "")) - .build()) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testClientChat_Getchat() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getchat"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetchatResponse res = sdk.client().chat().retrieve() - .getChatRequest(GetChatRequest.builder() - .id("") - .build()) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetChatResponse.builder() - .chatResult(ChatResult.builder() - .chat(Chat.builder() - .id("string") - .createTime(0L) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updateTime(0L) - .name("string") - .applicationId("string") - .applicationName("string") - .icon(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .messages(List.of( - ChatMessage.builder() - .agentConfig(AgentConfig.builder() - .agent(AgentEnum.DEFAULT) - .mode(Mode.DEFAULT) - .build()) - .author(Author.USER) - .citations(List.of( - ChatMessageCitation.builder() - .trackingToken("string") - .sourceDocument(Document.builder() - .id("string") - .datasource("string") - .connectorType(ConnectorType.API_CRAWL) - .docType("string") - .content(DocumentContent.builder() - .fullTextList(List.of( - "")) - .build()) - .title("string") - .url("string") - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .sections(List.of( - DocumentSection.builder() - .title("") - .url("https://normal-making.name") - .build())) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .metadata(ChatFileMetadata.builder() - .status(ChatFileStatus.PROCESSING) - .uploadTime(0L) - .processedSize(0L) - .failureReason(ChatFileFailureReason.PARSE_FAILED) - .mimeType("string") - .build()) - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(969961L) - .endIndex(458049L) - .type(TextRangeType.CITATION) - .url("https://earnest-tuber.info/") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("") - .ranges(List.of( - TextRange.builder() - .startIndex(78888L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(219956L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(313464L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build())) - .build())) - .build())) - .uploadedFileIds(List.of( - "string")) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .id("") - .datasource("") - .connectorType(ConnectorType.API_CRAWL) - .docType("") - .title("") - .url("https://strange-gloom.net") - .metadata(DocumentMetadata.builder() - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .mentionedPeople(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("scrabble ignite aw showboat shakily") - .id(843618L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(149108L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - CollectionItem.builder() - .collectionId(503671L) - .itemType(CollectionItemItemType.COLLECTION) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("ah ack aha bah") - .id(72193L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(786783L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Share.builder() - .numDaysAgo(972276L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(844917L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(531548L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(576892L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .documentCounts(Map.ofEntries( - Map.entry("key", 534384L), - Map.entry("key1", 901064L))) - .startDate(LocalDate.parse("2025-09-27")) - .contractAnnualRevenue(2187.45) - .notes("") - .build()) - .team(Team.builder() - .id("") - .name("") - .description("aw fibre hassle freezing but conversation under") - .businessUnit("") - .department("") - .photoUrl("https://sizzling-accountability.net/") - .bannerUrl("https://miserable-hydrant.biz/") - .externalLink("https://hasty-cappelletti.name/") - .memberCount(626356L) - .datasource("") - .createdFrom("") - .lastUpdatedAt(OffsetDateTime.parse("2023-08-02T00:17:06.651Z")) - .status(TeamStatus.QUEUED_FOR_CREATION) - .canBeDeleted(false) - .loggingId("") - .build()) - .customEntity(CustomEntity.builder() - .id("") - .title("") - .datasource("") - .objectType("") - .build()) - .answer(Answer.builder() - .id(313992L) - .docId("") - .question("") - .bodyText("") - .boardId(933583L) - .sourceDocumentSpec(DocumentSpecUnion.of(DocumentSpec3.builder() - .ugcType(DocumentSpecUgcType1.SHORTCUTS) - .contentId(602763L) - .build())) - .sourceType(AnswerSourceType.ASSISTANT) - .combinedAnswerText(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(30856L) - .build()) - .author(Person.builder() - .name("") - .obfuscatedId("") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .build())) - .metadata(PersonMetadata.builder() - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .build()) - .build()) - .createTime(OffsetDateTime.parse("2024-01-11T09:24:54.882Z")) - .updateTime(OffsetDateTime.parse("2024-10-30T08:25:44.878Z")) - .updatedBy(Person.builder() - .name("") - .obfuscatedId("") - .metadata(PersonMetadata.builder() - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .build()) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(306618L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("indolent vainly closely") - .id(601522L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .documentCategory("") - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .heading("") - .question("") - .questionResult(SearchResult.builder() - .url("https://gorgeous-custom.org/") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .relatedResults(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .build())) - .allClusteredResults(List.of( - ClusterGroup.builder() - .visibleCountHint(564329L) - .build())) - .mustIncludeSuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .build()) - .build()) - .meeting(Meeting.builder() - .id("") - .title("") - .description("inside dulcimer however sonnet um eek until geez phew") - .startTime(OffsetDateTime.parse("2025-10-27T12:29:37.632Z")) - .endTime(OffsetDateTime.parse("2024-03-28T07:14:42.093Z")) - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .app(AppResult.builder() - .datasource("") - .docType("") - .mimeType("") - .iconUrl("https://bustling-birdbath.org") - .build()) - .collection(Collection.builder() - .name("") - .description("unless yuck serenade cuddly rundown neighboring considering upliftingly why") - .id(67110L) - .icon("") - .adminLocked(false) - .parentId(896826L) - .allowedDatasource("") - .createTime(OffsetDateTime.parse("2024-07-30T13:34:32.569Z")) - .updateTime(OffsetDateTime.parse("2023-04-24T03:06:17.109Z")) - .creator(Person.builder() - .name("") - .obfuscatedId("") - .metadata(PersonMetadata.builder() - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .build()) - .build()) - .updatedBy(Person.builder() - .name("") - .obfuscatedId("") - .metadata(PersonMetadata.builder() - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .build()) - .build()) - .itemCount(534236L) - .childCount(215291L) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("innocent downchange ick rudely what youthfully lightly yum") - .id(569914L) - .createTime(OffsetDateTime.parse("2023-02-12T07:51:20.736Z")) - .updateTime(OffsetDateTime.parse("2024-03-18T02:09:52.587Z")) - .creator(Person.builder() - .name("") - .obfuscatedId("") - .metadata(PersonMetadata.builder() - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .build()) - .build()) - .updatedBy(Person.builder() - .name("") - .obfuscatedId("") - .metadata(PersonMetadata.builder() - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .build()) - .build()) - .itemCount(771154L) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .destinationUrl("https://tight-version.org/") - .description("however generally ew ha sonar usually slow guacamole") - .unlisted(false) - .urlTemplate("") - .createdBy(Person.builder() - .name("") - .obfuscatedId("") - .build()) - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updatedBy(Person.builder() - .name("") - .obfuscatedId("") - .build()) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("") - .obfuscatedId("") - .metadata(PersonMetadata.builder() - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .build()) - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .question("") - .answer("") - .build()) - .disambiguation(Disambiguation.builder() - .name("") - .id("") - .type(EntityType.PERSON) - .build()) - .trackingToken("string") - .prominence(Prominence.HERO) - .source(StructuredResultSource.EXPERT_DETECTION) - .build())) - .trackingToken("string") - .text("string") - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .metadata(ChatFileMetadata.builder() - .status(ChatFileStatus.PROCESSING) - .uploadTime(0L) - .processedSize(0L) - .failureReason(ChatFileFailureReason.PARSE_FAILED) - .mimeType("string") - .build()) - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("string") - .displayName("string") - .displayDescription("string") - .toolId("string") - .logoUrl("string") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .knowledgeType(KnowledgeType.NEUTRAL_KNOWLEDGE) - .createdBy(PersonObject.builder() - .name("") - .obfuscatedId("") - .build()) - .lastUpdatedBy(PersonObject.builder() - .name("") - .obfuscatedId("") - .build()) - .createdAt(OffsetDateTime.parse("2019-08-24T14:15:22Z")) - .lastUpdatedAt(OffsetDateTime.parse("2019-08-24T14:15:22Z")) - .writeActionType(WriteActionType.REDIRECT) - .authType(AuthType.NONE) - .auth(AuthConfig.builder() - .isOnPrem(true) - .usesCentralAuth(false) - .type(AuthConfigType.DWD) - .grantType(GrantType.AUTH_CODE) - .status(AuthConfigStatus.AUTHORIZED) - .clientUrl("https://woeful-trench.com/") - .authorizationUrl("https://imaginative-premium.com/") - .lastAuthorizedAt(OffsetDateTime.parse("2023-12-19T20:03:14.149Z")) - .build()) - .permissions(ObjectPermissions.builder() - .build()) - .usageInstructions("string") - .isSetupFinished(true) - .build()) - .parameters(Map.ofEntries( - Map.entry("property1", WriteActionParameter.builder() - .type(WriteActionParameterType.UNKNOWN) - .displayName("Shemar63") - .value("") - .isRequired(true) - .description("handle unlike unlike fen gently or exotic mortally nor") - .build()), - Map.entry("property2", WriteActionParameter.builder() - .type(WriteActionParameterType.STRING) - .displayName("Ahmad_Reichel95") - .value("") - .isRequired(false) - .description("mmm premise pro instead bleakly starch including per ill-fated") - .build()))) - .build()) - .build())) - .ts("string") - .messageId("string") - .messageTrackingToken("string") - .messageType(MessageType.UPDATE) - .hasMoreFragments(true) - .build())) - .build()) - .trackingToken("string") - .build()) - .build(), - res.getChatResponse().get()); - } - - @Test - public void testClientChat_Listchats() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("listchats"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ListchatsResponse res = sdk.client().chat().list() - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - ListChatsResponse.builder() - .chatResults(List.of( - ChatMetadataResult.builder() - .chat(ChatMetadata.builder() - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(177706L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(152837L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("accountability pish likewise") - .id(425334L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(480616L) - .itemType(CollectionItemItemType.DOCUMENT) - .build(), - CollectionItem.builder() - .collectionId(523875L) - .itemType(CollectionItemItemType.COLLECTION) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build())) - .build(), - Collection.builder() - .name("") - .description("safely briefly ugh fen") - .id(96709L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(5229L) - .build(), - Share.builder() - .numDaysAgo(810770L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(505778L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(948614L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(900109L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(20615L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(726700L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .icon(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build(), - ChatMetadataResult.builder() - .chat(ChatMetadata.builder() - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .icon(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build(), - ChatMetadataResult.builder() - .chat(ChatMetadata.builder() - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .icon(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build())) - .build(), - res.listChatsResponse().get()); - } - - @Test - public void testClientChat_Getchatapplication() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getchatapplication"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetchatapplicationResponse res = sdk.client().chat().retrieveApplication() - .getChatApplicationRequest(GetChatApplicationRequest.builder() - .id("") - .build()) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetChatApplicationResponse.builder() - .build(), - res.getChatApplicationResponse().get()); - } - - @Test - public void testClientChat_Getchatfiles() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getchatfiles"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetchatfilesResponse res = sdk.client().chat().retrieveFiles() - .getChatFilesRequest(GetChatFilesRequest.builder() - .fileIds(List.of( - "", - "")) - .build()) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetChatFilesResponse.builder() - .files(Map.ofEntries( - Map.entry("key", ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()), - Map.entry("key1", ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()), - Map.entry("key2", ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()))) - .build(), - res.getChatFilesResponse().get()); - } - - @Test - public void testClientChat_Deletechatfiles() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("deletechatfiles"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - DeletechatfilesResponse res = sdk.client().chat().deleteFiles() - .deleteChatFilesRequest(DeleteChatFilesRequest.builder() - .fileIds(List.of( - "")) - .build()) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testClientChat_ChatStreamDefaultExample() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("chatStream-defaultExample"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ChatStreamResponse res = sdk.client().chat().createStream() - .chatRequest(ChatRequest.builder() - .messages(List.of( - ChatMessage.builder() - .fragments(List.of( - ChatMessageFragment.builder() - .text("What are the company holidays this year?") - .build())) - .build())) - .build()) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - "{\"messages\":[{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"hasMoreFragments\":false,\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\"},\"fragments\":[{\"text\":\"There are no holidays!\"}]}]}", - res.chatRequestStream().get()); - } - - @Test - public void testClientChat_ChatStreamGptAgentExample() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("chatStream-gptAgentExample"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ChatStreamResponse res = sdk.client().chat().createStream() - .chatRequest(ChatRequest.builder() - .messages(List.of( - ChatMessage.builder() - .fragments(List.of( - ChatMessageFragment.builder() - .text("Who was the first person to land on the moon?") - .build())) - .build())) - .agentConfig(AgentConfig.builder() - .agent(AgentEnum.GPT) - .build()) - .build()) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - "", - res.chatRequestStream().get()); - } - - @Test - public void testClientChat_ChatStreamStreamingExample() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("chatStream-streamingExample"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ChatStreamResponse res = sdk.client().chat().createStream() - .chatRequest(ChatRequest.builder() - .messages(List.of()) - .timeoutMillis(30000L) - .build()) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - "{\"messages\":[{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\",\"hasMoreFragments\":true},\"fragments\":null},{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\",\"hasMoreFragments\":true},\"fragments\":null},{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\",\"hasMoreFragments\":true},\"fragments\":[{\"text\":\"e are\"}]},{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\",\"hasMoreFragments\":true},\"fragments\":[{\"text\":\"no hol\"}]},{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\",\"hasMoreFragments\":false},\"fragments\":[{\"text\":\"idays!\"}]}]}", - res.chatRequestStream().get()); - } - - @Test - public void testClientChat_ChatStreamUpdateResponse() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("chatStream-updateResponse"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ChatStreamResponse res = sdk.client().chat().createStream() - .chatRequest(ChatRequest.builder() - .messages(List.of( - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(485333L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(159062L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(369746L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValuePerson.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .likedByUser(false) - .numLikes(490380L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(646506L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(14111L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(911718L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(997948L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("stage atop minion which best sturdy enormously afore circumference duh") - .id(647529L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("wring blank who sate woot") - .id(370683L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(836170L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(743315L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("keenly until phew veto calculus") - .id(140813L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("veg welcome boss manage freely") - .id(79387L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("after er grouchy stained plus buck") - .id(668238L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(1054L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Brianne.OReilly19") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(370922L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(605L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("finally waist inasmuch woot ignorance") - .id(291881L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("even metal boo blindly for steak gadzooks ick monthly heating") - .id(833343L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("geez huzzah oof webbed certainly degenerate along inure cow zowie") - .id(656491L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.ACTION) - .name("") - .displayName("Elinor_Champlin") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(86395L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(612122L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("the across instead into aching where descent shark lest times") - .id(760885L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("woefully optimal beside tame") - .id(750557L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("impanel hydrant spectacles justly hence absolve after sleet drat") - .id(603732L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(226392L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(130628L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("amongst uh-huh reassemble upset concrete") - .id(911324L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("behind boyfriend slime nor") - .id(146903L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("psst um devil gazebo save") - .id(45693L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(654201L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(804029L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("except gadzooks geez") - .id(567840L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("aha hence nectarine within airbus so stylish while") - .id(376424L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("surprise outside whether ack") - .id(621220L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Chanel.Kshlerin") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build(), - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(537317L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(302109L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(494612L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(767229L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(437321L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(949459L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(280784L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(764407L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("short-term suffice why rightfully") - .id(974132L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("times loudly upon dramatize") - .id(186567L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("er reconsideration triumphantly meaty yearly fragrant delightfully though painfully robust") - .id(804940L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(175872L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(922297L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("planula presume mismatch of commandeer ready mortally although") - .id(711093L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("phooey aw than proceed perky") - .id(365383L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("rundown recklessly favorite supposing dull politely soon ignorant") - .id(171217L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(447757L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(452627L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("striking confound wilderness but rapid an convection scoop litter than") - .id(569913L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("extra-large innocent impassioned stealthily yet gum onset blah second-hand") - .id(123250L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("meaty impure round") - .id(31007L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.ACTION) - .name("") - .displayName("Lauren53") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(141476L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(146280L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("intrigue psst furthermore personalise actually showboat eek punctuation ownership ah") - .id(785749L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("irresponsible meanwhile supposing classic than loyalty before who") - .id(362665L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("colorfully aha where") - .id(673010L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(932912L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(10437L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("hence inquisitively proud meh yahoo") - .id(165945L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("indeed enthusiastically airman facilitate") - .id(52239L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("excluding severe amongst bump farm zowie prickly why") - .id(617911L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(126508L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(504638L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("approach hm gadzooks yahoo shameless underneath negative") - .id(111255L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("jogging however inwardly yahoo although bah monthly lively colorfully justly") - .id(656993L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("guidance zen cross-contamination ick pry mundane thoroughly oof ha") - .id(474526L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.ACTION) - .name("") - .displayName("Brooklyn64") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build())) - .timeoutMillis(30000L) - .build()) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - "{\"messages\":[{\"author\":\"GLEAN_AI\",\"messageType\":\"UPDATE\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\"},\"fragments\":[{\"text\":\"**Reading:**\"},{\"structuredResults\":[{\"document\":{\"id\":\"123\",\"title\":\"Company Handbook\"}}]}]}]}", - res.chatRequestStream().get()); - } - - @Test - public void testClientChat_ChatStreamCitationResponse() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("chatStream-citationResponse"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ChatStreamResponse res = sdk.client().chat().createStream() - .chatRequest(ChatRequest.builder() - .messages(List.of( - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(436071L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(735937L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(418969L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(510246L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(760612L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValuePerson.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()), - CustomFieldValue.of(CustomFieldValuePerson.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()), - CustomFieldValue.of(CustomFieldValuePerson.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()))) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .combinedAnswerText(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(181994L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(670162L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(690554L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(424843L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("extent emotional white oil buck") - .id(392138L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("an french sans astride duh dreamily weary disloyal woot eke") - .id(928199L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(574875L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(447663L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(60642L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .build())) - .build())) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("matter lest spark oof unfurl jubilantly across") - .id(194535L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("communicate prudent powerful considering quietly with tromp spring brr") - .id(595008L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build())) - .build())) - .relatedQuestion(RelatedQuestion.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(516098L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(358039L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Blaise87") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(982657L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(668662L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("materialise likewise ew bah scarper instead") - .id(291792L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("whup bah scarcely on although royal") - .id(535445L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("heavenly status yippee whose blushing") - .id(983667L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(118326L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(427120L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("manipulate explode out") - .id(605176L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("bus outrun boldly opposite") - .id(512474L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("complete help um live beyond for huzzah rowdy foot cross") - .id(402862L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(62815L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(934490L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("lobotomise below psst duh interchange poetry") - .id(521402L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("fooey handle supposing greedily contrail whenever geez yahoo broadcast") - .id(175510L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("fashion bleakly thankfully indeed fully") - .id(723852L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.RETRIEVAL) - .name("") - .displayName("Alfred_Wilderman") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build(), - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(222131L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(453578L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(137281L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(569501L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(873746L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("minus oof dazzling ew for forearm utterly hm onto unexpectedly") - .id(808814L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("through garrote nor") - .id(999094L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("elderly since boohoo appropriate righteously vice following complete impartial sans") - .id(315292L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(610289L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(46078L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("netsuke stump terrorise ugh zowie") - .id(942095L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("cheetah amid lest nor instead consequently upbeat fuel incidentally") - .id(65448L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("abaft tightly blah redound qua") - .id(843154L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(25770L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(103920L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("gratefully failing square consequently discourse since") - .id(139991L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("futon geez oof coolly selfishly proselytise lest fooey and") - .id(455101L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("able mockingly boo entice softly furthermore woeful") - .id(33669L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.ACTION) - .name("") - .displayName("Dylan_Schowalter48") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build(), - ChatMessage.builder() - .citations(List.of( - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(171021L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(383744L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(343186L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(227225L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(55034L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - ChatMessageCitation.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .sourceFile(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .sourcePerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .referenceRanges(List.of( - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(935065L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - ReferenceRange.builder() - .textRange(TextRange.builder() - .startIndex(816251L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build())) - .fragments(List.of( - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(251149L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(23422L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("affiliate who lamp blushing plait after violent") - .id(55380L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("thankfully bliss merge inside without regarding how endow") - .id(420468L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("gee edge scholarship") - .id(632878L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(18033L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(807925L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("rust forenenst phew immediately") - .id(277574L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("till likewise boiling yesterday gah upward brr") - .id(377350L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("blah lowball who moor following folklore as or") - .id(115719L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(591310L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(265693L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("among under although ack gee atop horn") - .id(170010L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("owlishly genuine woot ocelot nor next") - .id(754074L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("finally jaggedly nightlife surface") - .id(435267L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.ACTION) - .name("") - .displayName("Solon.Schmitt10") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build(), - ChatMessageFragment.builder() - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(464085L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(197253L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("ah once gee") - .id(785222L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("toe yowza yum soon hypothesize") - .id(655575L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("godparent before colorize") - .id(624868L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(439860L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(257885L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("uh-huh ha notwithstanding so near troubled onto volunteer hm") - .id(38370L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("for now role baseboard woot entrench") - .id(816883L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("meanwhile instead colorfully overheard") - .id(209097L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(true) - .numLikes(788886L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(820471L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("indelible aha yuck loyally") - .id(278807L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("throughout though reluctantly healthily furlough minister unique simple over sidetrack") - .id(316354L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("frequent aw above ultimate into till pish husky wetly agitated") - .id(744434L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build()) - .file(ChatFile.builder() - .id("FILE_1234") - .url("www.google.com") - .name("sample.pdf") - .build()) - .action(ToolInfo.builder() - .metadata(ToolMetadata.builder() - .type(ToolMetadataType.ACTION) - .name("") - .displayName("Nannie.McDermott") - .displayDescription("") - .objectName("[\"HR ticket\",\"Email\",\"Chat message\"]") - .build()) - .build()) - .build())) - .build())) - .timeoutMillis(30000L) - .build()) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - "{\"messages\":[{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\"},\"citations\":[{\"sourceDocument\":{\"id\":\"123\",\"title\":\"Company Handbook\",\"referenceRanges\":[{\"textRange\":{\"startIndex\":0,\"endIndex\":12,\"type\":\"CITATION\"}}]}}]}]}", - res.chatRequestStream().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/ClientDocumentsTests.java b/src/test/java/com/glean/api_client/glean_api_client/ClientDocumentsTests.java deleted file mode 100644 index e6a2f50b..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/ClientDocumentsTests.java +++ /dev/null @@ -1,1403 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.AuthToken; -import com.glean.api_client.glean_api_client.models.components.Badge; -import com.glean.api_client.glean_api_client.models.components.ChannelInviteInfo; -import com.glean.api_client.glean_api_client.models.components.Collection; -import com.glean.api_client.glean_api_client.models.components.CollectionItem; -import com.glean.api_client.glean_api_client.models.components.CollectionItemItemType; -import com.glean.api_client.glean_api_client.models.components.CustomDataValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldData; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValueStr; -import com.glean.api_client.glean_api_client.models.components.DatasourceProfile; -import com.glean.api_client.glean_api_client.models.components.Document; -import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; -import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; -import com.glean.api_client.glean_api_client.models.components.DocumentOrErrorUnion; -import com.glean.api_client.glean_api_client.models.components.FacetFilter; -import com.glean.api_client.glean_api_client.models.components.FacetFilterSet; -import com.glean.api_client.glean_api_client.models.components.FacetFilterValue; -import com.glean.api_client.glean_api_client.models.components.GetDocPermissionsRequest; -import com.glean.api_client.glean_api_client.models.components.GetDocPermissionsResponse; -import com.glean.api_client.glean_api_client.models.components.GetDocumentsByFacetsRequest; -import com.glean.api_client.glean_api_client.models.components.GetDocumentsByFacetsResponse; -import com.glean.api_client.glean_api_client.models.components.GetDocumentsResponse; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.InviteInfo; -import com.glean.api_client.glean_api_client.models.components.Person; -import com.glean.api_client.glean_api_client.models.components.PersonMetadata; -import com.glean.api_client.glean_api_client.models.components.PersonMetadataType; -import com.glean.api_client.glean_api_client.models.components.PinDocument; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestion; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestionList; -import com.glean.api_client.glean_api_client.models.components.Reaction; -import com.glean.api_client.glean_api_client.models.components.RelatedDocuments; -import com.glean.api_client.glean_api_client.models.components.RelationType; -import com.glean.api_client.glean_api_client.models.components.Reminder; -import com.glean.api_client.glean_api_client.models.components.SearchProviderInfo; -import com.glean.api_client.glean_api_client.models.components.SearchRequestInputDetails; -import com.glean.api_client.glean_api_client.models.components.SearchRequestOptions; -import com.glean.api_client.glean_api_client.models.components.SearchResult; -import com.glean.api_client.glean_api_client.models.components.SearchResultSnippet; -import com.glean.api_client.glean_api_client.models.components.Share; -import com.glean.api_client.glean_api_client.models.components.State; -import com.glean.api_client.glean_api_client.models.components.TextRange; -import com.glean.api_client.glean_api_client.models.components.UserRole; -import com.glean.api_client.glean_api_client.models.components.UserRoleSpecification; -import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerificationMetadata; -import com.glean.api_client.glean_api_client.models.operations.GetdocpermissionsResponse; -import com.glean.api_client.glean_api_client.models.operations.GetdocumentsResponse; -import com.glean.api_client.glean_api_client.models.operations.GetdocumentsbyfacetsResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class ClientDocumentsTests { - - @Test - public void testClientDocuments_Getdocpermissions() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getdocpermissions"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetDocPermissionsRequest req = GetDocPermissionsRequest.builder() - .build(); - - GetdocpermissionsResponse res = sdk.client().documents().retrievePermissions() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetDocPermissionsResponse.builder() - .build(), - res.getDocPermissionsResponse().get()); - } - - @Test - public void testClientDocuments_Getdocuments() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getdocuments"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetdocumentsResponse res = sdk.client().documents().retrieve() - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetDocumentsResponse.builder() - .documents(Map.ofEntries( - Map.entry("key", DocumentOrErrorUnion.of(Document.builder() - .build())), - Map.entry("key1", DocumentOrErrorUnion.of(Document.builder() - .build())), - Map.entry("key2", DocumentOrErrorUnion.of(Document.builder() - .build())))) - .build(), - res.getDocumentsResponse().get()); - } - - @Test - public void testClientDocuments_Getdocumentsbyfacets() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getdocumentsbyfacets"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetDocumentsByFacetsRequest req = GetDocumentsByFacetsRequest.builder() - .filterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .build(); - - GetdocumentsbyfacetsResponse res = sdk.client().documents().retrieveByFacets() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetDocumentsByFacetsResponse.builder() - .documents(List.of( - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(847689L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(244762L) - .build(), - TextRange.builder() - .startIndex(577503L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(946448L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .mentionedPeople(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("since unlike huzzah chunder ignite loftily bar circa flame") - .id(327937L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(69838L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(996681L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(480101L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(414155L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(818513L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(511688L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build())) - .build(), - res.getDocumentsByFacetsResponse().get()); - } - - @Test - public void testClientDocuments_Getdocumentanalytics() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step getdocumentanalytics.test referencing operation getdocumentanalytics not found in document`]"); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/ClientShortcutsTests.java b/src/test/java/com/glean/api_client/glean_api_client/ClientShortcutsTests.java deleted file mode 100644 index 859ba97b..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/ClientShortcutsTests.java +++ /dev/null @@ -1,1379 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.AuthToken; -import com.glean.api_client.glean_api_client.models.components.Badge; -import com.glean.api_client.glean_api_client.models.components.ChannelInviteInfo; -import com.glean.api_client.glean_api_client.models.components.Collection; -import com.glean.api_client.glean_api_client.models.components.CollectionItem; -import com.glean.api_client.glean_api_client.models.components.CollectionItemItemType; -import com.glean.api_client.glean_api_client.models.components.CreateShortcutRequest; -import com.glean.api_client.glean_api_client.models.components.CreateShortcutResponse; -import com.glean.api_client.glean_api_client.models.components.CustomDataValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldData; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValueStr; -import com.glean.api_client.glean_api_client.models.components.DatasourceProfile; -import com.glean.api_client.glean_api_client.models.components.DeleteShortcutRequest; -import com.glean.api_client.glean_api_client.models.components.Document; -import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; -import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; -import com.glean.api_client.glean_api_client.models.components.FacetBucket; -import com.glean.api_client.glean_api_client.models.components.FacetFilter; -import com.glean.api_client.glean_api_client.models.components.FacetFilterSet; -import com.glean.api_client.glean_api_client.models.components.FacetFilterValue; -import com.glean.api_client.glean_api_client.models.components.FacetResult; -import com.glean.api_client.glean_api_client.models.components.FacetValue; -import com.glean.api_client.glean_api_client.models.components.GetShortcutRequest; -import com.glean.api_client.glean_api_client.models.components.GetShortcutRequestUnion; -import com.glean.api_client.glean_api_client.models.components.GetShortcutResponse; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.InviteInfo; -import com.glean.api_client.glean_api_client.models.components.ListShortcutsPaginatedRequest; -import com.glean.api_client.glean_api_client.models.components.ListShortcutsPaginatedResponse; -import com.glean.api_client.glean_api_client.models.components.Person; -import com.glean.api_client.glean_api_client.models.components.PersonMetadata; -import com.glean.api_client.glean_api_client.models.components.PersonMetadataType; -import com.glean.api_client.glean_api_client.models.components.PinDocument; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestion; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestionList; -import com.glean.api_client.glean_api_client.models.components.Reaction; -import com.glean.api_client.glean_api_client.models.components.RelatedDocuments; -import com.glean.api_client.glean_api_client.models.components.RelationType; -import com.glean.api_client.glean_api_client.models.components.Reminder; -import com.glean.api_client.glean_api_client.models.components.SearchProviderInfo; -import com.glean.api_client.glean_api_client.models.components.SearchRequestInputDetails; -import com.glean.api_client.glean_api_client.models.components.SearchRequestOptions; -import com.glean.api_client.glean_api_client.models.components.SearchResult; -import com.glean.api_client.glean_api_client.models.components.SearchResultSnippet; -import com.glean.api_client.glean_api_client.models.components.Share; -import com.glean.api_client.glean_api_client.models.components.Shortcut; -import com.glean.api_client.glean_api_client.models.components.ShortcutMutableProperties; -import com.glean.api_client.glean_api_client.models.components.ShortcutsPaginationMetadata; -import com.glean.api_client.glean_api_client.models.components.State; -import com.glean.api_client.glean_api_client.models.components.TextRange; -import com.glean.api_client.glean_api_client.models.components.UpdateShortcutRequest; -import com.glean.api_client.glean_api_client.models.components.UpdateShortcutResponse; -import com.glean.api_client.glean_api_client.models.components.UserRole; -import com.glean.api_client.glean_api_client.models.components.UserRoleSpecification; -import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerificationMetadata; -import com.glean.api_client.glean_api_client.models.operations.CreateshortcutResponse; -import com.glean.api_client.glean_api_client.models.operations.DeleteshortcutResponse; -import com.glean.api_client.glean_api_client.models.operations.GetshortcutResponse; -import com.glean.api_client.glean_api_client.models.operations.ListshortcutsResponse; -import com.glean.api_client.glean_api_client.models.operations.UpdateshortcutResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class ClientShortcutsTests { - - @Test - public void testClientShortcuts_Createshortcut() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("createshortcut"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - CreateShortcutRequest req = CreateShortcutRequest.builder() - .data(ShortcutMutableProperties.builder() - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(134365L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(796474L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("fumigate convection though zowie") - .id(496323L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(782367L) - .itemType(CollectionItemItemType.DOCUMENT) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(219974L) - .build(), - Share.builder() - .numDaysAgo(449221L) - .build(), - Share.builder() - .numDaysAgo(427887L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(491427L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(490420L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(45416L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .build(); - - CreateshortcutResponse res = sdk.client().shortcuts().create() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - CreateShortcutResponse.builder() - .build(), - res.createShortcutResponse().get()); - } - - @Test - public void testClientShortcuts_Deleteshortcut() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("deleteshortcut"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - DeleteShortcutRequest req = DeleteShortcutRequest.builder() - .id(545907L) - .build(); - - DeleteshortcutResponse res = sdk.client().shortcuts().delete() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testClientShortcuts_Getshortcut() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getshortcut"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetShortcutRequestUnion req = GetShortcutRequestUnion.of(GetShortcutRequest.builder() - .alias("") - .build()); - - GetshortcutResponse res = sdk.client().shortcuts().retrieve() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetShortcutResponse.builder() - .build(), - res.getShortcutResponse().get()); - } - - @Test - public void testClientShortcuts_Getsimilarshortcuts() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step getsimilarshortcuts.test referencing operation getsimilarshortcuts not found in document`]"); - } - - @Test - public void testClientShortcuts_Listshortcuts() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("listshortcuts"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ListShortcutsPaginatedRequest req = ListShortcutsPaginatedRequest.builder() - .pageSize(10L) - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(); - - ListshortcutsResponse res = sdk.client().shortcuts().list() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - ListShortcutsPaginatedResponse.builder() - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .destinationUrl("https://remorseful-concentration.biz") - .createdBy(Person.builder() - .name("") - .obfuscatedId("") - .build()) - .build(), - Shortcut.builder() - .inputAlias("") - .destinationUrl("https://primary-paintwork.com/") - .createdBy(Person.builder() - .name("") - .obfuscatedId("") - .build()) - .build(), - Shortcut.builder() - .inputAlias("") - .destinationUrl("https://breakable-bathrobe.net") - .createdBy(Person.builder() - .name("") - .obfuscatedId("") - .build()) - .build())) - .meta(ShortcutsPaginationMetadata.builder() - .build()) - .facetResults(List.of( - FacetResult.builder() - .sourceName("container_name") - .operatorName("SelectMultiple") - .buckets(List.of( - FacetBucket.builder() - .count(1L) - .datasource("jira") - .percentage(5L) - .value(FacetValue.builder() - .stringValue("engineering") - .integerValue(5L) - .displayLabel("engineering") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build(), - FacetBucket.builder() - .count(1L) - .datasource("jira") - .percentage(5L) - .value(FacetValue.builder() - .stringValue("engineering") - .integerValue(5L) - .displayLabel("engineering") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build())) - .hasMoreBuckets(false) - .groupName("Service Cloud") - .build(), - FacetResult.builder() - .sourceName("container_name") - .operatorName("SelectMultiple") - .buckets(List.of( - FacetBucket.builder() - .count(1L) - .datasource("jira") - .percentage(5L) - .value(FacetValue.builder() - .stringValue("engineering") - .integerValue(5L) - .displayLabel("engineering") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build())) - .hasMoreBuckets(false) - .groupName("Service Cloud") - .build())) - .build(), - res.listShortcutsPaginatedResponse().get()); - } - - @Test - public void testClientShortcuts_Previewshortcut() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step previewshortcut.test referencing operation previewshortcut not found in document`]"); - } - - @Test - public void testClientShortcuts_Updateshortcut() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("updateshortcut"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - UpdateShortcutRequest req = UpdateShortcutRequest.builder() - .id(857478L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(627690L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(984008L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("for drat underneath sticky yuck even") - .id(996168L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(392671L) - .itemType(CollectionItemItemType.TEXT) - .build(), - CollectionItem.builder() - .collectionId(434386L) - .itemType(CollectionItemItemType.COLLECTION) - .build())) - .build(), - Collection.builder() - .name("") - .description("duh now mechanically during since anxiously lightly ultimately") - .id(958595L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - Collection.builder() - .name("") - .description("whereas anenst habit onto worriedly revoke hm eminent sham") - .id(115263L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(691669L) - .build(), - Share.builder() - .numDaysAgo(202116L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(246216L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(778241L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(475618L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(234790L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(253591L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build(); - - UpdateshortcutResponse res = sdk.client().shortcuts().update() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - UpdateShortcutResponse.builder() - .build(), - res.updateShortcutResponse().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/ClientUserTests.java b/src/test/java/com/glean/api_client/glean_api_client/ClientUserTests.java deleted file mode 100644 index a4e26630..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/ClientUserTests.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import java.lang.Exception; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class ClientUserTests { - - @Test - public void testClientUser_Addcredential() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step addcredential.test referencing operation addcredential not found in document`]"); - } - - @Test - public void testClientUser_Deletequeryhistory() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step deletequeryhistory.test referencing operation deletequeryhistory not found in document`]"); - } - - @Test - public void testClientUser_Invite() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step invite.test referencing operation invite not found in document`]"); - } - - @Test - public void testClientUser_Publicconfig() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step publicconfig.test referencing operation publicconfig not found in document`]"); - } - - @Test - public void testClientUser_Removecredential() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step removecredential.test referencing operation removecredential not found in document`]"); - } - - @Test - public void testClientUser_SupportEmail() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step support_email.test referencing operation support_email not found in document`]"); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/ClientVerificationTests.java b/src/test/java/com/glean/api_client/glean_api_client/ClientVerificationTests.java deleted file mode 100644 index bc0e05e7..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/ClientVerificationTests.java +++ /dev/null @@ -1,3199 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.AuthToken; -import com.glean.api_client.glean_api_client.models.components.Badge; -import com.glean.api_client.glean_api_client.models.components.ChannelInviteInfo; -import com.glean.api_client.glean_api_client.models.components.Collection; -import com.glean.api_client.glean_api_client.models.components.CollectionItem; -import com.glean.api_client.glean_api_client.models.components.CollectionItemItemType; -import com.glean.api_client.glean_api_client.models.components.CustomDataValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldData; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValueStr; -import com.glean.api_client.glean_api_client.models.components.DatasourceProfile; -import com.glean.api_client.glean_api_client.models.components.Document; -import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; -import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; -import com.glean.api_client.glean_api_client.models.components.FacetFilter; -import com.glean.api_client.glean_api_client.models.components.FacetFilterSet; -import com.glean.api_client.glean_api_client.models.components.FacetFilterValue; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.InviteInfo; -import com.glean.api_client.glean_api_client.models.components.Person; -import com.glean.api_client.glean_api_client.models.components.PersonMetadata; -import com.glean.api_client.glean_api_client.models.components.PersonMetadataType; -import com.glean.api_client.glean_api_client.models.components.PinDocument; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestion; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestionList; -import com.glean.api_client.glean_api_client.models.components.Reaction; -import com.glean.api_client.glean_api_client.models.components.RelatedDocuments; -import com.glean.api_client.glean_api_client.models.components.RelationType; -import com.glean.api_client.glean_api_client.models.components.Reminder; -import com.glean.api_client.glean_api_client.models.components.ReminderRequest; -import com.glean.api_client.glean_api_client.models.components.SearchProviderInfo; -import com.glean.api_client.glean_api_client.models.components.SearchRequestInputDetails; -import com.glean.api_client.glean_api_client.models.components.SearchRequestOptions; -import com.glean.api_client.glean_api_client.models.components.SearchResult; -import com.glean.api_client.glean_api_client.models.components.SearchResultSnippet; -import com.glean.api_client.glean_api_client.models.components.Share; -import com.glean.api_client.glean_api_client.models.components.State; -import com.glean.api_client.glean_api_client.models.components.TextRange; -import com.glean.api_client.glean_api_client.models.components.UserRole; -import com.glean.api_client.glean_api_client.models.components.UserRoleSpecification; -import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerificationFeed; -import com.glean.api_client.glean_api_client.models.components.VerificationMetadata; -import com.glean.api_client.glean_api_client.models.components.VerifyRequest; -import com.glean.api_client.glean_api_client.models.operations.AddverificationreminderResponse; -import com.glean.api_client.glean_api_client.models.operations.ListverificationsResponse; -import com.glean.api_client.glean_api_client.models.operations.VerifyResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Test; - -public class ClientVerificationTests { - - @Test - public void testClientVerification_Addverificationreminder() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("addverificationreminder"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ReminderRequest req = ReminderRequest.builder() - .documentId("") - .build(); - - AddverificationreminderResponse res = sdk.client().verification().addReminder() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(310007L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(381872L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("ditch cruelly geez bah") - .id(922427L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(744290L) - .itemType(CollectionItemItemType.COLLECTION) - .build(), - CollectionItem.builder() - .collectionId(857658L) - .itemType(CollectionItemItemType.COLLECTION) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build())) - .build(), - Collection.builder() - .name("") - .description("unfortunately brr brr whereas object if frantically randomize contrail silently") - .id(571806L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(991839L) - .build())) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(431849L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(121811L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build(), - res.verification().get()); - } - - @Test - public void testClientVerification_Listverifications() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("listverifications"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ListverificationsResponse res = sdk.client().verification().list() - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - VerificationFeed.builder() - .documents(List.of( - Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(229716L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(635532L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("avalanche jungle unto meanwhile beside tromp worth reluctantly") - .id(294083L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(747562L) - .itemType(CollectionItemItemType.TEXT) - .build(), - CollectionItem.builder() - .collectionId(324206L) - .itemType(CollectionItemItemType.DOCUMENT) - .build(), - CollectionItem.builder() - .collectionId(678179L) - .itemType(CollectionItemItemType.TEXT) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(20615L) - .build(), - Share.builder() - .numDaysAgo(467775L) - .build(), - Share.builder() - .numDaysAgo(993677L) - .build())) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(406555L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(652326L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(370293L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(900911L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(424586L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(221489L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build(), - Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(277523L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(749833L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .build(), - res.verificationFeed().get()); - } - - @Test - public void testClientVerification_Verify() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("verify"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - VerifyRequest req = VerifyRequest.builder() - .documentId("") - .build(); - - VerifyResponse res = sdk.client().verification().verify() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(227138L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(394054L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("fiddle gee lightly these unique") - .id(248707L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(159863L) - .itemType(CollectionItemItemType.DOCUMENT) - .build(), - CollectionItem.builder() - .collectionId(725143L) - .itemType(CollectionItemItemType.DOCUMENT) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(638745L) - .build(), - Share.builder() - .numDaysAgo(331260L) - .build(), - Share.builder() - .numDaysAgo(759941L) - .build())) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(344155L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(851433L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(732097L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(510781L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(875373L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(740498L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build(), - res.verification().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/CollectionsTests.java b/src/test/java/com/glean/api_client/glean_api_client/CollectionsTests.java deleted file mode 100644 index d11f699f..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/CollectionsTests.java +++ /dev/null @@ -1,10240 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.AddCollectionItemsRequest; -import com.glean.api_client.glean_api_client.models.components.AddCollectionItemsResponse; -import com.glean.api_client.glean_api_client.models.components.AuthToken; -import com.glean.api_client.glean_api_client.models.components.Badge; -import com.glean.api_client.glean_api_client.models.components.ChannelInviteInfo; -import com.glean.api_client.glean_api_client.models.components.Collection; -import com.glean.api_client.glean_api_client.models.components.CollectionError1; -import com.glean.api_client.glean_api_client.models.components.CollectionItem; -import com.glean.api_client.glean_api_client.models.components.CollectionItemItemType; -import com.glean.api_client.glean_api_client.models.components.CreateCollectionRequest; -import com.glean.api_client.glean_api_client.models.components.CustomDataValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldData; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValueStr; -import com.glean.api_client.glean_api_client.models.components.DatasourceProfile; -import com.glean.api_client.glean_api_client.models.components.DeleteCollectionItemRequest; -import com.glean.api_client.glean_api_client.models.components.DeleteCollectionItemResponse; -import com.glean.api_client.glean_api_client.models.components.DeleteCollectionRequest; -import com.glean.api_client.glean_api_client.models.components.Document; -import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; -import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; -import com.glean.api_client.glean_api_client.models.components.EditCollectionItemRequest; -import com.glean.api_client.glean_api_client.models.components.EditCollectionItemResponse; -import com.glean.api_client.glean_api_client.models.components.EditCollectionRequest; -import com.glean.api_client.glean_api_client.models.components.EditCollectionResponse; -import com.glean.api_client.glean_api_client.models.components.EditCollectionResponseErrorCode; -import com.glean.api_client.glean_api_client.models.components.FacetFilter; -import com.glean.api_client.glean_api_client.models.components.FacetFilterSet; -import com.glean.api_client.glean_api_client.models.components.FacetFilterValue; -import com.glean.api_client.glean_api_client.models.components.GetCollectionRequest; -import com.glean.api_client.glean_api_client.models.components.GetCollectionResponse; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.InviteInfo; -import com.glean.api_client.glean_api_client.models.components.ListCollectionsRequest; -import com.glean.api_client.glean_api_client.models.components.ListCollectionsResponse; -import com.glean.api_client.glean_api_client.models.components.Person; -import com.glean.api_client.glean_api_client.models.components.PersonMetadata; -import com.glean.api_client.glean_api_client.models.components.PersonMetadataType; -import com.glean.api_client.glean_api_client.models.components.PinDocument; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestion; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestionList; -import com.glean.api_client.glean_api_client.models.components.Reaction; -import com.glean.api_client.glean_api_client.models.components.RelatedDocuments; -import com.glean.api_client.glean_api_client.models.components.RelationType; -import com.glean.api_client.glean_api_client.models.components.Reminder; -import com.glean.api_client.glean_api_client.models.components.SearchProviderInfo; -import com.glean.api_client.glean_api_client.models.components.SearchRequestInputDetails; -import com.glean.api_client.glean_api_client.models.components.SearchRequestOptions; -import com.glean.api_client.glean_api_client.models.components.SearchResult; -import com.glean.api_client.glean_api_client.models.components.SearchResultSnippet; -import com.glean.api_client.glean_api_client.models.components.Share; -import com.glean.api_client.glean_api_client.models.components.Shortcut; -import com.glean.api_client.glean_api_client.models.components.State; -import com.glean.api_client.glean_api_client.models.components.TextRange; -import com.glean.api_client.glean_api_client.models.components.UserRole; -import com.glean.api_client.glean_api_client.models.components.UserRoleSpecification; -import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerificationMetadata; -import com.glean.api_client.glean_api_client.models.errors.ErrorCode; -import com.glean.api_client.glean_api_client.models.operations.AddcollectionitemsResponse; -import com.glean.api_client.glean_api_client.models.operations.CreatecollectionResponse; -import com.glean.api_client.glean_api_client.models.operations.CreatecollectionResponseBody; -import com.glean.api_client.glean_api_client.models.operations.DeletecollectionResponse; -import com.glean.api_client.glean_api_client.models.operations.DeletecollectionitemResponse; -import com.glean.api_client.glean_api_client.models.operations.EditcollectionResponse; -import com.glean.api_client.glean_api_client.models.operations.EditcollectionitemResponse; -import com.glean.api_client.glean_api_client.models.operations.GetcollectionResponse; -import com.glean.api_client.glean_api_client.models.operations.ListcollectionsResponse; -import com.glean.api_client.glean_api_client.models.operations.ResponseBody2; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class CollectionsTests { - - @Test - public void testCollections_Addcollectionitems() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("addcollectionitems"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - AddCollectionItemsRequest req = AddCollectionItemsRequest.builder() - .collectionId(6460.15) - .build(); - - AddcollectionitemsResponse res = sdk.client().collections().addItems() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - AddCollectionItemsResponse.builder() - .collection(Collection.builder() - .name("") - .description("greedily indeed marten whereas rebel expansion") - .id(978832L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(759858L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(976421L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(649696L) - .build(), - Share.builder() - .numDaysAgo(970396L) - .build(), - Share.builder() - .numDaysAgo(288210L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(489899L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(168446L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(390252L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(283321L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(869836L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(102608L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(289582L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(569138L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(573370L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(542921L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(357599L) - .itemType(CollectionItemItemType.COLLECTION) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(477688L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .build(), - res.addCollectionItemsResponse().get()); - } - - @Test - public void testCollections_Createcollection() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("createcollection"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - CreateCollectionRequest req = CreateCollectionRequest.builder() - .name("") - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(134365L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(796474L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("fumigate convection though zowie") - .id(496323L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(782367L) - .itemType(CollectionItemItemType.DOCUMENT) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(219974L) - .build(), - Share.builder() - .numDaysAgo(449221L) - .build(), - Share.builder() - .numDaysAgo(427887L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(491427L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(490420L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(45416L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(); - - CreatecollectionResponse res = sdk.client().collections().create() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - CreatecollectionResponseBody.of(ResponseBody2.builder() - .error(CollectionError1.builder() - .errorCode(ErrorCode.NOT_FOUND) - .build()) - .collection(Collection.builder() - .name("") - .description("whole busily jive hawk gee basic minus hence") - .id(158969L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(110375L) - .itemType(CollectionItemItemType.COLLECTION) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .containerDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .parentDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .destinationDocument(Document.builder() - .containerDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .parentDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .collection(Collection.builder() - .name("") - .description("wedge colorfully orientate rally") - .id(131797L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .children(List.of( - Collection.builder() - .name("") - .description("outside yippee sidetrack mature regularly mouser inject worth") - .id(149448L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build())) - .build()) - .build()), - res.oneOf().get()); - } - - @Test - public void testCollections_Deletecollection() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("deletecollection"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - DeleteCollectionRequest req = DeleteCollectionRequest.builder() - .ids(List.of( - 698486L, - 386564L)) - .build(); - - DeletecollectionResponse res = sdk.client().collections().delete() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testCollections_Deletecollectionitem() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("deletecollectionitem"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - DeleteCollectionItemRequest req = DeleteCollectionItemRequest.builder() - .collectionId(1357.59) - .itemId("") - .build(); - - DeletecollectionitemResponse res = sdk.client().collections().deleteItem() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - DeleteCollectionItemResponse.builder() - .collection(Collection.builder() - .name("") - .description("up nice seafood") - .id(260387L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(735937L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(663050L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(934663L) - .build(), - Share.builder() - .numDaysAgo(307207L) - .build(), - Share.builder() - .numDaysAgo(246264L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(835281L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(239964L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(784251L) - .itemType(CollectionItemItemType.COLLECTION) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(501323L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(220432L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(187266L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(16069L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(696999L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .build(), - res.deleteCollectionItemResponse().get()); - } - - @Test - public void testCollections_Editcollection() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("editcollection"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - EditCollectionRequest req = EditCollectionRequest.builder() - .name("") - .id(720396L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(991464L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(488852L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("eulogise whereas till mild than during meanwhile disapprove finer ha") - .id(2984L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(477967L) - .itemType(CollectionItemItemType.URL) - .build(), - CollectionItem.builder() - .collectionId(813577L) - .itemType(CollectionItemItemType.TEXT) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(301848L) - .build(), - Share.builder() - .numDaysAgo(657278L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(335191L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(532806L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(556706L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(416023L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(967252L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of()) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(); - - EditcollectionResponse res = sdk.client().collections().update() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - EditCollectionResponse.builder() - .name("") - .description("urgently voluntarily scale gut") - .id(595467L) - .errorCode(EditCollectionResponseErrorCode.NAME_EXISTS) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(643119L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(553539L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("exotic fussy shadowy") - .id(224552L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(774530L) - .itemType(CollectionItemItemType.DOCUMENT) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(115263L) - .build(), - Share.builder() - .numDaysAgo(925954L) - .build(), - Share.builder() - .numDaysAgo(538720L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(318637L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(219050L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(762098L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(619716L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(22113L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("queasily down worthy generously than narrate pish off") - .id(567572L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build())) - .children(List.of( - Collection.builder() - .name("") - .description("since straight gadzooks pulp") - .id(89970L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .collection(Collection.builder() - .name("") - .description("ameliorate well political") - .id(151869L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build(), - res.editCollectionResponse().get()); - } - - @Test - public void testCollections_Editcollectionitem() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("editcollectionitem"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - EditCollectionItemRequest req = EditCollectionItemRequest.builder() - .collectionId(795203L) - .itemId("") - .build(); - - EditcollectionitemResponse res = sdk.client().collections().updateItem() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - EditCollectionItemResponse.builder() - .collection(Collection.builder() - .name("") - .description("where nasalise emphasize jealously appliance") - .id(559534L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(927066L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(702646L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(600927L) - .build(), - Share.builder() - .numDaysAgo(753737L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(841463L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(402252L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(286790L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(519565L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(90490L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(304041L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(299381L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(992935L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(788309L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(487486L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .build(), - res.editCollectionItemResponse().get()); - } - - @Test - public void testCollections_Editdocumentcollections() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step editdocumentcollections.test referencing operation editdocumentcollections not found in document`]"); - } - - @Test - public void testCollections_Getcollection() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getcollection"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetCollectionRequest req = GetCollectionRequest.builder() - .id(700347L) - .build(); - - GetcollectionResponse res = sdk.client().collections().retrieve() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetCollectionResponse.builder() - .collection(Collection.builder() - .name("") - .description("for carefully glorious scrabble ignite aw showboat") - .id(168726L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(607679L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(397483L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(392574L) - .build(), - Share.builder() - .numDaysAgo(908293L) - .build(), - Share.builder() - .numDaysAgo(754054L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(149108L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(741131L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(503671L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(486669L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(81373L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(165215L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(666980L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(25042L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(491026L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(844917L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .rootCollection(Collection.builder() - .name("") - .description("aw fibre hassle freezing but conversation under") - .id(22258L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build(), - res.getCollectionResponse().get()); - } - - @Test - public void testCollections_Listcollections() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("listcollections"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ListCollectionsRequest req = ListCollectionsRequest.builder() - .build(); - - ListcollectionsResponse res = sdk.client().collections().list() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - ListCollectionsResponse.builder() - .collections(List.of( - Collection.builder() - .name("") - .description("yuck accountability pish likewise excepting unimpressively quickly") - .id(29267L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(692918L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(838930L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(164965L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(777245L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(141764L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(664080L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(284580L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(544651L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(60868L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(993305L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(258945L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(408066L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(370293L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(900911L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(462343L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("massive sorrowful aw") - .id(314888L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Collection.builder() - .name("") - .description("merrily wherever failing orchestrate lest") - .id(895039L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build(), - res.listCollectionsResponse().get()); - } - - @Test - public void testCollections_Movecollectionitem() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step movecollectionitem.test referencing operation movecollectionitem not found in document`]"); - } - - @Test - public void testCollections_Pincollection() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step pincollection.test referencing operation pincollection not found in document`]"); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/DatasourcesTests.java b/src/test/java/com/glean/api_client/glean_api_client/DatasourcesTests.java deleted file mode 100644 index 7fc97e36..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/DatasourcesTests.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.CustomDatasourceConfig; -import com.glean.api_client.glean_api_client.models.components.DatasourceCategory; -import com.glean.api_client.glean_api_client.models.components.GetDatasourceConfigRequest; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.Quicklink; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1AdddatasourceResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1GetdatasourceconfigResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.util.List; -import org.junit.jupiter.api.Test; - -public class DatasourcesTests { - - @Test - public void testDatasources_PostApiIndexV1Adddatasource() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/adddatasource"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - CustomDatasourceConfig req = CustomDatasourceConfig.builder() - .name("") - .urlRegex("https://example-company.datasource.com/.*") - .quicklinks(List.of( - Quicklink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build(), - Quicklink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build(); - - PostApiIndexV1AdddatasourceResponse res = sdk.indexing().datasources().add() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testDatasources_PostApiIndexV1Getdatasourceconfig() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/getdatasourceconfig"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetDatasourceConfigRequest req = GetDatasourceConfigRequest.builder() - .datasource("") - .build(); - - PostApiIndexV1GetdatasourceconfigResponse res = sdk.indexing().datasources().retrieveConfig() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - CustomDatasourceConfig.builder() - .name("") - .datasourceCategory(DatasourceCategory.UNCATEGORIZED) - .urlRegex("https://example-company.datasource.com/.*") - .quicklinks(List.of( - Quicklink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .trustUrlRegexForViewActivity(true) - .stripFragmentInCanonicalUrl(true) - .isEntityDatasource(false) - .isTestDatasource(false) - .build(), - res.customDatasourceConfig().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/DisplayablelistsTests.java b/src/test/java/com/glean/api_client/glean_api_client/DisplayablelistsTests.java deleted file mode 100644 index 6a80d5e1..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/DisplayablelistsTests.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import java.lang.Exception; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class DisplayablelistsTests { - - @Test - public void testDisplayablelists_Createdisplayablelists() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step createdisplayablelists.test referencing operation createdisplayablelists not found in document`]"); - } - - @Test - public void testDisplayablelists_Deletedisplayablelists() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step deletedisplayablelists.test referencing operation deletedisplayablelists not found in document`]"); - } - - @Test - public void testDisplayablelists_Getdisplayablelists() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step getdisplayablelists.test referencing operation getdisplayablelists not found in document`]"); - } - - @Test - public void testDisplayablelists_Updatedisplayablelists() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step updatedisplayablelists.test referencing operation updatedisplayablelists not found in document`]"); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/EntitiesTests.java b/src/test/java/com/glean/api_client/glean_api_client/EntitiesTests.java deleted file mode 100644 index 8ccc3879..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/EntitiesTests.java +++ /dev/null @@ -1,2264 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.AuthToken; -import com.glean.api_client.glean_api_client.models.components.Badge; -import com.glean.api_client.glean_api_client.models.components.ChannelInviteInfo; -import com.glean.api_client.glean_api_client.models.components.Collection; -import com.glean.api_client.glean_api_client.models.components.CollectionItem; -import com.glean.api_client.glean_api_client.models.components.CollectionItemItemType; -import com.glean.api_client.glean_api_client.models.components.CustomDataValue; -import com.glean.api_client.glean_api_client.models.components.CustomEntity; -import com.glean.api_client.glean_api_client.models.components.CustomFieldData; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValueStr; -import com.glean.api_client.glean_api_client.models.components.DatasourceProfile; -import com.glean.api_client.glean_api_client.models.components.Document; -import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; -import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; -import com.glean.api_client.glean_api_client.models.components.FacetBucket; -import com.glean.api_client.glean_api_client.models.components.FacetFilter; -import com.glean.api_client.glean_api_client.models.components.FacetFilterSet; -import com.glean.api_client.glean_api_client.models.components.FacetFilterValue; -import com.glean.api_client.glean_api_client.models.components.FacetResult; -import com.glean.api_client.glean_api_client.models.components.FacetValue; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.InviteInfo; -import com.glean.api_client.glean_api_client.models.components.ListEntitiesRequest; -import com.glean.api_client.glean_api_client.models.components.ListEntitiesResponse; -import com.glean.api_client.glean_api_client.models.components.PeopleRequest; -import com.glean.api_client.glean_api_client.models.components.Person; -import com.glean.api_client.glean_api_client.models.components.PersonMetadata; -import com.glean.api_client.glean_api_client.models.components.PersonMetadataType; -import com.glean.api_client.glean_api_client.models.components.PersonToTeamRelationship; -import com.glean.api_client.glean_api_client.models.components.PersonToTeamRelationshipRelationship; -import com.glean.api_client.glean_api_client.models.components.PinDocument; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestion; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestionList; -import com.glean.api_client.glean_api_client.models.components.Reaction; -import com.glean.api_client.glean_api_client.models.components.RelatedDocuments; -import com.glean.api_client.glean_api_client.models.components.RelationType; -import com.glean.api_client.glean_api_client.models.components.Reminder; -import com.glean.api_client.glean_api_client.models.components.SearchProviderInfo; -import com.glean.api_client.glean_api_client.models.components.SearchRequestInputDetails; -import com.glean.api_client.glean_api_client.models.components.SearchRequestOptions; -import com.glean.api_client.glean_api_client.models.components.SearchResult; -import com.glean.api_client.glean_api_client.models.components.SearchResultSnippet; -import com.glean.api_client.glean_api_client.models.components.Share; -import com.glean.api_client.glean_api_client.models.components.State; -import com.glean.api_client.glean_api_client.models.components.Team; -import com.glean.api_client.glean_api_client.models.components.TeamStatus; -import com.glean.api_client.glean_api_client.models.components.TextRange; -import com.glean.api_client.glean_api_client.models.components.UserRole; -import com.glean.api_client.glean_api_client.models.components.UserRoleSpecification; -import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerificationMetadata; -import com.glean.api_client.glean_api_client.models.operations.ListentitiesResponse; -import com.glean.api_client.glean_api_client.models.operations.PeopleResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class EntitiesTests { - - @Test - public void testEntities_Listentities() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("listentities"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ListEntitiesRequest req = ListEntitiesRequest.builder() - .filter(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .pageSize(100L) - .build(); - - ListentitiesResponse res = sdk.client().entities().list() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - ListEntitiesResponse.builder() - .results(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .teamResults(List.of( - Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(229716L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(635532L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("avalanche jungle unto meanwhile beside tromp worth reluctantly") - .id(294083L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(747562L) - .itemType(CollectionItemItemType.TEXT) - .build(), - CollectionItem.builder() - .collectionId(324206L) - .itemType(CollectionItemItemType.DOCUMENT) - .build(), - CollectionItem.builder() - .collectionId(678179L) - .itemType(CollectionItemItemType.TEXT) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(20615L) - .build(), - Share.builder() - .numDaysAgo(467775L) - .build(), - Share.builder() - .numDaysAgo(993677L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(406555L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(29267L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(652326L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(688784L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(41398L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(329360L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .relationship(PersonToTeamRelationshipRelationship.MEMBER) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .relationship(PersonToTeamRelationshipRelationship.MEMBER) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .status(TeamStatus.PROCESSED) - .canBeDeleted(true) - .build(), - Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .status(TeamStatus.PROCESSED) - .canBeDeleted(true) - .build(), - Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .status(TeamStatus.PROCESSED) - .canBeDeleted(true) - .build())) - .customEntityResults(List.of( - CustomEntity.builder() - .build(), - CustomEntity.builder() - .build())) - .facetResults(List.of( - FacetResult.builder() - .sourceName("container_name") - .operatorName("SelectMultiple") - .buckets(List.of( - FacetBucket.builder() - .count(1L) - .datasource("jira") - .percentage(5L) - .value(FacetValue.builder() - .stringValue("engineering") - .integerValue(5L) - .displayLabel("engineering") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build())) - .hasMoreBuckets(false) - .groupName("Service Cloud") - .build(), - FacetResult.builder() - .sourceName("container_name") - .operatorName("SelectMultiple") - .buckets(List.of( - FacetBucket.builder() - .count(1L) - .datasource("jira") - .percentage(5L) - .value(FacetValue.builder() - .stringValue("engineering") - .integerValue(5L) - .displayLabel("engineering") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build())) - .hasMoreBuckets(false) - .groupName("Service Cloud") - .build())) - .build(), - res.listEntitiesResponse().get()); - } - - @Test - public void testEntities_People() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("people"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - PeopleRequest req = PeopleRequest.builder() - .obfuscatedIds(List.of( - "abc123", - "abc456")) - .build(); - - PeopleResponse res = sdk.client().entities().readPeople() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - com.glean.api_client.glean_api_client.models.components.PeopleResponse.builder() - .results(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(325985L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(5324L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .mentionedPeople(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("underneath whoa electronics tributary") - .id(544551L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(450370L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(574783L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("playfully heavy finally altruistic whenever er utter notwithstanding") - .id(372647L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Collection.builder() - .name("") - .description("boohoo analogy hm and rise weight") - .id(705939L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(406671L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(870639L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(945399L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(970028L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build())) - .build(), - res.peopleResponse().get()); - } - - @Test - public void testEntities_Teams() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step teams.test referencing operation teams not found in document`]"); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/IndexingAuthenticationTests.java b/src/test/java/com/glean/api_client/glean_api_client/IndexingAuthenticationTests.java deleted file mode 100644 index a80845f2..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/IndexingAuthenticationTests.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.RotateTokenResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1RotatetokenResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import org.junit.jupiter.api.Test; - -public class IndexingAuthenticationTests { - - @Test - public void testIndexingAuthentication_PostApiIndexV1Rotatetoken() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/rotatetoken"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - PostApiIndexV1RotatetokenResponse res = sdk.indexing().authentication().rotateToken() - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - RotateTokenResponse.builder() - .build(), - res.rotateTokenResponse().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/IndexingDocumentsTests.java b/src/test/java/com/glean/api_client/glean_api_client/IndexingDocumentsTests.java deleted file mode 100644 index 09542989..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/IndexingDocumentsTests.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.BulkIndexDocumentsRequest; -import com.glean.api_client.glean_api_client.models.components.DeleteDocumentRequest; -import com.glean.api_client.glean_api_client.models.components.DocumentDefinition; -import com.glean.api_client.glean_api_client.models.components.IndexDocumentRequest; -import com.glean.api_client.glean_api_client.models.components.IndexDocumentsRequest; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1BulkindexdocumentsResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DeletedocumentResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1IndexdocumentResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1IndexdocumentsResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1ProcessalldocumentsResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.util.List; -import org.junit.jupiter.api.Test; - -public class IndexingDocumentsTests { - - @Test - public void testIndexingDocuments_PostApiIndexV1Indexdocument() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/indexdocument"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - IndexDocumentRequest req = IndexDocumentRequest.builder() - .document(DocumentDefinition.builder() - .datasource("") - .build()) - .build(); - - PostApiIndexV1IndexdocumentResponse res = sdk.indexing().documents().addOrUpdate() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingDocuments_PostApiIndexV1Indexdocuments() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/indexdocuments"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - IndexDocumentsRequest req = IndexDocumentsRequest.builder() - .datasource("") - .documents(List.of( - DocumentDefinition.builder() - .datasource("") - .build())) - .build(); - - PostApiIndexV1IndexdocumentsResponse res = sdk.indexing().documents().index() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingDocuments_PostApiIndexV1Bulkindexdocuments() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/bulkindexdocuments"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - BulkIndexDocumentsRequest req = BulkIndexDocumentsRequest.builder() - .uploadId("") - .datasource("") - .documents(List.of( - DocumentDefinition.builder() - .datasource("") - .build())) - .build(); - - PostApiIndexV1BulkindexdocumentsResponse res = sdk.indexing().documents().bulkIndex() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingDocuments_PostApiIndexV1Processalldocuments() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/processalldocuments"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - PostApiIndexV1ProcessalldocumentsResponse res = sdk.indexing().documents().processAll() - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingDocuments_PostApiIndexV1Deletedocument() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/deletedocument"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - DeleteDocumentRequest req = DeleteDocumentRequest.builder() - .datasource("") - .objectType("") - .id("") - .build(); - - PostApiIndexV1DeletedocumentResponse res = sdk.indexing().documents().delete() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/IndexingPermissionsTests.java b/src/test/java/com/glean/api_client/glean_api_client/IndexingPermissionsTests.java deleted file mode 100644 index 803361ca..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/IndexingPermissionsTests.java +++ /dev/null @@ -1,327 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.BulkIndexGroupsRequest; -import com.glean.api_client.glean_api_client.models.components.BulkIndexMembershipsRequest; -import com.glean.api_client.glean_api_client.models.components.BulkIndexUsersRequest; -import com.glean.api_client.glean_api_client.models.components.DatasourceBulkMembershipDefinition; -import com.glean.api_client.glean_api_client.models.components.DatasourceGroupDefinition; -import com.glean.api_client.glean_api_client.models.components.DatasourceMembershipDefinition; -import com.glean.api_client.glean_api_client.models.components.DatasourceUserDefinition; -import com.glean.api_client.glean_api_client.models.components.DeleteGroupRequest; -import com.glean.api_client.glean_api_client.models.components.DeleteMembershipRequest; -import com.glean.api_client.glean_api_client.models.components.DeleteUserRequest; -import com.glean.api_client.glean_api_client.models.components.DocumentPermissionsDefinition; -import com.glean.api_client.glean_api_client.models.components.GreenlistUsersRequest; -import com.glean.api_client.glean_api_client.models.components.IndexGroupRequest; -import com.glean.api_client.glean_api_client.models.components.IndexMembershipRequest; -import com.glean.api_client.glean_api_client.models.components.IndexUserRequest; -import com.glean.api_client.glean_api_client.models.components.UpdatePermissionsRequest; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1BetausersResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1BulkindexgroupsResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1BulkindexmembershipsResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1BulkindexusersResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DeletegroupResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DeletemembershipResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1DeleteuserResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1IndexgroupResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1IndexmembershipResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1IndexuserResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1ProcessallmembershipsResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1UpdatepermissionsResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.util.List; -import org.junit.jupiter.api.Test; - -public class IndexingPermissionsTests { - - @Test - public void testIndexingPermissions_PostApiIndexV1Updatepermissions() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/updatepermissions"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - UpdatePermissionsRequest req = UpdatePermissionsRequest.builder() - .datasource("") - .permissions(DocumentPermissionsDefinition.builder() - .build()) - .build(); - - PostApiIndexV1UpdatepermissionsResponse res = sdk.indexing().permissions().updatePermissions() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingPermissions_PostApiIndexV1Indexuser() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/indexuser"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - IndexUserRequest req = IndexUserRequest.builder() - .datasource("") - .user(DatasourceUserDefinition.builder() - .email("Elroy38@gmail.com") - .name("") - .build()) - .build(); - - PostApiIndexV1IndexuserResponse res = sdk.indexing().permissions().indexUser() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingPermissions_PostApiIndexV1Bulkindexusers() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/bulkindexusers"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - BulkIndexUsersRequest req = BulkIndexUsersRequest.builder() - .uploadId("") - .datasource("") - .users(List.of( - DatasourceUserDefinition.builder() - .email("Nola85@hotmail.com") - .name("") - .build(), - DatasourceUserDefinition.builder() - .email("Francisca44@hotmail.com") - .name("") - .build(), - DatasourceUserDefinition.builder() - .email("Georgiana_Fadel-Boyle@yahoo.com") - .name("") - .build())) - .build(); - - PostApiIndexV1BulkindexusersResponse res = sdk.indexing().permissions().bulkIndexUsers() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingPermissions_PostApiIndexV1Indexgroup() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/indexgroup"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - IndexGroupRequest req = IndexGroupRequest.builder() - .datasource("") - .group(DatasourceGroupDefinition.builder() - .name("") - .build()) - .build(); - - PostApiIndexV1IndexgroupResponse res = sdk.indexing().permissions().indexGroup() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingPermissions_PostApiIndexV1Bulkindexgroups() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/bulkindexgroups"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - BulkIndexGroupsRequest req = BulkIndexGroupsRequest.builder() - .uploadId("") - .datasource("") - .groups(List.of( - DatasourceGroupDefinition.builder() - .name("") - .build(), - DatasourceGroupDefinition.builder() - .name("") - .build())) - .build(); - - PostApiIndexV1BulkindexgroupsResponse res = sdk.indexing().permissions().bulkIndexGroups() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingPermissions_PostApiIndexV1Indexmembership() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/indexmembership"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - IndexMembershipRequest req = IndexMembershipRequest.builder() - .datasource("") - .membership(DatasourceMembershipDefinition.builder() - .groupName("") - .build()) - .build(); - - PostApiIndexV1IndexmembershipResponse res = sdk.indexing().permissions().indexMembership() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingPermissions_PostApiIndexV1Bulkindexmemberships() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/bulkindexmemberships"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - BulkIndexMembershipsRequest req = BulkIndexMembershipsRequest.builder() - .uploadId("") - .datasource("") - .memberships(List.of( - DatasourceBulkMembershipDefinition.builder() - .build(), - DatasourceBulkMembershipDefinition.builder() - .build(), - DatasourceBulkMembershipDefinition.builder() - .build())) - .build(); - - PostApiIndexV1BulkindexmembershipsResponse res = sdk.indexing().permissions().bulkIndexMemberships() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingPermissions_PostApiIndexV1Processallmemberships() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/processallmemberships"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - PostApiIndexV1ProcessallmembershipsResponse res = sdk.indexing().permissions().processMemberships() - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingPermissions_PostApiIndexV1Deleteuser() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/deleteuser"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - DeleteUserRequest req = DeleteUserRequest.builder() - .datasource("") - .email("Estrella.Robel56@gmail.com") - .build(); - - PostApiIndexV1DeleteuserResponse res = sdk.indexing().permissions().deleteUser() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingPermissions_PostApiIndexV1Deletegroup() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/deletegroup"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - DeleteGroupRequest req = DeleteGroupRequest.builder() - .datasource("") - .groupName("") - .build(); - - PostApiIndexV1DeletegroupResponse res = sdk.indexing().permissions().deleteGroup() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingPermissions_PostApiIndexV1Deletemembership() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/deletemembership"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - DeleteMembershipRequest req = DeleteMembershipRequest.builder() - .datasource("") - .membership(DatasourceMembershipDefinition.builder() - .groupName("") - .build()) - .build(); - - PostApiIndexV1DeletemembershipResponse res = sdk.indexing().permissions().deleteMembership() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } - - @Test - public void testIndexingPermissions_PostApiIndexV1Betausers() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/betausers"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GreenlistUsersRequest req = GreenlistUsersRequest.builder() - .datasource("") - .emails(List.of( - "Margaret94@gmail.com", - "Jerel_Wilkinson39@yahoo.com")) - .build(); - - PostApiIndexV1BetausersResponse res = sdk.indexing().permissions().authorizeBetaUsers() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/InsightsTests.java b/src/test/java/com/glean/api_client/glean_api_client/InsightsTests.java deleted file mode 100644 index a679473e..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/InsightsTests.java +++ /dev/null @@ -1,5235 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.ActivityEnum; -import com.glean.api_client.glean_api_client.models.components.AiAppsInsightsResponse; -import com.glean.api_client.glean_api_client.models.components.AiInsightsResponse; -import com.glean.api_client.glean_api_client.models.components.AuthToken; -import com.glean.api_client.glean_api_client.models.components.Badge; -import com.glean.api_client.glean_api_client.models.components.ChannelInviteInfo; -import com.glean.api_client.glean_api_client.models.components.Collection; -import com.glean.api_client.glean_api_client.models.components.CollectionItem; -import com.glean.api_client.glean_api_client.models.components.CollectionItemItemType; -import com.glean.api_client.glean_api_client.models.components.ContentInsightsResponse; -import com.glean.api_client.glean_api_client.models.components.CustomDataValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldData; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValueStr; -import com.glean.api_client.glean_api_client.models.components.DatasourceProfile; -import com.glean.api_client.glean_api_client.models.components.Document; -import com.glean.api_client.glean_api_client.models.components.DocumentInsight; -import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; -import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; -import com.glean.api_client.glean_api_client.models.components.FacetFilter; -import com.glean.api_client.glean_api_client.models.components.FacetFilterSet; -import com.glean.api_client.glean_api_client.models.components.FacetFilterValue; -import com.glean.api_client.glean_api_client.models.components.GleanAssistInsightsResponse; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.InsightsRequest; -import com.glean.api_client.glean_api_client.models.components.InsightsRequestCategory; -import com.glean.api_client.glean_api_client.models.components.InviteInfo; -import com.glean.api_client.glean_api_client.models.components.Person; -import com.glean.api_client.glean_api_client.models.components.PersonMetadata; -import com.glean.api_client.glean_api_client.models.components.PersonMetadataType; -import com.glean.api_client.glean_api_client.models.components.PinDocument; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestion; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestionList; -import com.glean.api_client.glean_api_client.models.components.Reaction; -import com.glean.api_client.glean_api_client.models.components.RelatedDocuments; -import com.glean.api_client.glean_api_client.models.components.RelationType; -import com.glean.api_client.glean_api_client.models.components.Reminder; -import com.glean.api_client.glean_api_client.models.components.SearchProviderInfo; -import com.glean.api_client.glean_api_client.models.components.SearchRequestInputDetails; -import com.glean.api_client.glean_api_client.models.components.SearchRequestOptions; -import com.glean.api_client.glean_api_client.models.components.SearchResult; -import com.glean.api_client.glean_api_client.models.components.SearchResultSnippet; -import com.glean.api_client.glean_api_client.models.components.Share; -import com.glean.api_client.glean_api_client.models.components.State; -import com.glean.api_client.glean_api_client.models.components.TextRange; -import com.glean.api_client.glean_api_client.models.components.UserActivityInsight; -import com.glean.api_client.glean_api_client.models.components.UserInsightsResponse; -import com.glean.api_client.glean_api_client.models.components.UserRole; -import com.glean.api_client.glean_api_client.models.components.UserRoleSpecification; -import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerificationMetadata; -import com.glean.api_client.glean_api_client.models.operations.InsightsResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Test; - -public class InsightsTests { - - @Test - public void testInsights_Insights() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("insights"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - InsightsRequest req = InsightsRequest.builder() - .categories(List.of( - InsightsRequestCategory.CONTENT, - InsightsRequestCategory.CONTENT)) - .build(); - - InsightsResponse res = sdk.client().insights().retrieve() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - com.glean.api_client.glean_api_client.models.components.InsightsResponse.builder() - .users(UserInsightsResponse.builder() - .activityInsights(List.of( - UserActivityInsight.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(450824L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(213457L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("yahoo disapprove glum ugh roundabout middle ha rise readily") - .id(237994L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(256758L) - .itemType(CollectionItemItemType.COLLECTION) - .build(), - CollectionItem.builder() - .collectionId(783459L) - .itemType(CollectionItemItemType.URL) - .build(), - CollectionItem.builder() - .collectionId(188420L) - .itemType(CollectionItemItemType.TEXT) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build())) - .build(), - Collection.builder() - .name("") - .description("bell unabashedly unwilling disk") - .id(698722L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(365275L) - .build(), - Share.builder() - .numDaysAgo(790898L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(856562L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(328633L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(287673L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(140875L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(210313L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .activity(ActivityEnum.SEARCH) - .build(), - UserActivityInsight.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .activity(ActivityEnum.ALL) - .build())) - .inactiveInsights(List.of( - UserActivityInsight.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .activity(ActivityEnum.SEARCH) - .build(), - UserActivityInsight.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .activity(ActivityEnum.SEARCH) - .build(), - UserActivityInsight.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .activity(ActivityEnum.ALL) - .build())) - .build()) - .content(ContentInsightsResponse.builder() - .documentInsights(List.of( - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(783566L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(519998L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(500839L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .build()) - .collections(ContentInsightsResponse.builder() - .documentInsights(List.of( - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(609810L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(413854L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(150399L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .build()) - .collectionsV2(ContentInsightsResponse.builder() - .documentInsights(List.of( - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(148964L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(541220L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(222075L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .build()) - .announcements(ContentInsightsResponse.builder() - .documentInsights(List.of( - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(15843L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .build()) - .answers(ContentInsightsResponse.builder() - .documentInsights(List.of( - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(39567L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(892341L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - DocumentInsight.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(486092L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .build()) - .ai(AiInsightsResponse.builder() - .assistantInsights(List.of( - UserActivityInsight.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .activity(ActivityEnum.SEARCH) - .build())) - .build()) - .aiApps(AiAppsInsightsResponse.builder() - .aiAppInsights(List.of( - UserActivityInsight.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .activity(ActivityEnum.SEARCH) - .build(), - UserActivityInsight.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .activity(ActivityEnum.ALL) - .build())) - .build()) - .gleanAssist(GleanAssistInsightsResponse.builder() - .activityInsights(List.of( - UserActivityInsight.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .activity(ActivityEnum.SEARCH) - .build())) - .build()) - .build(), - res.insightsResponse().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/MessagesTests.java b/src/test/java/com/glean/api_client/glean_api_client/MessagesTests.java deleted file mode 100644 index 3c36af45..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/MessagesTests.java +++ /dev/null @@ -1,8608 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.Answer; -import com.glean.api_client.glean_api_client.models.components.AnswerBoard; -import com.glean.api_client.glean_api_client.models.components.AnswerLike; -import com.glean.api_client.glean_api_client.models.components.AnswerLikes; -import com.glean.api_client.glean_api_client.models.components.AuthToken; -import com.glean.api_client.glean_api_client.models.components.Badge; -import com.glean.api_client.glean_api_client.models.components.CalendarAttendee; -import com.glean.api_client.glean_api_client.models.components.CalendarAttendees; -import com.glean.api_client.glean_api_client.models.components.ChannelInviteInfo; -import com.glean.api_client.glean_api_client.models.components.ClusterGroup; -import com.glean.api_client.glean_api_client.models.components.Code; -import com.glean.api_client.glean_api_client.models.components.CodeLine; -import com.glean.api_client.glean_api_client.models.components.Collection; -import com.glean.api_client.glean_api_client.models.components.CollectionItem; -import com.glean.api_client.glean_api_client.models.components.CollectionItemItemType; -import com.glean.api_client.glean_api_client.models.components.Company; -import com.glean.api_client.glean_api_client.models.components.CustomDataValue; -import com.glean.api_client.glean_api_client.models.components.CustomEntity; -import com.glean.api_client.glean_api_client.models.components.CustomFieldData; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValueStr; -import com.glean.api_client.glean_api_client.models.components.Customer; -import com.glean.api_client.glean_api_client.models.components.DatasourceProfile; -import com.glean.api_client.glean_api_client.models.components.Document; -import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; -import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; -import com.glean.api_client.glean_api_client.models.components.ErrorMessage; -import com.glean.api_client.glean_api_client.models.components.ExtractedQnA; -import com.glean.api_client.glean_api_client.models.components.FacetBucket; -import com.glean.api_client.glean_api_client.models.components.FacetFilter; -import com.glean.api_client.glean_api_client.models.components.FacetFilterSet; -import com.glean.api_client.glean_api_client.models.components.FacetFilterValue; -import com.glean.api_client.glean_api_client.models.components.FacetResult; -import com.glean.api_client.glean_api_client.models.components.FacetValue; -import com.glean.api_client.glean_api_client.models.components.GeneratedQna; -import com.glean.api_client.glean_api_client.models.components.GleanDataError; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.IdType; -import com.glean.api_client.glean_api_client.models.components.InviteInfo; -import com.glean.api_client.glean_api_client.models.components.Meeting; -import com.glean.api_client.glean_api_client.models.components.MessagesRequest; -import com.glean.api_client.glean_api_client.models.components.Person; -import com.glean.api_client.glean_api_client.models.components.PersonMetadata; -import com.glean.api_client.glean_api_client.models.components.PersonMetadataType; -import com.glean.api_client.glean_api_client.models.components.PersonToTeamRelationship; -import com.glean.api_client.glean_api_client.models.components.PersonToTeamRelationshipRelationship; -import com.glean.api_client.glean_api_client.models.components.PinDocument; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestion; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestionList; -import com.glean.api_client.glean_api_client.models.components.Reaction; -import com.glean.api_client.glean_api_client.models.components.RelatedDocuments; -import com.glean.api_client.glean_api_client.models.components.RelatedQuestion; -import com.glean.api_client.glean_api_client.models.components.RelationType; -import com.glean.api_client.glean_api_client.models.components.Reminder; -import com.glean.api_client.glean_api_client.models.components.ResultsDescription; -import com.glean.api_client.glean_api_client.models.components.SearchProviderInfo; -import com.glean.api_client.glean_api_client.models.components.SearchRequestInputDetails; -import com.glean.api_client.glean_api_client.models.components.SearchRequestOptions; -import com.glean.api_client.glean_api_client.models.components.SearchResponse; -import com.glean.api_client.glean_api_client.models.components.SearchResponseMetadata; -import com.glean.api_client.glean_api_client.models.components.SearchResult; -import com.glean.api_client.glean_api_client.models.components.SearchResultSnippet; -import com.glean.api_client.glean_api_client.models.components.Share; -import com.glean.api_client.glean_api_client.models.components.State; -import com.glean.api_client.glean_api_client.models.components.StructuredResult; -import com.glean.api_client.glean_api_client.models.components.StructuredText; -import com.glean.api_client.glean_api_client.models.components.StructuredTextItem; -import com.glean.api_client.glean_api_client.models.components.Team; -import com.glean.api_client.glean_api_client.models.components.TeamStatus; -import com.glean.api_client.glean_api_client.models.components.TextRange; -import com.glean.api_client.glean_api_client.models.components.UserRole; -import com.glean.api_client.glean_api_client.models.components.UserRoleSpecification; -import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerificationMetadata; -import com.glean.api_client.glean_api_client.models.operations.MessagesResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Test; - -public class MessagesTests { - - @Test - public void testMessages_Messages() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("messages"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - MessagesRequest req = MessagesRequest.builder() - .idType(IdType.CONVERSATION_ID) - .id("") - .timestampMillis(558834L) - .build(); - - MessagesResponse res = sdk.client().messages().retrieve() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - com.glean.api_client.glean_api_client.models.components.MessagesResponse.builder() - .hasMore(false) - .searchResponse(SearchResponse.builder() - .trackingToken("trackingToken") - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(450824L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(213457L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(438142L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(78888L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .mentionedPeople(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("meanwhile bah because impassioned responsibility jogging airman per") - .id(168726L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(491026L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(845806L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Share.builder() - .numDaysAgo(534384L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(387819L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(698722L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(365275L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .relationship(PersonToTeamRelationshipRelationship.MEMBER) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .status(TeamStatus.PROCESSED) - .canBeDeleted(true) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(637897L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(960234L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(163922L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .likedByUser(true) - .numLikes(750176L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(194354L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("absolve beside makeover amidst diver if behind drat") - .id(435401L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(382213L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(990860L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .title("title") - .nativeAppUrl("slack://foo/bar") - .relatedResults(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(820095L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(346523L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(193124L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .allClusteredResults(List.of( - ClusterGroup.builder() - .visibleCountHint(197787L) - .build(), - ClusterGroup.builder() - .visibleCountHint(60189L) - .build())) - .mustIncludeSuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(478496L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("baptise kick ick gosh stall phew") - .id(999561L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("unnecessarily medium following pfft bashfully before") - .id(534236L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .lines(List.of( - CodeLine.builder() - .build())) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build(), - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(972200L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .status(TeamStatus.PROCESSED) - .canBeDeleted(true) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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.") - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(738008L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(688038L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("parade since delightfully") - .id(207365L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(961784L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(61187L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .title("title") - .nativeAppUrl("slack://foo/bar") - .mustIncludeSuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(950775L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("whereas chubby bah er taut toward footrest victorious custody huzzah") - .id(863294L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("er until seal er") - .id(591321L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build())) - .generatedQnaResult(GeneratedQna.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(73819L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(743152L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .build()) - .gleanDataError(GleanDataError.builder() - .errorMessages(List.of( - ErrorMessage.builder() - .source("gmail") - .errorMessage("invalid token") - .build(), - ErrorMessage.builder() - .source("slack") - .errorMessage("expired token") - .build())) - .build()) - .requestID("5e345ae500ff0befa2b9d1a3ba0001737e7363696f312d323535323137000171756572792d656e64706f696e743a323032303031333074313830343032000100") - .backendTimeMillis(1100L) - .metadata(SearchResponseMetadata.builder() - .searchedQueryRanges(List.of( - TextRange.builder() - .startIndex(245129L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(298813L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(147593L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(954659L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(600259L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(195022L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(801589L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .additionalQuerySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .facetResults(List.of( - FacetResult.builder() - .sourceName("container_name") - .operatorName("SelectMultiple") - .buckets(List.of( - FacetBucket.builder() - .count(1L) - .datasource("jira") - .percentage(5L) - .value(FacetValue.builder() - .stringValue("engineering") - .integerValue(5L) - .displayLabel("engineering") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build(), - FacetBucket.builder() - .count(1L) - .datasource("jira") - .percentage(5L) - .value(FacetValue.builder() - .stringValue("engineering") - .integerValue(5L) - .displayLabel("engineering") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build())) - .hasMoreBuckets(false) - .groupName("Service Cloud") - .build(), - FacetResult.builder() - .sourceName("container_name") - .operatorName("SelectMultiple") - .buckets(List.of( - FacetBucket.builder() - .count(1L) - .datasource("jira") - .percentage(5L) - .value(FacetValue.builder() - .stringValue("engineering") - .integerValue(5L) - .displayLabel("engineering") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build(), - FacetBucket.builder() - .count(1L) - .datasource("jira") - .percentage(5L) - .value(FacetValue.builder() - .stringValue("engineering") - .integerValue(5L) - .displayLabel("engineering") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build())) - .hasMoreBuckets(false) - .groupName("Service Cloud") - .build())) - .resultsDescription(ResultsDescription.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .rewrittenFacetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .hasMoreResults(true) - .build()) - .rootMessage(SearchResult.builder() - .url("https://example.com/foo/bar") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(733319L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .title("title") - .nativeAppUrl("slack://foo/bar") - .mustIncludeSuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(359740L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build()) - .build(), - res.messagesResponse().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/PeopleTests.java b/src/test/java/com/glean/api_client/glean_api_client/PeopleTests.java deleted file mode 100644 index ae5077f8..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/PeopleTests.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1ProcessallemployeesandteamsResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import org.junit.jupiter.api.Test; - -public class PeopleTests { - - @Test - public void testPeople_PostApiIndexV1Processallemployeesandteams() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/processallemployeesandteams"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - PostApiIndexV1ProcessallemployeesandteamsResponse res = sdk.indexing().people().processAllEmployeesAndTeams() - .call(); - assertEquals(200, res.statusCode()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/PinsTests.java b/src/test/java/com/glean/api_client/glean_api_client/PinsTests.java deleted file mode 100644 index 33520505..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/PinsTests.java +++ /dev/null @@ -1,2067 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.AuthToken; -import com.glean.api_client.glean_api_client.models.components.Badge; -import com.glean.api_client.glean_api_client.models.components.ChannelInviteInfo; -import com.glean.api_client.glean_api_client.models.components.Collection; -import com.glean.api_client.glean_api_client.models.components.CollectionItem; -import com.glean.api_client.glean_api_client.models.components.CollectionItemItemType; -import com.glean.api_client.glean_api_client.models.components.CustomDataValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldData; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValueStr; -import com.glean.api_client.glean_api_client.models.components.DatasourceProfile; -import com.glean.api_client.glean_api_client.models.components.Document; -import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; -import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; -import com.glean.api_client.glean_api_client.models.components.EditPinRequest; -import com.glean.api_client.glean_api_client.models.components.FacetFilter; -import com.glean.api_client.glean_api_client.models.components.FacetFilterSet; -import com.glean.api_client.glean_api_client.models.components.FacetFilterValue; -import com.glean.api_client.glean_api_client.models.components.GetPinRequest; -import com.glean.api_client.glean_api_client.models.components.GetPinResponse; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.InviteInfo; -import com.glean.api_client.glean_api_client.models.components.ListPinsResponse; -import com.glean.api_client.glean_api_client.models.components.Person; -import com.glean.api_client.glean_api_client.models.components.PersonMetadata; -import com.glean.api_client.glean_api_client.models.components.PersonMetadataType; -import com.glean.api_client.glean_api_client.models.components.PinDocument; -import com.glean.api_client.glean_api_client.models.components.PinRequest; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestion; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestionList; -import com.glean.api_client.glean_api_client.models.components.Reaction; -import com.glean.api_client.glean_api_client.models.components.RelatedDocuments; -import com.glean.api_client.glean_api_client.models.components.RelationType; -import com.glean.api_client.glean_api_client.models.components.Reminder; -import com.glean.api_client.glean_api_client.models.components.SearchProviderInfo; -import com.glean.api_client.glean_api_client.models.components.SearchRequestInputDetails; -import com.glean.api_client.glean_api_client.models.components.SearchRequestOptions; -import com.glean.api_client.glean_api_client.models.components.SearchResult; -import com.glean.api_client.glean_api_client.models.components.SearchResultSnippet; -import com.glean.api_client.glean_api_client.models.components.Share; -import com.glean.api_client.glean_api_client.models.components.State; -import com.glean.api_client.glean_api_client.models.components.TextRange; -import com.glean.api_client.glean_api_client.models.components.Unpin; -import com.glean.api_client.glean_api_client.models.components.UserRole; -import com.glean.api_client.glean_api_client.models.components.UserRoleSpecification; -import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerificationMetadata; -import com.glean.api_client.glean_api_client.models.operations.EditpinResponse; -import com.glean.api_client.glean_api_client.models.operations.GetpinResponse; -import com.glean.api_client.glean_api_client.models.operations.ListpinsRequest; -import com.glean.api_client.glean_api_client.models.operations.ListpinsResponse; -import com.glean.api_client.glean_api_client.models.operations.PinResponse; -import com.glean.api_client.glean_api_client.models.operations.UnpinResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Test; - -public class PinsTests { - - @Test - public void testPins_Editpin() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("editpin"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - EditPinRequest req = EditPinRequest.builder() - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(); - - EditpinResponse res = sdk.client().pins().update() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(922296L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(47491L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .collections(List.of( - Collection.builder() - .name("") - .description("informal wrongly lest slime since pace into row") - .id(793957L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(841760L) - .itemType(CollectionItemItemType.COLLECTION) - .build(), - CollectionItem.builder() - .collectionId(546659L) - .itemType(CollectionItemItemType.COLLECTION) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build())) - .build(), - Collection.builder() - .name("") - .description("twine because unnaturally card gallery among agile duh pro athwart") - .id(201064L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(544237L) - .build(), - Share.builder() - .numDaysAgo(241956L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(448916L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(494003L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(29269L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - res.pinDocument().get()); - } - - @Test - public void testPins_Getpin() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getpin"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetPinRequest req = GetPinRequest.builder() - .build(); - - GetpinResponse res = sdk.client().pins().retrieve() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetPinResponse.builder() - .pin(PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(544221L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(969961L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .collections(List.of( - Collection.builder() - .name("") - .description("extract neaten qua meanwhile bah") - .id(808481L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(656841L) - .itemType(CollectionItemItemType.URL) - .build(), - CollectionItem.builder() - .collectionId(607679L) - .itemType(CollectionItemItemType.COLLECTION) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build())) - .build(), - Collection.builder() - .name("") - .description("once out effector determined backburn weary") - .id(547184L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(31446L) - .build(), - Share.builder() - .numDaysAgo(339847L) - .build(), - Share.builder() - .numDaysAgo(844917L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(845806L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(350813L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(534384L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(913207L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(533795L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(949290L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(716267L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build(), - res.getPinResponse().get()); - } - - @Test - public void testPins_Listpins() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("listpins"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ListpinsRequest req = ListpinsRequest.builder() - .build(); - - ListpinsResponse res = sdk.client().pins().list() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - ListPinsResponse.builder() - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(177706L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(152837L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .collections(List.of( - Collection.builder() - .name("") - .description("bah since zowie loudly aha although gosh whenever") - .id(544651L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(60868L) - .itemType(CollectionItemItemType.TEXT) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build())) - .build(), - Collection.builder() - .name("") - .description("via during someplace woot excepting gah only despite") - .id(933854L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(500063L) - .build(), - Share.builder() - .numDaysAgo(206163L) - .build(), - Share.builder() - .numDaysAgo(310383L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(838038L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(517221L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(774578L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(213989L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build(), - res.listPinsResponse().get()); - } - - @Test - public void testPins_Pin() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("pin"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - PinRequest req = PinRequest.builder() - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(); - - PinResponse res = sdk.client().pins().create() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(417458L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(69025L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .collections(List.of( - Collection.builder() - .name("") - .description("vice between gee") - .id(550483L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(452224L) - .itemType(CollectionItemItemType.TEXT) - .build(), - CollectionItem.builder() - .collectionId(259772L) - .itemType(CollectionItemItemType.COLLECTION) - .build(), - CollectionItem.builder() - .collectionId(137324L) - .itemType(CollectionItemItemType.URL) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .build())) - .build(), - Collection.builder() - .name("") - .description("attend alongside aw blend ha ew") - .id(497070L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - Collection.builder() - .name("") - .description("embalm simple ouch when pfft ah vainly") - .id(154150L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(842284L) - .build(), - Share.builder() - .numDaysAgo(466260L) - .build(), - Share.builder() - .numDaysAgo(931588L) - .build())) - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(982866L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(482357L) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(150565L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - res.pinDocument().get()); - } - - @Test - public void testPins_Unpin() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("unpin"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - Unpin req = Unpin.builder() - .build(); - - UnpinResponse res = sdk.client().pins().remove() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/PoliciesTests.java b/src/test/java/com/glean/api_client/glean_api_client/PoliciesTests.java deleted file mode 100644 index 104abde0..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/PoliciesTests.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.GetDlpReportResponse; -import com.glean.api_client.glean_api_client.models.components.ListDlpReportsResponse; -import com.glean.api_client.glean_api_client.models.operations.GetpolicyResponse; -import com.glean.api_client.glean_api_client.models.operations.ListpoliciesResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class PoliciesTests { - - @Test - public void testPolicies_Getpolicy() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("getpolicy"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetpolicyResponse res = sdk.client().governance().data().policies().retrieve() - .id("") - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetDlpReportResponse.builder() - .build(), - res.getDlpReportResponse().get()); - } - - @Test - public void testPolicies_Getpolicies() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step getpolicies.test referencing operation getpolicies not found in document`]"); - } - - @Test - public void testPolicies_Createpolicy() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step createpolicy.test referencing operation createpolicy is missing required request body`, `workflow step createpolicy.test contains criterion simple with invalid condition`, `workflow step createpolicy.test does not contain $contentType successCriteria and required for response body assertion`]"); - } - - @Test - public void testPolicies_Downloadpolicycsv() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step downloadpolicycsv.test contains criterion simple with invalid condition`, `workflow step downloadpolicycsv.test does not contain $contentType successCriteria and required for response body assertion`]"); - } - - @Test - public void testPolicies_Listpolicies() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("listpolicies"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ListpoliciesResponse res = sdk.client().governance().data().policies().list() - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - ListDlpReportsResponse.builder() - .build(), - res.listDlpReportsResponse().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/ReportsTests.java b/src/test/java/com/glean/api_client/glean_api_client/ReportsTests.java deleted file mode 100644 index 30f6e5e2..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/ReportsTests.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import java.lang.Exception; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class ReportsTests { - - @Test - public void testReports_Createreport() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step createreport.test referencing operation createreport is missing required request body`, `workflow step createreport.test contains criterion simple with invalid condition`, `workflow step createreport.test does not contain $contentType successCriteria and required for response body assertion`]"); - } - - @Test - public void testReports_Downloadreportcsv() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step downloadreportcsv.test contains criterion simple with invalid condition`, `workflow step downloadreportcsv.test does not contain $contentType successCriteria and required for response body assertion`]"); - } - - @Test - public void testReports_Getreportstatus() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step getreportstatus.test contains criterion simple with invalid condition`, `workflow step getreportstatus.test does not contain $contentType successCriteria and required for response body assertion`]"); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/SearchTests.java b/src/test/java/com/glean/api_client/glean_api_client/SearchTests.java deleted file mode 100644 index 2b3492b5..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/SearchTests.java +++ /dev/null @@ -1,9659 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.Announcement; -import com.glean.api_client.glean_api_client.models.components.Answer; -import com.glean.api_client.glean_api_client.models.components.AnswerBoard; -import com.glean.api_client.glean_api_client.models.components.AnswerLikes; -import com.glean.api_client.glean_api_client.models.components.AuthToken; -import com.glean.api_client.glean_api_client.models.components.AutocompleteRequest; -import com.glean.api_client.glean_api_client.models.components.AutocompleteResult; -import com.glean.api_client.glean_api_client.models.components.AutocompleteResultResultType; -import com.glean.api_client.glean_api_client.models.components.Badge; -import com.glean.api_client.glean_api_client.models.components.CalendarAttendee; -import com.glean.api_client.glean_api_client.models.components.CalendarAttendees; -import com.glean.api_client.glean_api_client.models.components.CalendarEvent; -import com.glean.api_client.glean_api_client.models.components.ChannelInviteInfo; -import com.glean.api_client.glean_api_client.models.components.ClusterGroup; -import com.glean.api_client.glean_api_client.models.components.Code; -import com.glean.api_client.glean_api_client.models.components.CodeLine; -import com.glean.api_client.glean_api_client.models.components.Collection; -import com.glean.api_client.glean_api_client.models.components.CollectionItem; -import com.glean.api_client.glean_api_client.models.components.CollectionItemItemType; -import com.glean.api_client.glean_api_client.models.components.Company; -import com.glean.api_client.glean_api_client.models.components.CustomDataValue; -import com.glean.api_client.glean_api_client.models.components.CustomEntity; -import com.glean.api_client.glean_api_client.models.components.CustomFieldData; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValue; -import com.glean.api_client.glean_api_client.models.components.CustomFieldValueStr; -import com.glean.api_client.glean_api_client.models.components.Customer; -import com.glean.api_client.glean_api_client.models.components.DatasourceProfile; -import com.glean.api_client.glean_api_client.models.components.Document; -import com.glean.api_client.glean_api_client.models.components.DocumentInteractions; -import com.glean.api_client.glean_api_client.models.components.DocumentMetadata; -import com.glean.api_client.glean_api_client.models.components.ErrorMessage; -import com.glean.api_client.glean_api_client.models.components.ExtractedQnA; -import com.glean.api_client.glean_api_client.models.components.FacetBucket; -import com.glean.api_client.glean_api_client.models.components.FacetFilter; -import com.glean.api_client.glean_api_client.models.components.FacetFilterSet; -import com.glean.api_client.glean_api_client.models.components.FacetFilterValue; -import com.glean.api_client.glean_api_client.models.components.FacetResult; -import com.glean.api_client.glean_api_client.models.components.FacetValue; -import com.glean.api_client.glean_api_client.models.components.FeedEntry; -import com.glean.api_client.glean_api_client.models.components.FeedRequest; -import com.glean.api_client.glean_api_client.models.components.FeedResult; -import com.glean.api_client.glean_api_client.models.components.FeedResultCategory; -import com.glean.api_client.glean_api_client.models.components.GeneratedAttachment; -import com.glean.api_client.glean_api_client.models.components.GeneratedAttachmentContent; -import com.glean.api_client.glean_api_client.models.components.GeneratedQna; -import com.glean.api_client.glean_api_client.models.components.GleanDataError; -import com.glean.api_client.glean_api_client.models.components.IconConfig; -import com.glean.api_client.glean_api_client.models.components.IconType; -import com.glean.api_client.glean_api_client.models.components.InviteInfo; -import com.glean.api_client.glean_api_client.models.components.Meeting; -import com.glean.api_client.glean_api_client.models.components.Person; -import com.glean.api_client.glean_api_client.models.components.PersonMetadata; -import com.glean.api_client.glean_api_client.models.components.PersonMetadataType; -import com.glean.api_client.glean_api_client.models.components.PersonToTeamRelationship; -import com.glean.api_client.glean_api_client.models.components.PersonToTeamRelationshipRelationship; -import com.glean.api_client.glean_api_client.models.components.PinDocument; -import com.glean.api_client.glean_api_client.models.components.PromptTemplate; -import com.glean.api_client.glean_api_client.models.components.PromptTemplateResult; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestion; -import com.glean.api_client.glean_api_client.models.components.QuerySuggestionList; -import com.glean.api_client.glean_api_client.models.components.Reaction; -import com.glean.api_client.glean_api_client.models.components.RecommendationsRequest; -import com.glean.api_client.glean_api_client.models.components.RecommendationsRequestOptions; -import com.glean.api_client.glean_api_client.models.components.RelatedDocuments; -import com.glean.api_client.glean_api_client.models.components.RelatedQuestion; -import com.glean.api_client.glean_api_client.models.components.RelationType; -import com.glean.api_client.glean_api_client.models.components.Reminder; -import com.glean.api_client.glean_api_client.models.components.ResultsResponse; -import com.glean.api_client.glean_api_client.models.components.SearchProviderInfo; -import com.glean.api_client.glean_api_client.models.components.SearchRequest; -import com.glean.api_client.glean_api_client.models.components.SearchRequestInputDetails; -import com.glean.api_client.glean_api_client.models.components.SearchRequestOptions; -import com.glean.api_client.glean_api_client.models.components.SearchResponse; -import com.glean.api_client.glean_api_client.models.components.SearchResult; -import com.glean.api_client.glean_api_client.models.components.SearchResultSnippet; -import com.glean.api_client.glean_api_client.models.components.Share; -import com.glean.api_client.glean_api_client.models.components.State; -import com.glean.api_client.glean_api_client.models.components.StructuredLink; -import com.glean.api_client.glean_api_client.models.components.StructuredResult; -import com.glean.api_client.glean_api_client.models.components.StructuredText; -import com.glean.api_client.glean_api_client.models.components.StructuredTextItem; -import com.glean.api_client.glean_api_client.models.components.Team; -import com.glean.api_client.glean_api_client.models.components.TeamStatus; -import com.glean.api_client.glean_api_client.models.components.TextRange; -import com.glean.api_client.glean_api_client.models.components.UserActivity; -import com.glean.api_client.glean_api_client.models.components.UserRole; -import com.glean.api_client.glean_api_client.models.components.UserRoleSpecification; -import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerificationMetadata; -import com.glean.api_client.glean_api_client.models.components.Workflow; -import com.glean.api_client.glean_api_client.models.components.WorkflowResult; -import com.glean.api_client.glean_api_client.models.operations.AdminsearchResponse; -import com.glean.api_client.glean_api_client.models.operations.AutocompleteResponse; -import com.glean.api_client.glean_api_client.models.operations.FeedResponse; -import com.glean.api_client.glean_api_client.models.operations.RecommendationsResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class SearchTests { - - @Test - public void testSearch_Adminsearch() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("adminsearch"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - SearchRequest req = SearchRequest.builder() - .query("vacation policy") - .trackingToken("trackingToken") - .pageSize(10L) - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(254944L) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("article") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("document") - .relationType(RelationType.EQUALS) - .build())) - .build(), - FacetFilter.builder() - .fieldName("department") - .values(List.of( - FacetFilterValue.builder() - .value("engineering") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build()) - .build(); - - AdminsearchResponse res = sdk.client().search().queryAsAdmin() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - SearchResponse.builder() - .trackingToken("trackingToken") - .results(List.of( - SearchResult.builder() - .url("https://www.example.com/") - .title("title") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - SearchResult.builder() - .url("https://www.example.com/") - .title("title") - .build())) - .gleanDataError(GleanDataError.builder() - .errorMessages(List.of( - ErrorMessage.builder() - .source("gmail") - .errorMessage("invalid token") - .build(), - ErrorMessage.builder() - .source("slack") - .errorMessage("expired token") - .build())) - .build()) - .requestID("5e345ae500ff0befa2b9d1a3ba0001737e7363696f312d323535323137000171756572792d656e64706f696e743a323032303031333074313830343032000100") - .facetResults(List.of( - FacetResult.builder() - .sourceName("sourceName") - .operatorName("operatorName") - .buckets(List.of( - FacetBucket.builder() - .count(1L) - .percentage(5L) - .value(FacetValue.builder() - .stringValue("stringValue") - .integerValue(5L) - .build()) - .build(), - FacetBucket.builder() - .count(1L) - .percentage(5L) - .value(FacetValue.builder() - .stringValue("stringValue") - .integerValue(5L) - .build()) - .build())) - .build(), - FacetResult.builder() - .sourceName("sourceName") - .operatorName("operatorName") - .buckets(List.of( - FacetBucket.builder() - .count(1L) - .percentage(5L) - .value(FacetValue.builder() - .stringValue("stringValue") - .integerValue(5L) - .build()) - .build(), - FacetBucket.builder() - .count(1L) - .percentage(5L) - .value(FacetValue.builder() - .stringValue("stringValue") - .integerValue(5L) - .build()) - .build())) - .build())) - .rewrittenFacetFilters(List.of( - FacetFilter.builder() - .fieldName("fieldName") - .values(List.of( - FacetFilterValue.builder() - .build(), - FacetFilterValue.builder() - .build())) - .build(), - FacetFilter.builder() - .fieldName("fieldName") - .values(List.of( - FacetFilterValue.builder() - .build(), - FacetFilterValue.builder() - .build())) - .build())) - .hasMoreResults(true) - .build(), - res.searchResponse().get()); - } - - @Test - public void testSearch_Autocomplete() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("autocomplete"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - AutocompleteRequest req = AutocompleteRequest.builder() - .trackingToken("trackingToken") - .query("San Fra") - .datasource("GDRIVE") - .resultSize(10L) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build(); - - AutocompleteResponse res = sdk.client().search().autocomplete() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - com.glean.api_client.glean_api_client.models.components.AutocompleteResponse.builder() - .trackingToken("trackingToken") - .results(List.of( - AutocompleteResult.builder() - .result("sample result") - .resultType(AutocompleteResultResultType.DOCUMENT) - .score(4.56) - .url("https://www.example.com/") - .trackingToken("abcd") - .build())) - .backendTimeMillis(1100L) - .build(), - res.autocompleteResponse().get()); - } - - @Test - public void testSearch_Feed() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("feed"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - FeedRequest req = FeedRequest.builder() - .build(); - - FeedResponse res = sdk.client().search().retrieveFeed() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - com.glean.api_client.glean_api_client.models.components.FeedResponse.builder() - .serverTimestamp(152670L) - .results(List.of( - FeedResult.builder() - .category(FeedResultCategory.ZERO_STATE_WORKFLOW_FAVORITES) - .primaryEntry(FeedEntry.builder() - .title("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .event(CalendarEvent.builder() - .id("") - .url("https://cultivated-longboat.com") - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .generatedAttachments(List.of( - GeneratedAttachment.builder() - .documents(List.of( - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build(), - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .externalLinks(List.of( - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build(), - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .content(List.of( - GeneratedAttachmentContent.builder() - .displayHeader("Action Items") - .build())) - .build())) - .build()) - .announcement(Announcement.builder() - .draftId(342L) - .build()) - .collection(Collection.builder() - .name("") - .description("toward potentially zealous") - .id(455039L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(31514L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(698671L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .collectionItem(CollectionItem.builder() - .collectionId(250166L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("instead waft bah failing um under out") - .id(230306L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .promptTemplate(PromptTemplateResult.builder() - .promptTemplate(PromptTemplate.builder() - .template("") - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .lastUpdatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .workflow(WorkflowResult.builder() - .workflow(Workflow.builder() - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .lastUpdatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .activities(List.of( - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .secondaryEntries(List.of( - FeedEntry.builder() - .title("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .event(CalendarEvent.builder() - .id("") - .url("https://partial-saw.com") - .attendees(CalendarAttendees.builder() - .build()) - .generatedAttachments(List.of( - GeneratedAttachment.builder() - .documents(List.of( - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build(), - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build(), - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .externalLinks(List.of( - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build(), - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .content(List.of( - GeneratedAttachmentContent.builder() - .displayHeader("Action Items") - .build())) - .build(), - GeneratedAttachment.builder() - .documents(List.of( - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build(), - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build(), - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .externalLinks(List.of( - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build(), - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build(), - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .content(List.of( - GeneratedAttachmentContent.builder() - .displayHeader("Action Items") - .build())) - .build())) - .build()) - .announcement(Announcement.builder() - .draftId(342L) - .build()) - .collection(Collection.builder() - .name("") - .description("management polyester flustered dimly") - .id(301931L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .collectionItem(CollectionItem.builder() - .collectionId(350031L) - .itemType(CollectionItemItemType.COLLECTION) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("deliquesce so where aw peninsula at standard brr failing owlishly") - .id(259619L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .promptTemplate(PromptTemplateResult.builder() - .promptTemplate(PromptTemplate.builder() - .template("") - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .lastUpdatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .workflow(WorkflowResult.builder() - .workflow(Workflow.builder() - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .lastUpdatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .activities(List.of( - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build())) - .build(), - FeedResult.builder() - .category(FeedResultCategory.DISPLAYABLE_LIST) - .primaryEntry(FeedEntry.builder() - .title("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .event(CalendarEvent.builder() - .id("") - .url("https://qualified-plumber.info") - .attendees(CalendarAttendees.builder() - .build()) - .generatedAttachments(List.of( - GeneratedAttachment.builder() - .documents(List.of( - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .externalLinks(List.of( - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build(), - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .content(List.of( - GeneratedAttachmentContent.builder() - .displayHeader("Action Items") - .build())) - .build())) - .build()) - .announcement(Announcement.builder() - .draftId(342L) - .build()) - .collection(Collection.builder() - .name("") - .description("grandiose yowza stale yet sinful mmm") - .id(659387L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .collectionItem(CollectionItem.builder() - .collectionId(460790L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("since jubilantly meanwhile vestment muddy stiff") - .id(507793L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .promptTemplate(PromptTemplateResult.builder() - .promptTemplate(PromptTemplate.builder() - .template("") - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .lastUpdatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .workflow(WorkflowResult.builder() - .workflow(Workflow.builder() - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .lastUpdatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .activities(List.of( - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .secondaryEntries(List.of( - FeedEntry.builder() - .title("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .event(CalendarEvent.builder() - .id("") - .url("https://utter-populist.net") - .attendees(CalendarAttendees.builder() - .build()) - .generatedAttachments(List.of( - GeneratedAttachment.builder() - .documents(List.of( - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .externalLinks(List.of( - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build(), - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build(), - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .content(List.of( - GeneratedAttachmentContent.builder() - .displayHeader("Action Items") - .build())) - .build())) - .build()) - .announcement(Announcement.builder() - .draftId(342L) - .build()) - .collection(Collection.builder() - .name("") - .description("verve however unhealthy delightfully formamide utter redress for finally") - .id(613860L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .collectionItem(CollectionItem.builder() - .collectionId(938484L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("stoop dowse tensely duh atop which any") - .id(761068L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .promptTemplate(PromptTemplateResult.builder() - .promptTemplate(PromptTemplate.builder() - .template("") - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .lastUpdatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .workflow(WorkflowResult.builder() - .workflow(Workflow.builder() - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .lastUpdatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .activities(List.of( - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build(), - FeedEntry.builder() - .title("") - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .event(CalendarEvent.builder() - .id("") - .url("https://babyish-quinoa.name/") - .attendees(CalendarAttendees.builder() - .build()) - .generatedAttachments(List.of( - GeneratedAttachment.builder() - .documents(List.of( - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build(), - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build(), - Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build())) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .notes("CIO is interested in trying out the product.") - .build()) - .externalLinks(List.of( - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build(), - StructuredLink.builder() - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .content(List.of( - GeneratedAttachmentContent.builder() - .displayHeader("Action Items") - .build())) - .build())) - .build()) - .announcement(Announcement.builder() - .draftId(342L) - .build()) - .collection(Collection.builder() - .name("") - .description("unearth grubby bathrobe instead brr soupy") - .id(591260L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .collectionItem(CollectionItem.builder() - .collectionId(946419L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("name") - .obfuscatedId("") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("awkwardly given whoever curiously around jump or") - .id(206282L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .promptTemplate(PromptTemplateResult.builder() - .promptTemplate(PromptTemplate.builder() - .template("") - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .lastUpdatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build()) - .build()) - .workflow(WorkflowResult.builder() - .workflow(Workflow.builder() - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .lastUpdatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build()) - .build()) - .activities(List.of( - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build(), - UserActivity.builder() - .actor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .build())) - .build())) - .build())) - .facetResults(Map.ofEntries( - Map.entry("key", List.of( - FacetResult.builder() - .sourceName("container_name") - .operatorName("SelectMultiple") - .buckets(List.of( - FacetBucket.builder() - .count(1L) - .datasource("jira") - .percentage(5L) - .value(FacetValue.builder() - .stringValue("engineering") - .integerValue(5L) - .displayLabel("engineering") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build(), - FacetBucket.builder() - .count(1L) - .datasource("jira") - .percentage(5L) - .value(FacetValue.builder() - .stringValue("engineering") - .integerValue(5L) - .displayLabel("engineering") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build(), - FacetBucket.builder() - .count(1L) - .datasource("jira") - .percentage(5L) - .value(FacetValue.builder() - .stringValue("engineering") - .integerValue(5L) - .displayLabel("engineering") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build()) - .build())) - .hasMoreBuckets(false) - .groupName("Service Cloud") - .build())))) - .build(), - res.feedResponse().get()); - } - - @Test - public void testSearch_Peoplesuggest() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step peoplesuggest.test referencing operation peoplesuggest not found in document`]"); - } - - @Test - public void testSearch_Peoplesuggestadmin() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step peoplesuggestadmin.test referencing operation peoplesuggestadmin not found in document`]"); - } - - @Test - public void testSearch_Recommendations() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("recommendations"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - RecommendationsRequest req = RecommendationsRequest.builder() - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(236211L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(818990L) - .build(), - TextRange.builder() - .startIndex(38651L) - .build(), - TextRange.builder() - .startIndex(996660L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(485964L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(793380L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .mentionedPeople(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("rust whisper oh in seagull") - .id(532535L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(354858L) - .itemType(CollectionItemItemType.URL) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("physical queasily provision towards frightfully meh") - .id(452218L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Collection.builder() - .name("") - .description("mmm crushing playfully feminize") - .id(498098L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(578719L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Share.builder() - .numDaysAgo(450275L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(821135L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(986764L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .pageSize(100L) - .maxSnippetSize(400L) - .requestOptions(RecommendationsRequestOptions.builder() - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .context(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(518835L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .build(); - - RecommendationsResponse res = sdk.client().search().recommendations() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - ResultsResponse.builder() - .results(List.of( - SearchResult.builder() - .url("https://example.com/foo/bar") - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build())) - .structuredResults(List.of( - StructuredResult.builder() - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .relatedDocuments(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(257594L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(538524L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(650257L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .displayable(true) - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .mentionedPeople(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .pins(List.of( - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - PinDocument.builder() - .documentId("") - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .attribution(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("dusk entwine cease than materialise whenever fireplace eek") - .id(71727L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(102105L) - .itemType(CollectionItemItemType.COLLECTION) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(515424L) - .itemType(CollectionItemItemType.DOCUMENT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - CollectionItem.builder() - .collectionId(330168L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.OWNER) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(364853L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Share.builder() - .numDaysAgo(533353L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Share.builder() - .numDaysAgo(82419L) - .sharer(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(606221L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(33153L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(624169L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(535774L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .customer(Customer.builder() - .id("") - .company(Company.builder() - .name("") - .location("New York City") - .industry("Finances") - .about("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City") - .build()) - .poc(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .notes("CIO is interested in trying out the product.") - .build()) - .team(Team.builder() - .id("") - .name("") - .members(List.of( - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .relationship(PersonToTeamRelationshipRelationship.MEMBER) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .relationship(PersonToTeamRelationshipRelationship.MEMBER) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .status(TeamStatus.PROCESSED) - .canBeDeleted(true) - .build()) - .customEntity(CustomEntity.builder() - .build()) - .answer(Answer.builder() - .id(3L) - .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(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .combinedAnswerText(StructuredText.builder() - .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(List.of( - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(962229L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build(), - StructuredTextItem.builder() - .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(395713L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .text("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue.") - .build())) - .build()) - .likes(AnswerLikes.builder() - .likedBy(List.of()) - .likedByUser(false) - .numLikes(297770L) - .build()) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(752324L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .board(AnswerBoard.builder() - .name("") - .description("adventurously notwithstanding canter generously tenderly helpfully front schnitzel") - .id(324124L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .sourceDocument(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(912614L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(565417L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .title("title") - .nativeAppUrl("slack://foo/bar") - .relatedResults(List.of( - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(358317L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(116602L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build(), - RelatedDocuments.builder() - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(975675L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) - .allClusteredResults(List.of( - ClusterGroup.builder() - .visibleCountHint(49580L) - .build(), - ClusterGroup.builder() - .visibleCountHint(242509L) - .build(), - ClusterGroup.builder() - .visibleCountHint(812000L) - .build())) - .mustIncludeSuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .querySuggestion(QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .searchProviderInfo(SearchProviderInfo.builder() - .name("Google") - .searchLinkUrlTemplate("https://www.google.com/search?q={query}&hl=en") - .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(952650L) - .datasourceFilter("JIRA") - .datasourcesFilter(List.of( - "JIRA")) - .queryOverridesFacetFilters(true) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") - .build())) - .build()) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build()) - .build()) - .meeting(Meeting.builder() - .attendees(CalendarAttendees.builder() - .people(List.of( - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build(), - CalendarAttendee.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("furthermore hence formal tune flowery aside the schedule witty") - .id(965L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .answerBoard(AnswerBoard.builder() - .name("") - .description("fess um whoa times boohoo down") - .id(762536L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .creator(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .lines(List.of( - CodeLine.builder() - .build(), - CodeLine.builder() - .build(), - CodeLine.builder() - .build())) - .build()) - .querySuggestions(QuerySuggestionList.builder() - .person(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .relatedQuestion(RelatedQuestion.builder() - .build()) - .build())) - .generatedQnaResult(GeneratedQna.builder() - .ranges(List.of( - TextRange.builder() - .startIndex(389859L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(916413L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(63382L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(928524L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(466270L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") - .mimeType("mimeType") - .documentId("documentId") - .createTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .updateTime(OffsetDateTime.parse("2000-01-23T04:56:07.000Z")) - .author(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .owner(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .updatedBy(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .interactions(DocumentInteractions.builder() - .build()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .remindAt(569654L) - .requestor(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .build()) - .inviteInfo(InviteInfo.builder() - .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build()) - .build()) - .build())) - .build()) - .backendTimeMillis(1100L) - .build(), - res.resultsResponse().get()); - } - - @Test - public void testSearch_Search() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("search"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - SearchRequest req = SearchRequest.builder() - .query("vacation policy") - .trackingToken("trackingToken") - .pageSize(10L) - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(246815L) - .facetFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("article") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("document") - .relationType(RelationType.EQUALS) - .build())) - .build(), - FacetFilter.builder() - .fieldName("department") - .values(List.of( - FacetFilterValue.builder() - .value("engineering") - .relationType(RelationType.EQUALS) - .build())) - .build())) - .build()) - .build(); - - com.glean.api_client.glean_api_client.models.operations.SearchResponse res = sdk.client().search().query() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - SearchResponse.builder() - .trackingToken("trackingToken") - .results(List.of( - SearchResult.builder() - .url("https://www.example.com/") - .title("title") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .build(), - SearchResult.builder() - .url("https://www.example.com/") - .title("title") - .build())) - .gleanDataError(GleanDataError.builder() - .errorMessages(List.of( - ErrorMessage.builder() - .source("gmail") - .errorMessage("invalid token") - .build(), - ErrorMessage.builder() - .source("slack") - .errorMessage("expired token") - .build())) - .build()) - .requestID("5e345ae500ff0befa2b9d1a3ba0001737e7363696f312d323535323137000171756572792d656e64706f696e743a323032303031333074313830343032000100") - .facetResults(List.of( - FacetResult.builder() - .sourceName("sourceName") - .operatorName("operatorName") - .buckets(List.of( - FacetBucket.builder() - .count(1L) - .percentage(5L) - .value(FacetValue.builder() - .stringValue("stringValue") - .integerValue(5L) - .build()) - .build(), - FacetBucket.builder() - .count(1L) - .percentage(5L) - .value(FacetValue.builder() - .stringValue("stringValue") - .integerValue(5L) - .build()) - .build())) - .build(), - FacetResult.builder() - .sourceName("sourceName") - .operatorName("operatorName") - .buckets(List.of( - FacetBucket.builder() - .count(1L) - .percentage(5L) - .value(FacetValue.builder() - .stringValue("stringValue") - .integerValue(5L) - .build()) - .build(), - FacetBucket.builder() - .count(1L) - .percentage(5L) - .value(FacetValue.builder() - .stringValue("stringValue") - .integerValue(5L) - .build()) - .build())) - .build())) - .rewrittenFacetFilters(List.of( - FacetFilter.builder() - .fieldName("fieldName") - .values(List.of( - FacetFilterValue.builder() - .build(), - FacetFilterValue.builder() - .build())) - .build(), - FacetFilter.builder() - .fieldName("fieldName") - .values(List.of( - FacetFilterValue.builder() - .build(), - FacetFilterValue.builder() - .build())) - .build())) - .hasMoreResults(true) - .build(), - res.searchResponse().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/SummarizeTests.java b/src/test/java/com/glean/api_client/glean_api_client/SummarizeTests.java deleted file mode 100644 index fa5414dc..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/SummarizeTests.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.DocumentSpec3; -import com.glean.api_client.glean_api_client.models.components.DocumentSpec4; -import com.glean.api_client.glean_api_client.models.components.DocumentSpecUgcType1; -import com.glean.api_client.glean_api_client.models.components.DocumentSpecUgcType2; -import com.glean.api_client.glean_api_client.models.components.DocumentSpecUnion; -import com.glean.api_client.glean_api_client.models.components.SummarizeRequest; -import com.glean.api_client.glean_api_client.models.operations.SummarizeResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.util.List; -import org.junit.jupiter.api.Test; - -public class SummarizeTests { - - @Test - public void testSummarize_Summarize() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("summarize"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - SummarizeRequest req = SummarizeRequest.builder() - .documentSpecs(List.of( - DocumentSpecUnion.of(DocumentSpec3.builder() - .ugcType(DocumentSpecUgcType1.ANNOUNCEMENTS) - .contentId(848009L) - .build()), - DocumentSpecUnion.of(DocumentSpec4.builder() - .ugcType(DocumentSpecUgcType2.COLLECTIONS) - .ugcId("") - .build()))) - .build(); - - SummarizeResponse res = sdk.client().documents().summarize() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - com.glean.api_client.glean_api_client.models.components.SummarizeResponse.builder() - .build(), - res.summarizeResponse().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/ToolsTests.java b/src/test/java/com/glean/api_client/glean_api_client/ToolsTests.java deleted file mode 100644 index 4a30f3ef..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/ToolsTests.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.ToolsCallParameter; -import com.glean.api_client.glean_api_client.models.components.ToolsCallRequest; -import com.glean.api_client.glean_api_client.models.components.ToolsCallResponse; -import com.glean.api_client.glean_api_client.models.components.ToolsListResponse; -import com.glean.api_client.glean_api_client.models.operations.GetRestApiV1ToolsListResponse; -import com.glean.api_client.glean_api_client.models.operations.PostRestApiV1ToolsCallResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import java.util.Map; -import org.junit.jupiter.api.Test; - -public class ToolsTests { - - @Test - public void testTools_GetRestApiV1ToolsList() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("get_/rest/api/v1/tools/list"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetRestApiV1ToolsListResponse res = sdk.client().tools().list() - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - ToolsListResponse.builder() - .build(), - res.toolsListResponse().get()); - } - - @Test - public void testTools_PostRestApiV1ToolsCall() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/rest/api/v1/tools/call"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - ToolsCallRequest req = ToolsCallRequest.builder() - .name("") - .parameters(Map.ofEntries( - Map.entry("key", ToolsCallParameter.builder() - .name("") - .value("") - .build()))) - .build(); - - PostRestApiV1ToolsCallResponse res = sdk.client().tools().run() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - ToolsCallResponse.builder() - .build(), - res.toolsCallResponse().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/TroubleshootingTests.java b/src/test/java/com/glean/api_client/glean_api_client/TroubleshootingTests.java deleted file mode 100644 index 68568530..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/TroubleshootingTests.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.glean.api_client.glean_api_client.models.components.CheckDocumentAccessRequest; -import com.glean.api_client.glean_api_client.models.components.CheckDocumentAccessResponse; -import com.glean.api_client.glean_api_client.models.components.GetDocumentCountRequest; -import com.glean.api_client.glean_api_client.models.components.GetDocumentCountResponse; -import com.glean.api_client.glean_api_client.models.components.GetDocumentStatusRequest; -import com.glean.api_client.glean_api_client.models.components.GetDocumentStatusResponse; -import com.glean.api_client.glean_api_client.models.components.GetUserCountRequest; -import com.glean.api_client.glean_api_client.models.components.GetUserCountResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1CheckdocumentaccessResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1GetdocumentcountResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1GetdocumentstatusResponse; -import com.glean.api_client.glean_api_client.models.operations.PostApiIndexV1GetusercountResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.lang.Exception; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class TroubleshootingTests { - - @Test - public void testTroubleshooting_PostApiIndexV1DebugDatasourceStatus() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step post_/api/index/v1/debug/{datasource}/status.test contains criterion simple with invalid condition`, `workflow step post_/api/index/v1/debug/{datasource}/status.test does not contain $contentType successCriteria and required for response body assertion`]"); - } - - @Test - public void testTroubleshooting_PostApiIndexV1Checkdocumentaccess() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/checkdocumentaccess"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - CheckDocumentAccessRequest req = CheckDocumentAccessRequest.builder() - .datasource("") - .objectType("") - .docId("") - .userEmail("") - .build(); - - PostApiIndexV1CheckdocumentaccessResponse res = sdk.indexing().documents().checkAccess() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - CheckDocumentAccessResponse.builder() - .build(), - res.checkDocumentAccessResponse().get()); - } - - @Test - public void testTroubleshooting_PostApiIndexV1Getdocumentstatus() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/getdocumentstatus"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetDocumentStatusRequest req = GetDocumentStatusRequest.builder() - .datasource("") - .objectType("") - .docId("") - .build(); - - PostApiIndexV1GetdocumentstatusResponse res = sdk.indexing().documents().status() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetDocumentStatusResponse.builder() - .build(), - res.getDocumentStatusResponse().get()); - } - - @Test - public void testTroubleshooting_PostApiIndexV1Getdocumentcount() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/getdocumentcount"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetDocumentCountRequest req = GetDocumentCountRequest.builder() - .datasource("") - .build(); - - PostApiIndexV1GetdocumentcountResponse res = sdk.indexing().documents().count() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetDocumentCountResponse.builder() - .build(), - res.getDocumentCountResponse().get()); - } - - @Test - public void testTroubleshooting_PostApiIndexV1Getusercount() throws Exception { - - var testHttpClient = Utils.createTestHTTPClient("post_/api/index/v1/getusercount"); - Glean sdk = Glean.builder() - .serverURL(Utils.environmentVariable("TEST_SERVER_URL", "http://localhost:18080")) - .client(testHttpClient) - .apiToken("x-env: GLEAN_API_TOKEN") - .build(); - - GetUserCountRequest req = GetUserCountRequest.builder() - .datasource("") - .build(); - - PostApiIndexV1GetusercountResponse res = sdk.indexing().people().count() - .request(req) - .call(); - assertEquals(200, res.statusCode()); - assertEquals( - GetUserCountResponse.builder() - .build(), - res.getUserCountResponse().get()); - } -} \ No newline at end of file diff --git a/src/test/java/com/glean/api_client/glean_api_client/VisibilityoverridesTests.java b/src/test/java/com/glean/api_client/glean_api_client/VisibilityoverridesTests.java deleted file mode 100644 index ff0d1e29..00000000 --- a/src/test/java/com/glean/api_client/glean_api_client/VisibilityoverridesTests.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.glean.api_client.glean_api_client; - -import java.lang.Exception; -import org.junit.jupiter.api.Assumptions; -import org.junit.jupiter.api.Test; - -public class VisibilityoverridesTests { - - @Test - public void testVisibilityoverrides_Getdocvisibility() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step getdocvisibility.test contains criterion simple with invalid condition`, `workflow step getdocvisibility.test does not contain $contentType successCriteria and required for response body assertion`]"); - } - - @Test - public void testVisibilityoverrides_Setdocvisibility() throws Exception { - Assumptions.assumeTrue(false, "incomplete test found please make sure to address the following errors: [`workflow step setdocvisibility.test referencing operation setdocvisibility is missing required request body`, `workflow step setdocvisibility.test contains criterion simple with invalid condition`, `workflow step setdocvisibility.test does not contain $contentType successCriteria and required for response body assertion`]"); - } -} \ No newline at end of file diff --git a/tests/mockserver/.gitignore b/tests/mockserver/.gitignore deleted file mode 100644 index 9544318b..00000000 --- a/tests/mockserver/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_debug diff --git a/tests/mockserver/Dockerfile b/tests/mockserver/Dockerfile deleted file mode 100644 index efdea18c..00000000 --- a/tests/mockserver/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM golang:1.23 - -WORKDIR /usr/src/app - -COPY go.mod go.sum ./ -RUN go mod download && go mod verify -COPY . . -COPY *testdata /usr/local/bin/testdata -RUN go build -v -o /usr/local/bin/mockserver . -EXPOSE 18080 -ENTRYPOINT ["mockserver"] diff --git a/tests/mockserver/Makefile b/tests/mockserver/Makefile deleted file mode 100644 index 2ae6a36c..00000000 --- a/tests/mockserver/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -.PHONY: start - -start: - @if command -v docker >/dev/null 2>&1; then \ - echo "Starting mock server with Docker..."; \ - docker build -t mockserver . && \ - docker run -i -p 18080:18080 -t --rm mockserver; \ - elif command -v go >/dev/null 2>&1; then \ - echo "Docker not found. Starting mock server with Go..."; \ - go run .; \ - else \ - echo "Neither Docker nor Go found. To run the mock server:"; \ - echo "\nOption 1 - Using Docker:"; \ - echo " docker build -t mockserver ."; \ - echo " docker run -i -p 18080:18080 -t --rm mockserver"; \ - echo "\nOption 2 - Using Go:"; \ - echo " go run ."; \ - fi diff --git a/tests/mockserver/README.md b/tests/mockserver/README.md deleted file mode 100644 index c8424fd3..00000000 --- a/tests/mockserver/README.md +++ /dev/null @@ -1,52 +0,0 @@ -# Mock Server - -A generated HTTP mock server based on your OpenAPI Specification (OAS). Use this mock server for integration and contract testing. - -## Usage - -The server can be built and started via the [Go programming language toolchain](https://go.dev/) or [Docker](https://www.docker.com/). - -If you have Go installed, start the server directly via: - -```shell -go run . -``` - -Otherwise, if you have Docker installed, build and run the server via: - -```shell -docker build -t mockserver . -docker run -i -p 18080:18080 -t --rm mockserver -``` - -By default, the server runs on port `18080`. - -### Server Paths - -The server contains generated paths from the OAS and the following additional built-in paths. - -| Path | Description | -|---|---| -| [`/_mockserver/health`](https://localhost:18080/_mockserver/health) | verify server is running | -| [`/_mockserver/log`](https://localhost:18080/_mockserver/log) | view per-OAS-operation logs | - -Any request outside the generated and built-in paths will return a `404 Not Found` response. - -### Server Customization - -The server supports the following flags for customization. - -| Flag | Default | Description | -|---|---|---| -| `-address` | `:18080` | server listen address | -| `-log-format` | `text` | logging format (supported: `JSON`, `text`) | -| `-log-level` | `INFO` | logging level (supported: `DEBUG`, `INFO`, `WARN`, `ERROR`) | - -For example, enabling server debug logging: - -```shell -# via `go run` -go run . -log-level=DEBUG -# via `docker run` -docker run -i -p 18080:18080 -t --rm mockserver -log-level=DEBUG -``` diff --git a/tests/mockserver/go.mod b/tests/mockserver/go.mod deleted file mode 100644 index 38b2d5e8..00000000 --- a/tests/mockserver/go.mod +++ /dev/null @@ -1,15 +0,0 @@ -module mockserver - -go 1.22 - -require ( - github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 - github.com/go-pkgz/expirable-cache/v3 v3.0.0 - github.com/gorilla/mux v1.8.1 -) - -require ( - github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect - github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect - github.com/stretchr/testify v1.9.0 // indirect -) diff --git a/tests/mockserver/go.sum b/tests/mockserver/go.sum deleted file mode 100644 index fa86a5fc..00000000 --- a/tests/mockserver/go.sum +++ /dev/null @@ -1,16 +0,0 @@ -github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= -github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05 h1:S92OBrGuLLZsyM5ybUzgc/mPjIYk2AZqufieooe98uw= -github.com/ericlagergren/decimal v0.0.0-20221120152707-495c53812d05/go.mod h1:M9R1FoZ3y//hwwnJtO51ypFGwm8ZfpxPT/ZLtO1mcgQ= -github.com/go-pkgz/expirable-cache/v3 v3.0.0 h1:u3/gcu3sabLYiTCevoRKv+WzjIn5oo7P8XtiXBeRDLw= -github.com/go-pkgz/expirable-cache/v3 v3.0.0/go.mod h1:2OQiDyEGQalYecLWmXprm3maPXeVb5/6/X7yRPYTzec= -github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= -github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= -github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k= -github.com/hashicorp/golang-lru/v2 v2.0.7/go.mod h1:QeFd9opnmA6QUJc5vARoKUSoFhyfM2/ZepoAG6RGpeM= -github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= -github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/tests/mockserver/internal/handler/assert/contenttype.go b/tests/mockserver/internal/handler/assert/contenttype.go deleted file mode 100644 index 42afbd06..00000000 --- a/tests/mockserver/internal/handler/assert/contenttype.go +++ /dev/null @@ -1,99 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package assert - -import ( - "fmt" - "mime" - "net/http" - "strings" -) - -func ContentType(req *http.Request, expected string, isRequired bool) error { - got := req.Header.Get("Content-Type") - - if got == "" { - if isRequired { - return fmt.Errorf("expected Content-Type to be set, got: %s", got) - } - return nil - } - - mimeType, _, err := mime.ParseMediaType(got) - if err != nil { - return fmt.Errorf("got Content-Type %s is invalid: %w", got, err) - } - - expectedMimeType, _, err := mime.ParseMediaType(expected) - if err != nil { - return fmt.Errorf("expected Content-Type %s is invalid: %w", expected, err) - } - - if mimeType != expectedMimeType { - return fmt.Errorf( - "expected Content-Type to be %s, got: %s", - expected, - got, - ) - } - - return nil -} - -func AcceptHeader(req *http.Request, expectedValues []string) error { - if len(expectedValues) == 0 { - return nil - } - - gotAccept := req.Header.Get("Accept") - - gotValues := strings.Split(gotAccept, ",") - - for i, gotValue := range gotValues { - mimeType := strings.Split(strings.TrimSpace(gotValue), ";")[0] - - gotMimeType, _, err := mime.ParseMediaType(mimeType) - if err != nil { - return fmt.Errorf("got Accept value %s is invalid: %w", gotValue, err) - } - - gotValues[i] = gotMimeType - } - - allFound := true - - parsedExpectedValues := make([]string, len(expectedValues)) - - for i, expected := range expectedValues { - mimeType := strings.Split(expected, ";")[0] - - expectedMimeType, _, err := mime.ParseMediaType(mimeType) - if err != nil { - return fmt.Errorf("expected Accept value %s is invalid: %w", expected, err) - } - - parsedExpectedValues[i] = expectedMimeType - } - - for _, gotValue := range gotValues { - found := false - - for _, expected := range parsedExpectedValues { - if expected == gotValue { - found = true - break - } - } - - if !found { - allFound = false - break - } - } - - if !allFound { - return fmt.Errorf("expected Accept value to be one of %s, got: %s", strings.Join(parsedExpectedValues, ", "), gotAccept) - } - - return nil -} diff --git a/tests/mockserver/internal/handler/assert/header.go b/tests/mockserver/internal/handler/assert/header.go deleted file mode 100644 index 50f910d9..00000000 --- a/tests/mockserver/internal/handler/assert/header.go +++ /dev/null @@ -1,70 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package assert - -import ( - "fmt" - "net/http" -) - -// HeaderExists generically verifies the given request header name exists with -// a single, non-empty value. If an unexpected value is found, it will return an -// error with a diagnostic text body and which should cause the handler to return -// immediately. -func HeaderExists(req *http.Request, name string) error { - values := req.Header.Values(name) - - if len(values) == 0 { - return fmt.Errorf("missing expected header %s", name) - } - - if len(values) > 1 { - return fmt.Errorf("expected single header for %s, got %d values", name, len(values)) - } - - got := values[0] - - if got == "" { - return fmt.Errorf("expected non-empty header %s", name) - } - - return nil -} - -// HeaderValues generically verifies the given request header name has the -// expected values. If an unexpected value is found, it will return an error -// with a diagnostic text body and which should cause the handler to return -// immediately. -func HeaderValues(req *http.Request, name string, expected []string) error { - got := req.Header.Values(name) - - if len(got) == 0 { - return fmt.Errorf( - "missing expected header %s which should be %v", - name, - expected, - ) - } - - if len(got) != len(expected) { - return fmt.Errorf( - "expected header %s to be %v, got: %v", - name, - expected, - got, - ) - } - - for index, expectedValue := range expected { - if got[index] != expectedValue { - return fmt.Errorf( - "expected header %s to be %v, got: %v", - name, - expected, - got, - ) - } - } - - return nil -} diff --git a/tests/mockserver/internal/handler/assert/parameter.go b/tests/mockserver/internal/handler/assert/parameter.go deleted file mode 100644 index f8a5e45a..00000000 --- a/tests/mockserver/internal/handler/assert/parameter.go +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package assert - -import ( - "fmt" - "net/http" - "net/url" -) - -// ParameterHeaderValues verifies the request header parameter key has the -// expected multiple values. If an unexpected value is found, it will return an -// error with a diagnostic text body and which should cause the handler to -// return immediately. -func ParameterHeaderValues(req *http.Request, key string, expected []string) error { - got := req.Header.Values(key) - - if len(got) == 0 { - return fmt.Errorf( - "missing expected header parameter %s which should be %v", - key, - expected, - ) - } - - if len(got) != len(expected) { - return fmt.Errorf( - "expected header parameter %s to be %s, got: %v", - key, - expected, - got, - ) - } - - for index, expectedValue := range expected { - if got[index] != expectedValue { - return fmt.Errorf( - "expected header parameter %s to be %v, got: %v", - key, - expected, - got, - ) - } - } - - return nil -} - -// ParameterPathValue verifies the request path parameter key has the expected -// value. If an unexpected value is found, it will return an error with -// a diagnostic text body and which should cause the handler to -// return immediately. -func ParameterPathValue(req *http.Request, key string, expected string) error { - got := req.PathValue(key) - - if got != expected { - return fmt.Errorf( - "expected path parameter %s to be %s, got: %s", - key, - expected, - got, - ) - } - - return nil -} - -// ParameterQueryValues verifies the request query parameter key has the -// expected multiple values. If an unexpected value is found, it will return an -// error with a diagnostic text body and which should cause the handler to -// return immediately. -func ParameterQueryValues(req *http.Request, key string, expected []string) error { - queryValues, err := url.ParseQuery(req.URL.RawQuery) - - if err != nil { - return fmt.Errorf("error parsing query parameters: %w", err) - } - - got, ok := queryValues[key] - - if !ok || len(got) == 0 { - return fmt.Errorf( - "missing expected query parameter %s which should be %v", - key, - expected, - ) - } - - if len(got) != len(expected) { - return fmt.Errorf( - "expected query parameter %s to be %s, got: %v", - key, - expected, - got, - ) - } - - for index, expectedValue := range expected { - if got[index] != expectedValue { - return fmt.Errorf( - "expected query parameter %s to be %v, got: %v", - key, - expected, - got, - ) - } - } - - return nil -} diff --git a/tests/mockserver/internal/handler/assert/pointer.go b/tests/mockserver/internal/handler/assert/pointer.go deleted file mode 100644 index fa03e4c8..00000000 --- a/tests/mockserver/internal/handler/assert/pointer.go +++ /dev/null @@ -1,12 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package assert - -// Pointer returns a pointer to the given value. -// -// This is intended to simplify inline builtin value expressions that are not -// implemented in the Go language specification, such as a hypothetical -// &"example". -func Pointer[T any](v T) *T { - return &v -} diff --git a/tests/mockserver/internal/handler/assert/security.go b/tests/mockserver/internal/handler/assert/security.go deleted file mode 100644 index 7d0a714a..00000000 --- a/tests/mockserver/internal/handler/assert/security.go +++ /dev/null @@ -1,75 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package assert - -import ( - "errors" - "fmt" - "net/http" - "strings" -) - -// SecurityAuthorizationHeader verifies the request security Authorization -// header is present and has the expected HTTP Authorization scheme with a value -// if required. If a missing value or multiple values are found, it will -// return an error with a diagnostic text body and which should cause the -// handler to return immediately. -func SecurityAuthorizationHeader(req *http.Request, optional bool, httpAuthorizationScheme string) error { - values := req.Header.Values("Authorization") - - if len(values) == 0 { - if optional { - return nil - } - - return errors.New("missing expected Authorization header") - } - - if len(values) > 1 { - return fmt.Errorf("expected single Authorization header, got %d values", len(values)) - } - - got := values[0] - - if got == "" { - // Should return error, even if optional, as that represents an errant - // client implementation. - return errors.New("expected non-empty Authorization header") - } - - if httpAuthorizationScheme != "" && !strings.HasPrefix(got, httpAuthorizationScheme+" ") { - return fmt.Errorf("expected HTTP Authorization scheme %s, got: %s", httpAuthorizationScheme, got) - } - - return nil -} - -// SecurityHeader verifies the request security header name is present and has -// a value if required. If a missing value or multiple values are found, it will -// return an error with a diagnostic text body and which should cause the -// handler to return immediately. -func SecurityHeader(req *http.Request, name string, optional bool) error { - values := req.Header.Values(name) - - if len(values) == 0 { - if optional { - return nil - } - - return fmt.Errorf("missing expected security header %s", name) - } - - if len(values) > 1 { - return fmt.Errorf("expected single security header for %s, got %d values", name, len(values)) - } - - got := values[0] - - if got == "" { - // Should return error, even if optional, as that represents an errant - // client implementation. - return fmt.Errorf("expected non-empty security header %s", name) - } - - return nil -} diff --git a/tests/mockserver/internal/handler/doc.go b/tests/mockserver/internal/handler/doc.go deleted file mode 100644 index a4e60c89..00000000 --- a/tests/mockserver/internal/handler/doc.go +++ /dev/null @@ -1,5 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -// Package handlers contains all generated HTTP handlers for the server. They -// are listed via the generated GeneratedHandlers() function. -package handler diff --git a/tests/mockserver/internal/handler/generated_handler.go b/tests/mockserver/internal/handler/generated_handler.go deleted file mode 100644 index 929558ef..00000000 --- a/tests/mockserver/internal/handler/generated_handler.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "context" - "net/http" -) - -// GeneratedHandler is the type that encapsulates a generated handler. -type GeneratedHandler struct { - // HTTP request handler function. - handlerFunc http.HandlerFunc - - // HTTP method, such as GET. - Method string - - // URL path, such as /path. - Path string -} - -// NewGeneratedHandler creates a generated handler via method, path, and handler -// function. -func NewGeneratedHandler(ctx context.Context, method string, path string, handlerFunc http.HandlerFunc) *GeneratedHandler { - return &GeneratedHandler{ - handlerFunc: handlerFunc, - Method: method, - Path: path, - } -} - -// HandlerFunc returns the underlying HTTP handler function. -func (h GeneratedHandler) HandlerFunc() http.HandlerFunc { - return h.handlerFunc -} diff --git a/tests/mockserver/internal/handler/generated_handlers.go b/tests/mockserver/internal/handler/generated_handlers.go deleted file mode 100644 index 7ad7aaa9..00000000 --- a/tests/mockserver/internal/handler/generated_handlers.go +++ /dev/null @@ -1,100 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "context" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -// GeneratedHandlers returns all generated handlers. -func GeneratedHandlers(ctx context.Context, dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) []*GeneratedHandler { - return []*GeneratedHandler{ - NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/agents/{agent_id}", pathGetRestAPIV1AgentsAgentID(dir, rt)), - NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/agents/{agent_id}/schemas", pathGetRestAPIV1AgentsAgentIDSchemas(dir, rt)), - NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/governance/data/policies", pathGetRestAPIV1GovernanceDataPolicies(dir, rt)), - NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/governance/data/policies/{id}", pathGetRestAPIV1GovernanceDataPoliciesID(dir, rt)), - NewGeneratedHandler(ctx, http.MethodGet, "/rest/api/v1/tools/list", pathGetRestAPIV1ToolsList(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/adddatasource", pathPostAPIIndexV1Adddatasource(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/betausers", pathPostAPIIndexV1Betausers(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/bulkindexdocuments", pathPostAPIIndexV1Bulkindexdocuments(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/bulkindexgroups", pathPostAPIIndexV1Bulkindexgroups(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/bulkindexmemberships", pathPostAPIIndexV1Bulkindexmemberships(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/bulkindexusers", pathPostAPIIndexV1Bulkindexusers(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/checkdocumentaccess", pathPostAPIIndexV1Checkdocumentaccess(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/deletedocument", pathPostAPIIndexV1Deletedocument(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/deletegroup", pathPostAPIIndexV1Deletegroup(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/deletemembership", pathPostAPIIndexV1Deletemembership(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/deleteuser", pathPostAPIIndexV1Deleteuser(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/getdatasourceconfig", pathPostAPIIndexV1Getdatasourceconfig(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/getdocumentcount", pathPostAPIIndexV1Getdocumentcount(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/getdocumentstatus", pathPostAPIIndexV1Getdocumentstatus(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/getusercount", pathPostAPIIndexV1Getusercount(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/indexdocument", pathPostAPIIndexV1Indexdocument(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/indexdocuments", pathPostAPIIndexV1Indexdocuments(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/indexgroup", pathPostAPIIndexV1Indexgroup(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/indexmembership", pathPostAPIIndexV1Indexmembership(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/indexuser", pathPostAPIIndexV1Indexuser(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/processalldocuments", pathPostAPIIndexV1Processalldocuments(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/processallemployeesandteams", pathPostAPIIndexV1Processallemployeesandteams(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/processallmemberships", pathPostAPIIndexV1Processallmemberships(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/rotatetoken", pathPostAPIIndexV1Rotatetoken(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/api/index/v1/updatepermissions", pathPostAPIIndexV1Updatepermissions(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/activity", pathPostRestAPIV1Activity(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/addcollectionitems", pathPostRestAPIV1Addcollectionitems(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/addverificationreminder", pathPostRestAPIV1Addverificationreminder(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/adminsearch", pathPostRestAPIV1Adminsearch(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/autocomplete", pathPostRestAPIV1Autocomplete(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/chat", pathPostRestAPIV1Chat(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/createannouncement", pathPostRestAPIV1Createannouncement(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/createanswer", pathPostRestAPIV1Createanswer(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/createauthtoken", pathPostRestAPIV1Createauthtoken(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/createcollection", pathPostRestAPIV1Createcollection(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/createshortcut", pathPostRestAPIV1Createshortcut(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/deleteallchats", pathPostRestAPIV1Deleteallchats(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/deleteannouncement", pathPostRestAPIV1Deleteannouncement(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/deleteanswer", pathPostRestAPIV1Deleteanswer(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/deletechatfiles", pathPostRestAPIV1Deletechatfiles(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/deletechats", pathPostRestAPIV1Deletechats(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/deletecollection", pathPostRestAPIV1Deletecollection(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/deletecollectionitem", pathPostRestAPIV1Deletecollectionitem(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/deleteshortcut", pathPostRestAPIV1Deleteshortcut(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/editanswer", pathPostRestAPIV1Editanswer(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/editcollection", pathPostRestAPIV1Editcollection(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/editcollectionitem", pathPostRestAPIV1Editcollectionitem(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/editpin", pathPostRestAPIV1Editpin(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/feed", pathPostRestAPIV1Feed(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/feedback", pathPostRestAPIV1Feedback(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/getanswer", pathPostRestAPIV1Getanswer(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/getchat", pathPostRestAPIV1Getchat(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/getchatapplication", pathPostRestAPIV1Getchatapplication(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/getchatfiles", pathPostRestAPIV1Getchatfiles(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/getcollection", pathPostRestAPIV1Getcollection(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/getdocpermissions", pathPostRestAPIV1Getdocpermissions(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/getdocuments", pathPostRestAPIV1Getdocuments(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/getdocumentsbyfacets", pathPostRestAPIV1Getdocumentsbyfacets(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/getpin", pathPostRestAPIV1Getpin(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/getshortcut", pathPostRestAPIV1Getshortcut(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/insights", pathPostRestAPIV1Insights(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/listanswers", pathPostRestAPIV1Listanswers(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/listchats", pathPostRestAPIV1Listchats(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/listcollections", pathPostRestAPIV1Listcollections(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/listentities", pathPostRestAPIV1Listentities(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/listpins", pathPostRestAPIV1Listpins(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/listshortcuts", pathPostRestAPIV1Listshortcuts(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/listverifications", pathPostRestAPIV1Listverifications(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/messages", pathPostRestAPIV1Messages(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/people", pathPostRestAPIV1People(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/pin", pathPostRestAPIV1Pin(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/recommendations", pathPostRestAPIV1Recommendations(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/search", pathPostRestAPIV1Search(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/summarize", pathPostRestAPIV1Summarize(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/tools/call", pathPostRestAPIV1ToolsCall(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/unpin", pathPostRestAPIV1Unpin(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/updateannouncement", pathPostRestAPIV1Updateannouncement(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/updateshortcut", pathPostRestAPIV1Updateshortcut(dir, rt)), - NewGeneratedHandler(ctx, http.MethodPost, "/rest/api/v1/verify", pathPostRestAPIV1Verify(dir, rt)), - } -} diff --git a/tests/mockserver/internal/handler/pathgetrestapiv1agentsagentid.go b/tests/mockserver/internal/handler/pathgetrestapiv1agentsagentid.go deleted file mode 100644 index 41615362..00000000 --- a/tests/mockserver/internal/handler/pathgetrestapiv1agentsagentid.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathGetRestAPIV1AgentsAgentID(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getAgent[0]": - dir.HandlerFunc("getAgent", testGetAgentGetAgent0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetAgentGetAgent0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.Agent = &components.Agent{ - AgentID: "", - Name: "", - Capabilities: components.AgentCapabilities{}, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathgetrestapiv1agentsagentidschemas.go b/tests/mockserver/internal/handler/pathgetrestapiv1agentsagentidschemas.go deleted file mode 100644 index c10d567f..00000000 --- a/tests/mockserver/internal/handler/pathgetrestapiv1agentsagentidschemas.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathGetRestAPIV1AgentsAgentIDSchemas(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getAgentSchemas[0]": - dir.HandlerFunc("getAgentSchemas", testGetAgentSchemasGetAgentSchemas0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetAgentSchemasGetAgentSchemas0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.AgentSchemas = &components.AgentSchemas{ - AgentID: "", - InputSchema: components.InputSchema{}, - OutputSchema: components.OutputSchema{}, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathgetrestapiv1governancedatapolicies.go b/tests/mockserver/internal/handler/pathgetrestapiv1governancedatapolicies.go deleted file mode 100644 index bbf888e6..00000000 --- a/tests/mockserver/internal/handler/pathgetrestapiv1governancedatapolicies.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathGetRestAPIV1GovernanceDataPolicies(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "listpolicies[0]": - dir.HandlerFunc("listpolicies", testListpoliciesListpolicies0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testListpoliciesListpolicies0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.ListDlpReportsResponse = &components.ListDlpReportsResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathgetrestapiv1governancedatapoliciesid.go b/tests/mockserver/internal/handler/pathgetrestapiv1governancedatapoliciesid.go deleted file mode 100644 index 102ff17b..00000000 --- a/tests/mockserver/internal/handler/pathgetrestapiv1governancedatapoliciesid.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathGetRestAPIV1GovernanceDataPoliciesID(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getpolicy[0]": - dir.HandlerFunc("getpolicy", testGetpolicyGetpolicy0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetpolicyGetpolicy0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetDlpReportResponse = &components.GetDlpReportResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathgetrestapiv1toolslist.go b/tests/mockserver/internal/handler/pathgetrestapiv1toolslist.go deleted file mode 100644 index 163466cb..00000000 --- a/tests/mockserver/internal/handler/pathgetrestapiv1toolslist.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathGetRestAPIV1ToolsList(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "get_/rest/api/v1/tools/list[0]": - dir.HandlerFunc("get_/rest/api/v1/tools/list", testGetRestAPIV1ToolsListGetRestAPIV1ToolsList0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetRestAPIV1ToolsListGetRestAPIV1ToolsList0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.ToolsListResponse = &components.ToolsListResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1adddatasource.go b/tests/mockserver/internal/handler/pathpostapiindexv1adddatasource.go deleted file mode 100644 index 34e56c05..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1adddatasource.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Adddatasource(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/adddatasource[0]": - dir.HandlerFunc("post_/api/index/v1/adddatasource", testPostAPIIndexV1AdddatasourcePostAPIIndexV1Adddatasource0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1AdddatasourcePostAPIIndexV1Adddatasource0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1betausers.go b/tests/mockserver/internal/handler/pathpostapiindexv1betausers.go deleted file mode 100644 index 3df89e08..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1betausers.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Betausers(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/betausers[0]": - dir.HandlerFunc("post_/api/index/v1/betausers", testPostAPIIndexV1BetausersPostAPIIndexV1Betausers0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1BetausersPostAPIIndexV1Betausers0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1bulkindexdocuments.go b/tests/mockserver/internal/handler/pathpostapiindexv1bulkindexdocuments.go deleted file mode 100644 index 8801ff3b..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1bulkindexdocuments.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Bulkindexdocuments(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/bulkindexdocuments[0]": - dir.HandlerFunc("post_/api/index/v1/bulkindexdocuments", testPostAPIIndexV1BulkindexdocumentsPostAPIIndexV1Bulkindexdocuments0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1BulkindexdocumentsPostAPIIndexV1Bulkindexdocuments0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1bulkindexgroups.go b/tests/mockserver/internal/handler/pathpostapiindexv1bulkindexgroups.go deleted file mode 100644 index 8d3011e3..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1bulkindexgroups.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Bulkindexgroups(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/bulkindexgroups[0]": - dir.HandlerFunc("post_/api/index/v1/bulkindexgroups", testPostAPIIndexV1BulkindexgroupsPostAPIIndexV1Bulkindexgroups0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1BulkindexgroupsPostAPIIndexV1Bulkindexgroups0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1bulkindexmemberships.go b/tests/mockserver/internal/handler/pathpostapiindexv1bulkindexmemberships.go deleted file mode 100644 index 5ba85f74..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1bulkindexmemberships.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Bulkindexmemberships(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/bulkindexmemberships[0]": - dir.HandlerFunc("post_/api/index/v1/bulkindexmemberships", testPostAPIIndexV1BulkindexmembershipsPostAPIIndexV1Bulkindexmemberships0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1BulkindexmembershipsPostAPIIndexV1Bulkindexmemberships0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1bulkindexusers.go b/tests/mockserver/internal/handler/pathpostapiindexv1bulkindexusers.go deleted file mode 100644 index 7839fcf3..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1bulkindexusers.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Bulkindexusers(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/bulkindexusers[0]": - dir.HandlerFunc("post_/api/index/v1/bulkindexusers", testPostAPIIndexV1BulkindexusersPostAPIIndexV1Bulkindexusers0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1BulkindexusersPostAPIIndexV1Bulkindexusers0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1checkdocumentaccess.go b/tests/mockserver/internal/handler/pathpostapiindexv1checkdocumentaccess.go deleted file mode 100644 index 694a298e..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1checkdocumentaccess.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Checkdocumentaccess(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/checkdocumentaccess[0]": - dir.HandlerFunc("post_/api/index/v1/checkdocumentaccess", testPostAPIIndexV1CheckdocumentaccessPostAPIIndexV1Checkdocumentaccess0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1CheckdocumentaccessPostAPIIndexV1Checkdocumentaccess0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.CheckDocumentAccessResponse = &components.CheckDocumentAccessResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1deletedocument.go b/tests/mockserver/internal/handler/pathpostapiindexv1deletedocument.go deleted file mode 100644 index 34beba46..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1deletedocument.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Deletedocument(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/deletedocument[0]": - dir.HandlerFunc("post_/api/index/v1/deletedocument", testPostAPIIndexV1DeletedocumentPostAPIIndexV1Deletedocument0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1DeletedocumentPostAPIIndexV1Deletedocument0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1deletegroup.go b/tests/mockserver/internal/handler/pathpostapiindexv1deletegroup.go deleted file mode 100644 index b4ae2858..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1deletegroup.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Deletegroup(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/deletegroup[0]": - dir.HandlerFunc("post_/api/index/v1/deletegroup", testPostAPIIndexV1DeletegroupPostAPIIndexV1Deletegroup0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1DeletegroupPostAPIIndexV1Deletegroup0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1deletemembership.go b/tests/mockserver/internal/handler/pathpostapiindexv1deletemembership.go deleted file mode 100644 index 99968cf2..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1deletemembership.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Deletemembership(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/deletemembership[0]": - dir.HandlerFunc("post_/api/index/v1/deletemembership", testPostAPIIndexV1DeletemembershipPostAPIIndexV1Deletemembership0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1DeletemembershipPostAPIIndexV1Deletemembership0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1deleteuser.go b/tests/mockserver/internal/handler/pathpostapiindexv1deleteuser.go deleted file mode 100644 index c8372237..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1deleteuser.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Deleteuser(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/deleteuser[0]": - dir.HandlerFunc("post_/api/index/v1/deleteuser", testPostAPIIndexV1DeleteuserPostAPIIndexV1Deleteuser0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1DeleteuserPostAPIIndexV1Deleteuser0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1getdatasourceconfig.go b/tests/mockserver/internal/handler/pathpostapiindexv1getdatasourceconfig.go deleted file mode 100644 index c7b4ab25..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1getdatasourceconfig.go +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Getdatasourceconfig(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/getdatasourceconfig[0]": - dir.HandlerFunc("post_/api/index/v1/getdatasourceconfig", testPostAPIIndexV1GetdatasourceconfigPostAPIIndexV1Getdatasourceconfig0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1GetdatasourceconfigPostAPIIndexV1Getdatasourceconfig0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.CustomDatasourceConfig = &components.CustomDatasourceConfig{ - Name: "", - DatasourceCategory: components.DatasourceCategoryUncategorized.ToPointer(), - URLRegex: types.String("https://example-company.datasource.com/.*"), - Quicklinks: []components.Quicklink{ - components.Quicklink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - TrustURLRegexForViewActivity: types.Bool(true), - StripFragmentInCanonicalURL: types.Bool(true), - IsEntityDatasource: types.Bool(false), - IsTestDatasource: types.Bool(false), - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1getdocumentcount.go b/tests/mockserver/internal/handler/pathpostapiindexv1getdocumentcount.go deleted file mode 100644 index dbc8be6a..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1getdocumentcount.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Getdocumentcount(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/getdocumentcount[0]": - dir.HandlerFunc("post_/api/index/v1/getdocumentcount", testPostAPIIndexV1GetdocumentcountPostAPIIndexV1Getdocumentcount0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1GetdocumentcountPostAPIIndexV1Getdocumentcount0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetDocumentCountResponse = &components.GetDocumentCountResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1getdocumentstatus.go b/tests/mockserver/internal/handler/pathpostapiindexv1getdocumentstatus.go deleted file mode 100644 index d7afbcdc..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1getdocumentstatus.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Getdocumentstatus(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/getdocumentstatus[0]": - dir.HandlerFunc("post_/api/index/v1/getdocumentstatus", testPostAPIIndexV1GetdocumentstatusPostAPIIndexV1Getdocumentstatus0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1GetdocumentstatusPostAPIIndexV1Getdocumentstatus0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetDocumentStatusResponse = &components.GetDocumentStatusResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1getusercount.go b/tests/mockserver/internal/handler/pathpostapiindexv1getusercount.go deleted file mode 100644 index 4fcb5e77..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1getusercount.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Getusercount(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/getusercount[0]": - dir.HandlerFunc("post_/api/index/v1/getusercount", testPostAPIIndexV1GetusercountPostAPIIndexV1Getusercount0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1GetusercountPostAPIIndexV1Getusercount0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetUserCountResponse = &components.GetUserCountResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1indexdocument.go b/tests/mockserver/internal/handler/pathpostapiindexv1indexdocument.go deleted file mode 100644 index e6d4878c..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1indexdocument.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Indexdocument(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/indexdocument[0]": - dir.HandlerFunc("post_/api/index/v1/indexdocument", testPostAPIIndexV1IndexdocumentPostAPIIndexV1Indexdocument0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1IndexdocumentPostAPIIndexV1Indexdocument0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1indexdocuments.go b/tests/mockserver/internal/handler/pathpostapiindexv1indexdocuments.go deleted file mode 100644 index d51b3b79..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1indexdocuments.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Indexdocuments(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/indexdocuments[0]": - dir.HandlerFunc("post_/api/index/v1/indexdocuments", testPostAPIIndexV1IndexdocumentsPostAPIIndexV1Indexdocuments0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1IndexdocumentsPostAPIIndexV1Indexdocuments0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1indexgroup.go b/tests/mockserver/internal/handler/pathpostapiindexv1indexgroup.go deleted file mode 100644 index f95be6a8..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1indexgroup.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Indexgroup(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/indexgroup[0]": - dir.HandlerFunc("post_/api/index/v1/indexgroup", testPostAPIIndexV1IndexgroupPostAPIIndexV1Indexgroup0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1IndexgroupPostAPIIndexV1Indexgroup0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1indexmembership.go b/tests/mockserver/internal/handler/pathpostapiindexv1indexmembership.go deleted file mode 100644 index 237c6ab1..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1indexmembership.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Indexmembership(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/indexmembership[0]": - dir.HandlerFunc("post_/api/index/v1/indexmembership", testPostAPIIndexV1IndexmembershipPostAPIIndexV1Indexmembership0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1IndexmembershipPostAPIIndexV1Indexmembership0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1indexuser.go b/tests/mockserver/internal/handler/pathpostapiindexv1indexuser.go deleted file mode 100644 index 995587c3..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1indexuser.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Indexuser(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/indexuser[0]": - dir.HandlerFunc("post_/api/index/v1/indexuser", testPostAPIIndexV1IndexuserPostAPIIndexV1Indexuser0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1IndexuserPostAPIIndexV1Indexuser0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1processalldocuments.go b/tests/mockserver/internal/handler/pathpostapiindexv1processalldocuments.go deleted file mode 100644 index 11e34568..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1processalldocuments.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Processalldocuments(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/processalldocuments[0]": - dir.HandlerFunc("post_/api/index/v1/processalldocuments", testPostAPIIndexV1ProcessalldocumentsPostAPIIndexV1Processalldocuments0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1ProcessalldocumentsPostAPIIndexV1Processalldocuments0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", false); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1processallemployeesandteams.go b/tests/mockserver/internal/handler/pathpostapiindexv1processallemployeesandteams.go deleted file mode 100644 index 8bc7960b..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1processallemployeesandteams.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Processallemployeesandteams(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/processallemployeesandteams[0]": - dir.HandlerFunc("post_/api/index/v1/processallemployeesandteams", testPostAPIIndexV1ProcessallemployeesandteamsPostAPIIndexV1Processallemployeesandteams0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1ProcessallemployeesandteamsPostAPIIndexV1Processallemployeesandteams0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1processallmemberships.go b/tests/mockserver/internal/handler/pathpostapiindexv1processallmemberships.go deleted file mode 100644 index dfe7762d..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1processallmemberships.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Processallmemberships(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/processallmemberships[0]": - dir.HandlerFunc("post_/api/index/v1/processallmemberships", testPostAPIIndexV1ProcessallmembershipsPostAPIIndexV1Processallmemberships0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1ProcessallmembershipsPostAPIIndexV1Processallmemberships0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", false); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1rotatetoken.go b/tests/mockserver/internal/handler/pathpostapiindexv1rotatetoken.go deleted file mode 100644 index 23d1db7a..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1rotatetoken.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Rotatetoken(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/rotatetoken[0]": - dir.HandlerFunc("post_/api/index/v1/rotatetoken", testPostAPIIndexV1RotatetokenPostAPIIndexV1Rotatetoken0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1RotatetokenPostAPIIndexV1Rotatetoken0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.RotateTokenResponse = &components.RotateTokenResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostapiindexv1updatepermissions.go b/tests/mockserver/internal/handler/pathpostapiindexv1updatepermissions.go deleted file mode 100644 index 9bb5d576..00000000 --- a/tests/mockserver/internal/handler/pathpostapiindexv1updatepermissions.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostAPIIndexV1Updatepermissions(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/api/index/v1/updatepermissions[0]": - dir.HandlerFunc("post_/api/index/v1/updatepermissions", testPostAPIIndexV1UpdatepermissionsPostAPIIndexV1Updatepermissions0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostAPIIndexV1UpdatepermissionsPostAPIIndexV1Updatepermissions0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1activity.go b/tests/mockserver/internal/handler/pathpostrestapiv1activity.go deleted file mode 100644 index cf821af6..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1activity.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Activity(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "activity[0]": - dir.HandlerFunc("activity", testActivityActivity0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testActivityActivity0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1addcollectionitems.go b/tests/mockserver/internal/handler/pathpostrestapiv1addcollectionitems.go deleted file mode 100644 index 03677407..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1addcollectionitems.go +++ /dev/null @@ -1,1525 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Addcollectionitems(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "addcollectionitems[0]": - dir.HandlerFunc("addcollectionitems", testAddcollectionitemsAddcollectionitems0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testAddcollectionitemsAddcollectionitems0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.AddCollectionItemsResponse = &components.AddCollectionItemsResponse{ - Collection: &components.Collection{ - Name: "", - Description: "greedily indeed marten whereas rebel expansion", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 759858, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 976421, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 649696, - }, - components.Share{ - NumDaysAgo: 970396, - }, - components.Share{ - NumDaysAgo: 288210, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 489899, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 168446, - }, - }, - LastReminder: &components.Reminder{ - RemindAt: 390252, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 283321, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastReminder: &components.Reminder{ - RemindAt: 869836, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 102608, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastReminder: &components.Reminder{ - RemindAt: 289582, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 569138, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 978832, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 573370, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 542921, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeDocument, - }, - components.CollectionItem{ - CollectionID: 357599, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 477688, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeCollection, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1addverificationreminder.go b/tests/mockserver/internal/handler/pathpostrestapiv1addverificationreminder.go deleted file mode 100644 index fc2edd30..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1addverificationreminder.go +++ /dev/null @@ -1,761 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Addverificationreminder(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "addverificationreminder[0]": - dir.HandlerFunc("addverificationreminder", testAddverificationreminderAddverificationreminder0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testAddverificationreminderAddverificationreminder0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.Verification = &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 310007, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 381872, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "ditch cruelly geez bah", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 922427, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 744290, - ItemType: components.CollectionItemItemTypeCollection, - }, - components.CollectionItem{ - CollectionID: 857658, - ItemType: components.CollectionItemItemTypeCollection, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - }, - }, - components.Collection{ - Name: "", - Description: "unfortunately brr brr whereas object if frantically randomize contrail silently", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 571806, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 991839, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 431849, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 121811, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1adminsearch.go b/tests/mockserver/internal/handler/pathpostrestapiv1adminsearch.go deleted file mode 100644 index 89975fde..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1adminsearch.go +++ /dev/null @@ -1,163 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Adminsearch(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "adminsearch[0]": - dir.HandlerFunc("adminsearch", testAdminsearchAdminsearch0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testAdminsearchAdminsearch0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.SearchResponse = &components.SearchResponse{ - TrackingToken: types.String("trackingToken"), - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://www.example.com/", - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - components.SearchResult{ - Title: types.String("title"), - URL: "https://www.example.com/", - Snippets: []components.SearchResultSnippet{}, - }, - }, - GleanDataError: &components.GleanDataError{ - ErrorMessages: []components.ErrorMessage{ - components.ErrorMessage{ - Source: types.String("gmail"), - ErrorMessage: types.String("invalid token"), - }, - components.ErrorMessage{ - Source: types.String("slack"), - ErrorMessage: types.String("expired token"), - }, - }, - }, - RequestID: types.String("5e345ae500ff0befa2b9d1a3ba0001737e7363696f312d323535323137000171756572792d656e64706f696e743a323032303031333074313830343032000100"), - FacetResults: []components.FacetResult{ - components.FacetResult{ - SourceName: types.String("sourceName"), - OperatorName: types.String("operatorName"), - Buckets: []components.FacetBucket{ - components.FacetBucket{ - Count: types.Int64(1), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("stringValue"), - IntegerValue: types.Int64(5), - }, - }, - components.FacetBucket{ - Count: types.Int64(1), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("stringValue"), - IntegerValue: types.Int64(5), - }, - }, - }, - }, - components.FacetResult{ - SourceName: types.String("sourceName"), - OperatorName: types.String("operatorName"), - Buckets: []components.FacetBucket{ - components.FacetBucket{ - Count: types.Int64(1), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("stringValue"), - IntegerValue: types.Int64(5), - }, - }, - components.FacetBucket{ - Count: types.Int64(1), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("stringValue"), - IntegerValue: types.Int64(5), - }, - }, - }, - }, - }, - RewrittenFacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("fieldName"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{}, - components.FacetFilterValue{}, - }, - }, - components.FacetFilter{ - FieldName: types.String("fieldName"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{}, - components.FacetFilterValue{}, - }, - }, - }, - HasMoreResults: types.Bool(true), - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1autocomplete.go b/tests/mockserver/internal/handler/pathpostrestapiv1autocomplete.go deleted file mode 100644 index f5022d6d..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1autocomplete.go +++ /dev/null @@ -1,80 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Autocomplete(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "autocomplete[0]": - dir.HandlerFunc("autocomplete", testAutocompleteAutocomplete0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testAutocompleteAutocomplete0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.AutocompleteResponse = &components.AutocompleteResponse{ - TrackingToken: types.String("trackingToken"), - Results: []components.AutocompleteResult{ - components.AutocompleteResult{ - Result: "sample result", - ResultType: components.AutocompleteResultResultTypeDocument.ToPointer(), - Score: types.Float64(4.56), - URL: types.String("https://www.example.com/"), - TrackingToken: types.String("abcd"), - }, - }, - BackendTimeMillis: types.Int64(1100), - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1chat.go b/tests/mockserver/internal/handler/pathpostrestapiv1chat.go deleted file mode 100644 index 24ba560b..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1chat.go +++ /dev/null @@ -1,171 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Chat(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "chatStream-defaultExample[0]": - dir.HandlerFunc("chatStream", testChatStreamChatStreamDefaultExample0)(w, req) - case "chatStream-gptAgentExample[0]": - dir.HandlerFunc("chatStream", testChatStreamChatStreamGptAgentExample0)(w, req) - case "chatStream-streamingExample[0]": - dir.HandlerFunc("chatStream", testChatStreamChatStreamStreamingExample0)(w, req) - case "chatStream-updateResponse[0]": - dir.HandlerFunc("chatStream", testChatStreamChatStreamUpdateResponse0)(w, req) - case "chatStream-citationResponse[0]": - dir.HandlerFunc("chatStream", testChatStreamChatStreamCitationResponse0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testChatStreamChatStreamDefaultExample0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"text/plain"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - respBodyBytes := []byte("{\"messages\":[{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"hasMoreFragments\":false,\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\"},\"fragments\":[{\"text\":\"There are no holidays!\"}]}]}") - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} - -func testChatStreamChatStreamGptAgentExample0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"text/plain"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - respBodyBytes := []byte("") - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} - -func testChatStreamChatStreamStreamingExample0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"text/plain"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - respBodyBytes := []byte("{\"messages\":[{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\",\"hasMoreFragments\":true},\"fragments\":null},{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\",\"hasMoreFragments\":true},\"fragments\":null},{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\",\"hasMoreFragments\":true},\"fragments\":[{\"text\":\"e are\"}]},{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\",\"hasMoreFragments\":true},\"fragments\":[{\"text\":\"no hol\"}]},{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\",\"hasMoreFragments\":false},\"fragments\":[{\"text\":\"idays!\"}]}]}") - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} - -func testChatStreamChatStreamUpdateResponse0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"text/plain"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - respBodyBytes := []byte("{\"messages\":[{\"author\":\"GLEAN_AI\",\"messageType\":\"UPDATE\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\"},\"fragments\":[{\"text\":\"**Reading:**\"},{\"structuredResults\":[{\"document\":{\"id\":\"123\",\"title\":\"Company Handbook\"}}]}]}]}") - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} - -func testChatStreamChatStreamCitationResponse0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"text/plain"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - respBodyBytes := []byte("{\"messages\":[{\"author\":\"GLEAN_AI\",\"messageType\":\"CONTENT\",\"agentConfig\":{\"agent\":\"DEFAULT\",\"mode\":\"DEFAULT\"},\"citations\":[{\"sourceDocument\":{\"id\":\"123\",\"title\":\"Company Handbook\",\"referenceRanges\":[{\"textRange\":{\"startIndex\":0,\"endIndex\":12,\"type\":\"CITATION\"}}]}}]}]}") - w.Header().Set("Content-Type", "text/plain") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1createannouncement.go b/tests/mockserver/internal/handler/pathpostrestapiv1createannouncement.go deleted file mode 100644 index ef59636d..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1createannouncement.go +++ /dev/null @@ -1,2371 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Createannouncement(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "createannouncement[0]": - dir.HandlerFunc("createannouncement", testCreateannouncementCreateannouncement0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testCreateannouncementCreateannouncement0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.Announcement = &components.Announcement{ - Body: &components.StructuredText{ - 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: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 520049, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 800759, - }, - components.TextRange{ - StartIndex: 117747, - }, - components.TextRange{ - StartIndex: 589813, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 277321, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - MentionedPeople: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "sleet where schedule", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 108833, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 572012, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeDocument, - }, - components.CollectionItem{ - CollectionID: 616892, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeDocument, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleVerifier, - }, - }, - }, - components.Collection{ - Name: "", - Description: "zowie nasalise punctually yippee", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 703146, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{ - Reactors: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 312813, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.Share{ - NumDaysAgo: 903800, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 620608, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 188605, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 252418, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 874230, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DraftID: types.Int64(342), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 605172, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1createanswer.go b/tests/mockserver/internal/handler/pathpostrestapiv1createanswer.go deleted file mode 100644 index c064ea76..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1createanswer.go +++ /dev/null @@ -1,2073 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Createanswer(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "createanswer[0]": - dir.HandlerFunc("createanswer", testCreateanswerCreateanswer0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testCreateanswerCreateanswer0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.Answer = &components.Answer{ - ID: 3, - DocID: types.String("ANSWERS_answer_3"), - Question: types.String("Why is the sky blue?"), - BodyText: types.String("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: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 433224, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 995852, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "shadowy foodstuffs welcome via deeply writ amid", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 629063, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 338524, - ItemType: components.CollectionItemItemTypeCollection, - }, - components.CollectionItem{ - CollectionID: 154150, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 739949, - ItemType: components.CollectionItemItemTypeCollection, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 982866, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 749299, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 150565, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 572012, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastReminder: &components.Reminder{ - RemindAt: 185076, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 616892, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastReminder: &components.Reminder{ - RemindAt: 190973, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - }, - CombinedAnswerText: &components.StructuredText{ - 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: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 665035, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 261757, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LikedByUser: true, - NumLikes: 453975, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 557925, - }, - }, - }, - Board: &components.AnswerBoard{ - Name: "", - Description: "massive under meh severe ditch bungalow when sauerkraut", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 404062, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 639388, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1createauthtoken.go b/tests/mockserver/internal/handler/pathpostrestapiv1createauthtoken.go deleted file mode 100644 index ab9263d4..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1createauthtoken.go +++ /dev/null @@ -1,65 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Createauthtoken(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "createauthtoken[0]": - dir.HandlerFunc("createauthtoken", testCreateauthtokenCreateauthtoken0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testCreateauthtokenCreateauthtoken0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.CreateAuthTokenResponse = &components.CreateAuthTokenResponse{ - Token: "", - ExpirationTime: 207213, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go b/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go deleted file mode 100644 index 371b9023..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1createcollection.go +++ /dev/null @@ -1,353 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/models/operations" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Createcollection(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "createcollection[0]": - dir.HandlerFunc("createcollection", testCreatecollectionCreatecollection0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testCreatecollectionCreatecollection0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *operations.CreatecollectionResponseBody = types.Pointer(operations.CreateCreatecollectionResponseBodyResponseBody2( - operations.ResponseBody2{ - Collection: &components.Collection{ - Name: "", - Description: "whole busily jive hawk gee basic minus hence", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleViewer, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 158969, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 110375, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - ContainerDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - ParentDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - DestinationDocument: &components.Document{ - ContainerDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - ParentDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "wedge colorfully orientate rally", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 131797, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Children: []components.Collection{ - components.Collection{ - Name: "", - Description: "outside yippee sidetrack mature regularly mouser inject worth", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 149448, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeCollection, - }, - }, - }, - Error: components.CollectionError{ - ErrorCode: components.CollectionErrorErrorCodeNotFound, - }, - }, - )) - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1createshortcut.go b/tests/mockserver/internal/handler/pathpostrestapiv1createshortcut.go deleted file mode 100644 index 1b2c9b91..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1createshortcut.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Createshortcut(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "createshortcut[0]": - dir.HandlerFunc("createshortcut", testCreateshortcutCreateshortcut0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testCreateshortcutCreateshortcut0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.CreateShortcutResponse = &components.CreateShortcutResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1deleteallchats.go b/tests/mockserver/internal/handler/pathpostrestapiv1deleteallchats.go deleted file mode 100644 index a8326202..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1deleteallchats.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Deleteallchats(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "deleteallchats[0]": - dir.HandlerFunc("deleteallchats", testDeleteallchatsDeleteallchats0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testDeleteallchatsDeleteallchats0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1deleteannouncement.go b/tests/mockserver/internal/handler/pathpostrestapiv1deleteannouncement.go deleted file mode 100644 index 8a58ed5c..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1deleteannouncement.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Deleteannouncement(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "deleteannouncement[0]": - dir.HandlerFunc("deleteannouncement", testDeleteannouncementDeleteannouncement0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testDeleteannouncementDeleteannouncement0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1deleteanswer.go b/tests/mockserver/internal/handler/pathpostrestapiv1deleteanswer.go deleted file mode 100644 index 0b853e55..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1deleteanswer.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Deleteanswer(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "deleteanswer[0]": - dir.HandlerFunc("deleteanswer", testDeleteanswerDeleteanswer0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testDeleteanswerDeleteanswer0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1deletechatfiles.go b/tests/mockserver/internal/handler/pathpostrestapiv1deletechatfiles.go deleted file mode 100644 index 9e26a1a0..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1deletechatfiles.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Deletechatfiles(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "deletechatfiles[0]": - dir.HandlerFunc("deletechatfiles", testDeletechatfilesDeletechatfiles0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testDeletechatfilesDeletechatfiles0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1deletechats.go b/tests/mockserver/internal/handler/pathpostrestapiv1deletechats.go deleted file mode 100644 index d1b13693..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1deletechats.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Deletechats(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "deletechats[0]": - dir.HandlerFunc("deletechats", testDeletechatsDeletechats0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testDeletechatsDeletechats0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1deletecollection.go b/tests/mockserver/internal/handler/pathpostrestapiv1deletecollection.go deleted file mode 100644 index 1089baf0..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1deletecollection.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Deletecollection(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "deletecollection[0]": - dir.HandlerFunc("deletecollection", testDeletecollectionDeletecollection0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testDeletecollectionDeletecollection0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1deletecollectionitem.go b/tests/mockserver/internal/handler/pathpostrestapiv1deletecollectionitem.go deleted file mode 100644 index e50723dc..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1deletecollectionitem.go +++ /dev/null @@ -1,1855 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Deletecollectionitem(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "deletecollectionitem[0]": - dir.HandlerFunc("deletecollectionitem", testDeletecollectionitemDeletecollectionitem0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testDeletecollectionitemDeletecollectionitem0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.DeleteCollectionItemResponse = &components.DeleteCollectionItemResponse{ - Collection: &components.Collection{ - Name: "", - Description: "up nice seafood", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 735937, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 663050, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 934663, - }, - components.Share{ - NumDaysAgo: 307207, - }, - components.Share{ - NumDaysAgo: 246264, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 835281, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 239964, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 260387, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 784251, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 501323, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeCollection, - }, - components.CollectionItem{ - CollectionID: 220432, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 187266, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 16069, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 696999, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeDocument, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1deleteshortcut.go b/tests/mockserver/internal/handler/pathpostrestapiv1deleteshortcut.go deleted file mode 100644 index 0c4dc328..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1deleteshortcut.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Deleteshortcut(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "deleteshortcut[0]": - dir.HandlerFunc("deleteshortcut", testDeleteshortcutDeleteshortcut0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testDeleteshortcutDeleteshortcut0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1editanswer.go b/tests/mockserver/internal/handler/pathpostrestapiv1editanswer.go deleted file mode 100644 index e9c8110f..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1editanswer.go +++ /dev/null @@ -1,2239 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Editanswer(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "editanswer[0]": - dir.HandlerFunc("editanswer", testEditanswerEditanswer0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testEditanswerEditanswer0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.Answer = &components.Answer{ - ID: 3, - DocID: types.String("ANSWERS_answer_3"), - Question: types.String("Why is the sky blue?"), - BodyText: types.String("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: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 490266, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 949852, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "overwork scent er alert consequently brochure awful chilly scary", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 859594, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 359827, - ItemType: components.CollectionItemItemTypeText, - }, - }, - }, - components.Collection{ - Name: "", - Description: "below considering correctly poor instead", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 973585, - }, - components.Collection{ - Name: "", - Description: "brr pillbox exactly through scented drive etch", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 353341, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 119170, - }, - components.Share{ - NumDaysAgo: 28922, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 103434, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 57214, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 72991, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 900561, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - }, - CombinedAnswerText: &components.StructuredText{ - 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: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 751237, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 488606, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LikedByUser: false, - NumLikes: 526808, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 945691, - }, - }, - }, - Board: &components.AnswerBoard{ - Name: "", - Description: "transparency lest while up yahoo towards fabricate motionless", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 882159, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 12186, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1editcollection.go b/tests/mockserver/internal/handler/pathpostrestapiv1editcollection.go deleted file mode 100644 index 47f87309..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1editcollection.go +++ /dev/null @@ -1,1499 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Editcollection(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "editcollection[0]": - dir.HandlerFunc("editcollection", testEditcollectionEditcollection0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testEditcollectionEditcollection0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.EditCollectionResponse = &components.EditCollectionResponse{ - Name: "", - Description: "urgently voluntarily scale gut", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 643119, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 553539, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "exotic fussy shadowy", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 224552, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 774530, - ItemType: components.CollectionItemItemTypeDocument, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 115263, - }, - components.Share{ - NumDaysAgo: 925954, - }, - components.Share{ - NumDaysAgo: 538720, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 318637, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 219050, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 762098, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 595467, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 619716, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 22113, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "queasily down worthy generously than narrate pish off", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 567572, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeText, - }, - }, - Children: []components.Collection{ - components.Collection{ - Name: "", - Description: "since straight gadzooks pulp", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 89970, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - }, - ErrorCode: components.EditCollectionResponseErrorCodeNameExists, - Collection: &components.Collection{ - Name: "", - Description: "ameliorate well political", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 151869, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1editcollectionitem.go b/tests/mockserver/internal/handler/pathpostrestapiv1editcollectionitem.go deleted file mode 100644 index 30f68b62..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1editcollectionitem.go +++ /dev/null @@ -1,1142 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Editcollectionitem(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "editcollectionitem[0]": - dir.HandlerFunc("editcollectionitem", testEditcollectionitemEditcollectionitem0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testEditcollectionitemEditcollectionitem0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.EditCollectionItemResponse = &components.EditCollectionItemResponse{ - Collection: &components.Collection{ - Name: "", - Description: "where nasalise emphasize jealously appliance", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 927066, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 702646, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 600927, - }, - components.Share{ - NumDaysAgo: 753737, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 841463, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 402252, - }, - }, - LastReminder: &components.Reminder{ - RemindAt: 286790, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 519565, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastReminder: &components.Reminder{ - RemindAt: 90490, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 304041, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastReminder: &components.Reminder{ - RemindAt: 299381, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 992935, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 559534, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 788309, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 487486, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeDocument, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleVerifier, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1editpin.go b/tests/mockserver/internal/handler/pathpostrestapiv1editpin.go deleted file mode 100644 index 21ab451c..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1editpin.go +++ /dev/null @@ -1,414 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Editpin(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "editpin[0]": - dir.HandlerFunc("editpin", testEditpinEditpin0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testEditpinEditpin0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.PinDocument = &components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 922296, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 47491, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "informal wrongly lest slime since pace into row", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 793957, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 841760, - ItemType: components.CollectionItemItemTypeCollection, - }, - components.CollectionItem{ - CollectionID: 546659, - ItemType: components.CollectionItemItemTypeCollection, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - }, - }, - components.Collection{ - Name: "", - Description: "twine because unnaturally card gallery among agile duh pro athwart", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 201064, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 544237, - }, - components.Share{ - NumDaysAgo: 241956, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 448916, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 494003, - }, - }, - LastReminder: &components.Reminder{ - RemindAt: 29269, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1feed.go b/tests/mockserver/internal/handler/pathpostrestapiv1feed.go deleted file mode 100644 index 950ad3db..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1feed.go +++ /dev/null @@ -1,2074 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Feed(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "feed[0]": - dir.HandlerFunc("feed", testFeedFeed0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testFeedFeed0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.FeedResponse = &components.FeedResponse{ - ServerTimestamp: 152670, - Results: []components.FeedResult{ - components.FeedResult{ - Category: components.FeedResultCategoryZeroStateWorkflowFavorites, - PrimaryEntry: components.FeedEntry{ - Title: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Event: &components.CalendarEvent{ - ID: "", - URL: "https://cultivated-longboat.com", - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - GeneratedAttachments: []components.GeneratedAttachment{ - components.GeneratedAttachment{ - Documents: []components.Document{ - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: types.String("New York City"), - Industry: types.String("Finances"), - About: types.String("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: types.String("CIO is interested in trying out the product."), - }, - ExternalLinks: []components.StructuredLink{ - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - Content: []components.GeneratedAttachmentContent{ - components.GeneratedAttachmentContent{ - DisplayHeader: types.String("Action Items"), - }, - }, - }, - }, - }, - Announcement: &components.Announcement{ - DraftID: types.Int64(342), - }, - Collection: &components.Collection{ - Name: "", - Description: "toward potentially zealous", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleVerifier, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 455039, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 31514, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - ItemType: components.CollectionItemItemTypeText, - }, - components.CollectionItem{ - CollectionID: 698671, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleViewer, - }, - }, - }, - CollectionItem: &components.CollectionItem{ - CollectionID: 250166, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "instead waft bah failing um under out", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 230306, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{}, - Children: []components.Collection{}, - Roles: []components.UserRoleSpecification{}, - }, - ItemType: components.CollectionItemItemTypeDocument, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - PromptTemplate: &components.PromptTemplateResult{ - PromptTemplate: &components.PromptTemplate{ - Template: "", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - LastUpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - }, - }, - Workflow: &components.WorkflowResult{ - Workflow: components.Workflow{ - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - LastUpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - Activities: []components.UserActivity{ - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - SecondaryEntries: []components.FeedEntry{ - components.FeedEntry{ - Title: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Event: &components.CalendarEvent{ - ID: "", - URL: "https://partial-saw.com", - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{}, - }, - GeneratedAttachments: []components.GeneratedAttachment{ - components.GeneratedAttachment{ - Documents: []components.Document{ - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: types.String("New York City"), - Industry: types.String("Finances"), - About: types.String("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{}, - MergedCustomers: []components.Customer{}, - Notes: types.String("CIO is interested in trying out the product."), - }, - ExternalLinks: []components.StructuredLink{ - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - Content: []components.GeneratedAttachmentContent{ - components.GeneratedAttachmentContent{ - DisplayHeader: types.String("Action Items"), - }, - }, - }, - components.GeneratedAttachment{ - Documents: []components.Document{ - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: types.String("New York City"), - Industry: types.String("Finances"), - About: types.String("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{}, - MergedCustomers: []components.Customer{}, - Notes: types.String("CIO is interested in trying out the product."), - }, - ExternalLinks: []components.StructuredLink{ - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - Content: []components.GeneratedAttachmentContent{ - components.GeneratedAttachmentContent{ - DisplayHeader: types.String("Action Items"), - }, - }, - }, - }, - }, - Announcement: &components.Announcement{ - DraftID: types.Int64(342), - }, - Collection: &components.Collection{ - Name: "", - Description: "management polyester flustered dimly", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 301931, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{}, - Children: []components.Collection{}, - Roles: []components.UserRoleSpecification{}, - }, - CollectionItem: &components.CollectionItem{ - CollectionID: 350031, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "deliquesce so where aw peninsula at standard brr failing owlishly", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 259619, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{}, - Children: []components.Collection{}, - Roles: []components.UserRoleSpecification{}, - }, - ItemType: components.CollectionItemItemTypeCollection, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - PromptTemplate: &components.PromptTemplateResult{ - PromptTemplate: &components.PromptTemplate{ - Template: "", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - LastUpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - }, - Workflow: &components.WorkflowResult{ - Workflow: components.Workflow{ - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - LastUpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - Activities: []components.UserActivity{ - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - }, - components.FeedResult{ - Category: components.FeedResultCategoryDisplayableList, - PrimaryEntry: components.FeedEntry{ - Title: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Event: &components.CalendarEvent{ - ID: "", - URL: "https://qualified-plumber.info", - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{}, - }, - GeneratedAttachments: []components.GeneratedAttachment{ - components.GeneratedAttachment{ - Documents: []components.Document{ - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: types.String("New York City"), - Industry: types.String("Finances"), - About: types.String("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{}, - MergedCustomers: []components.Customer{}, - Notes: types.String("CIO is interested in trying out the product."), - }, - ExternalLinks: []components.StructuredLink{ - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - Content: []components.GeneratedAttachmentContent{ - components.GeneratedAttachmentContent{ - DisplayHeader: types.String("Action Items"), - }, - }, - }, - }, - }, - Announcement: &components.Announcement{ - DraftID: types.Int64(342), - }, - Collection: &components.Collection{ - Name: "", - Description: "grandiose yowza stale yet sinful mmm", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 659387, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{}, - Children: []components.Collection{}, - Roles: []components.UserRoleSpecification{}, - }, - CollectionItem: &components.CollectionItem{ - CollectionID: 460790, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "since jubilantly meanwhile vestment muddy stiff", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 507793, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{}, - Children: []components.Collection{}, - Roles: []components.UserRoleSpecification{}, - }, - ItemType: components.CollectionItemItemTypeText, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - PromptTemplate: &components.PromptTemplateResult{ - PromptTemplate: &components.PromptTemplate{ - Template: "", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleVerifier, - }, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - LastUpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - }, - }, - Workflow: &components.WorkflowResult{ - Workflow: components.Workflow{ - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - LastUpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - Activities: []components.UserActivity{ - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - SecondaryEntries: []components.FeedEntry{ - components.FeedEntry{ - Title: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Event: &components.CalendarEvent{ - ID: "", - URL: "https://utter-populist.net", - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{}, - }, - GeneratedAttachments: []components.GeneratedAttachment{ - components.GeneratedAttachment{ - Documents: []components.Document{ - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: types.String("New York City"), - Industry: types.String("Finances"), - About: types.String("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{}, - MergedCustomers: []components.Customer{}, - Notes: types.String("CIO is interested in trying out the product."), - }, - ExternalLinks: []components.StructuredLink{ - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - Content: []components.GeneratedAttachmentContent{ - components.GeneratedAttachmentContent{ - DisplayHeader: types.String("Action Items"), - }, - }, - }, - }, - }, - Announcement: &components.Announcement{ - DraftID: types.Int64(342), - }, - Collection: &components.Collection{ - Name: "", - Description: "verve however unhealthy delightfully formamide utter redress for finally", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 613860, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{}, - Children: []components.Collection{}, - Roles: []components.UserRoleSpecification{}, - }, - CollectionItem: &components.CollectionItem{ - CollectionID: 938484, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "stoop dowse tensely duh atop which any", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 761068, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{}, - Children: []components.Collection{}, - Roles: []components.UserRoleSpecification{}, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - PromptTemplate: &components.PromptTemplateResult{ - PromptTemplate: &components.PromptTemplate{ - Template: "", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - LastUpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - }, - Workflow: &components.WorkflowResult{ - Workflow: components.Workflow{ - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - LastUpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - Activities: []components.UserActivity{ - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - components.FeedEntry{ - Title: "", - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Event: &components.CalendarEvent{ - ID: "", - URL: "https://babyish-quinoa.name/", - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{}, - }, - GeneratedAttachments: []components.GeneratedAttachment{ - components.GeneratedAttachment{ - Documents: []components.Document{ - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: types.String("New York City"), - Industry: types.String("Finances"), - About: types.String("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{}, - MergedCustomers: []components.Customer{}, - Notes: types.String("CIO is interested in trying out the product."), - }, - ExternalLinks: []components.StructuredLink{ - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - components.StructuredLink{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - Content: []components.GeneratedAttachmentContent{ - components.GeneratedAttachmentContent{ - DisplayHeader: types.String("Action Items"), - }, - }, - }, - }, - }, - Announcement: &components.Announcement{ - DraftID: types.Int64(342), - }, - Collection: &components.Collection{ - Name: "", - Description: "unearth grubby bathrobe instead brr soupy", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 591260, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{}, - Children: []components.Collection{}, - Roles: []components.UserRoleSpecification{}, - }, - CollectionItem: &components.CollectionItem{ - CollectionID: 946419, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "awkwardly given whoever curiously around jump or", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 206282, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{}, - Children: []components.Collection{}, - Roles: []components.UserRoleSpecification{}, - }, - ItemType: components.CollectionItemItemTypeText, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - PromptTemplate: &components.PromptTemplateResult{ - PromptTemplate: &components.PromptTemplate{ - Template: "", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleViewer, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleAnswerModerator, - }, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - LastUpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleViewer, - }, - }, - }, - }, - Workflow: &components.WorkflowResult{ - Workflow: components.Workflow{ - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - LastUpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - Activities: []components.UserActivity{ - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.UserActivity{ - Actor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - }, - }, - }, - FacetResults: map[string][]components.FacetResult{ - "key": []components.FacetResult{ - components.FacetResult{ - SourceName: types.String("container_name"), - OperatorName: types.String("SelectMultiple"), - Buckets: []components.FacetBucket{ - components.FacetBucket{ - Count: types.Int64(1), - Datasource: types.String("jira"), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("engineering"), - IntegerValue: types.Int64(5), - DisplayLabel: types.String("engineering"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - components.FacetBucket{ - Count: types.Int64(1), - Datasource: types.String("jira"), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("engineering"), - IntegerValue: types.Int64(5), - DisplayLabel: types.String("engineering"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - components.FacetBucket{ - Count: types.Int64(1), - Datasource: types.String("jira"), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("engineering"), - IntegerValue: types.Int64(5), - DisplayLabel: types.String("engineering"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - HasMoreBuckets: types.Bool(false), - GroupName: types.String("Service Cloud"), - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1feedback.go b/tests/mockserver/internal/handler/pathpostrestapiv1feedback.go deleted file mode 100644 index 372a01f2..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1feedback.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Feedback(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "feedback[0]": - dir.HandlerFunc("feedback", testFeedbackFeedback0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testFeedbackFeedback0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", false); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getanswer.go b/tests/mockserver/internal/handler/pathpostrestapiv1getanswer.go deleted file mode 100644 index 290caaa8..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getanswer.go +++ /dev/null @@ -1,2658 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Getanswer(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getanswer[0]": - dir.HandlerFunc("getanswer", testGetanswerGetanswer0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetanswerGetanswer0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetAnswerResponse = &components.GetAnswerResponse{ - AnswerResult: &components.AnswerResult{ - Answer: components.Answer{ - ID: 3, - DocID: types.String("ANSWERS_answer_3"), - Question: types.String("Why is the sky blue?"), - BodyText: types.String("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: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 521235, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 458049, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "carefully glorious scrabble ignite", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 159685, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 108980, - ItemType: components.CollectionItemItemTypeCollection, - }, - components.CollectionItem{ - CollectionID: 644971, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 384844, - }, - components.Share{ - NumDaysAgo: 91052, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 656841, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 570980, - }, - }, - LastReminder: &components.Reminder{ - RemindAt: 607679, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 397483, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastReminder: &components.Reminder{ - RemindAt: 455424, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 103111, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastReminder: &components.Reminder{ - RemindAt: 392574, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 754054, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - CombinedAnswerText: &components.StructuredText{ - 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: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 710636, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 395188, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 547184, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LikedByUser: false, - NumLikes: 576892, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 258862, - }, - }, - }, - Board: &components.AnswerBoard{ - Name: "", - Description: "whether deflate book knotty er beneath nervously than", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 194354, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 831606, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - Error: &components.GetAnswerError{ - AnswerAuthor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go deleted file mode 100644 index 35e69d35..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ /dev/null @@ -1,1211 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Getchat(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getchat[0]": - dir.HandlerFunc("getchat", testGetchatGetchat0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetChatResponse = &components.GetChatResponse{ - ChatResult: &components.ChatResult{ - Chat: &components.Chat{ - ID: types.String("string"), - CreateTime: types.Int64(0), - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdateTime: types.Int64(0), - Name: types.String("string"), - ApplicationID: types.String("string"), - ApplicationName: types.String("string"), - Icon: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - Messages: []components.ChatMessage{ - components.ChatMessage{ - AgentConfig: &components.AgentConfig{ - Agent: components.AgentEnumDefault.ToPointer(), - Mode: components.ModeDefault.ToPointer(), - }, - Author: components.AuthorUser.ToPointer(), - Citations: []components.ChatMessageCitation{ - components.ChatMessageCitation{ - TrackingToken: types.String("string"), - SourceDocument: &components.Document{ - ID: types.String("string"), - Datasource: types.String("string"), - ConnectorType: components.ConnectorTypeAPICrawl.ToPointer(), - DocType: types.String("string"), - Content: &components.DocumentContent{ - FullTextList: []string{ - "", - }, - }, - Title: types.String("string"), - URL: types.String("string"), - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - Sections: []components.DocumentSection{ - components.DocumentSection{ - Title: types.String(""), - URL: types.String("https://normal-making.name"), - }, - }, - }, - SourceFile: &components.ChatFile{ - ID: types.String("FILE_1234"), - URL: types.String("www.google.com"), - Name: types.String("sample.pdf"), - Metadata: &components.ChatFileMetadata{ - Status: components.ChatFileStatusProcessing.ToPointer(), - UploadTime: types.Int64(0), - ProcessedSize: types.Int64(0), - FailureReason: components.ChatFileFailureReasonParseFailed.ToPointer(), - MimeType: types.String("string"), - }, - }, - SourcePerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ReferenceRanges: []components.ReferenceRange{ - components.ReferenceRange{ - TextRange: &components.TextRange{ - StartIndex: 969961, - EndIndex: types.Int64(458049), - Type: components.TextRangeTypeCitation.ToPointer(), - URL: types.String("https://earnest-tuber.info/"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 78888, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 219956, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 313464, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - Snippet: "", - }, - }, - }, - }, - }, - }, - UploadedFileIds: []string{ - "string", - }, - Fragments: []components.ChatMessageFragment{ - components.ChatMessageFragment{ - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - ID: types.String(""), - Datasource: types.String(""), - ConnectorType: components.ConnectorTypeAPICrawl.ToPointer(), - DocType: types.String(""), - Title: types.String(""), - URL: types.String("https://strange-gloom.net"), - Metadata: &components.DocumentMetadata{ - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - MentionedPeople: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "scrabble ignite aw showboat shakily", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleEditor, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 843618, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 149108, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 503671, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - ItemType: components.CollectionItemItemTypeCollection, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Role: components.UserRoleOwner, - }, - }, - }, - components.Collection{ - Name: "", - Description: "ah ack aha bah", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 72193, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Items: []components.CollectionItem{}, - Children: []components.Collection{}, - Roles: []components.UserRoleSpecification{}, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{ - Reactors: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - components.Reaction{ - Reactors: []components.Person{}, - }, - components.Reaction{ - Reactors: []components.Person{}, - }, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 786783, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.Share{ - NumDaysAgo: 972276, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 844917, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 531548, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 576892, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Sections: []components.DocumentSection{}, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Customer: &components.Customer{ - ID: "", - Domains: []string{}, - Company: components.Company{ - Name: "", - Location: types.String("New York City"), - Industry: types.String("Finances"), - About: types.String("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - DocumentCounts: map[string]int64{ - "key": 534384, - "key1": 901064, - }, - Poc: []components.Person{}, - MergedCustomers: []components.Customer{}, - StartDate: types.MustNewDateFromString("2025-09-27"), - ContractAnnualRevenue: types.Float64(2187.45), - Notes: types.String(""), - }, - Team: &components.Team{ - ID: "", - Name: "", - Description: types.String("aw fibre hassle freezing but conversation under"), - BusinessUnit: types.String(""), - Department: types.String(""), - PhotoURL: types.String("https://sizzling-accountability.net/"), - BannerURL: types.String("https://miserable-hydrant.biz/"), - ExternalLink: types.String("https://hasty-cappelletti.name/"), - Members: []components.PersonToTeamRelationship{}, - MemberCount: types.Int64(626356), - Emails: []components.TeamEmail{}, - DatasourceProfiles: []components.DatasourceProfile{}, - Datasource: types.String(""), - CreatedFrom: types.String(""), - LastUpdatedAt: types.MustNewTimeFromString("2023-08-02T00:17:06.651Z"), - Status: components.TeamStatusQueuedForCreation.ToPointer(), - CanBeDeleted: types.Bool(false), - LoggingID: types.String(""), - }, - CustomEntity: &components.CustomEntity{ - ID: types.String(""), - Title: types.String(""), - Datasource: types.String(""), - ObjectType: types.String(""), - Roles: []components.UserRoleSpecification{}, - }, - Answer: &components.Answer{ - ID: 313992, - DocID: types.String(""), - Question: types.String(""), - QuestionVariations: []string{}, - BodyText: types.String(""), - BoardID: types.Int64(933583), - AudienceFilters: []components.FacetFilter{}, - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - Roles: []components.UserRoleSpecification{}, - SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( - components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Shortcuts, - ContentID: 602763, - }, - )), - SourceType: components.AnswerSourceTypeAssistant.ToPointer(), - CombinedAnswerText: &components.StructuredText{ - 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: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{}, - LikedByUser: false, - NumLikes: 30856, - }, - Author: &components.Person{ - Name: "", - ObfuscatedID: "", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{}, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - Results: []components.SearchResult{}, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - Results: []components.SearchResult{}, - }, - }, - Metadata: &components.PersonMetadata{ - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - }, - }, - CreateTime: types.MustNewTimeFromString("2024-01-11T09:24:54.882Z"), - UpdateTime: types.MustNewTimeFromString("2024-10-30T08:25:44.878Z"), - UpdatedBy: &components.Person{ - Name: "", - ObfuscatedID: "", - RelatedDocuments: []components.RelatedDocuments{}, - Metadata: &components.PersonMetadata{ - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - Reminders: []components.Reminder{}, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 306618, - }, - CandidateVerifiers: []components.Person{}, - }, - }, - Board: &components.AnswerBoard{ - Name: "", - Description: "indolent vainly closely", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 601522, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - Roles: []components.UserRoleSpecification{}, - }, - Collections: []components.Collection{}, - DocumentCategory: types.String(""), - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - Heading: types.String(""), - Question: types.String(""), - QuestionResult: &components.SearchResult{ - StructuredResults: []components.StructuredResult{}, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "name", - ObfuscatedID: "", - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - URL: "https://gorgeous-custom.org/", - Snippets: []components.SearchResultSnippet{}, - RelatedResults: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - Results: []components.SearchResult{}, - }, - }, - AllClusteredResults: []components.ClusterGroup{ - components.ClusterGroup{ - ClusteredResults: []components.SearchResult{}, - VisibleCountHint: 564329, - }, - }, - MustIncludeSuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - Pins: []components.PinDocument{}, - }, - }, - Meeting: &components.Meeting{ - ID: types.String(""), - Title: types.String(""), - Description: types.String("inside dulcimer however sonnet um eek until geez phew"), - StartTime: types.MustNewTimeFromString("2025-10-27T12:29:37.632Z"), - EndTime: types.MustNewTimeFromString("2024-03-28T07:14:42.093Z"), - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - GroupAttendees: []components.CalendarAttendee{}, - }, - }, - }, - }, - App: &components.AppResult{ - Datasource: "", - DocType: types.String(""), - MimeType: types.String(""), - IconURL: types.String("https://bustling-birdbath.org"), - }, - Collection: &components.Collection{ - Name: "", - Description: "unless yuck serenade cuddly rundown neighboring considering upliftingly why", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{}, - Icon: types.String(""), - AdminLocked: types.Bool(false), - ParentID: types.Int64(896826), - AllowedDatasource: types.String(""), - ID: 67110, - CreateTime: types.MustNewTimeFromString("2024-07-30T13:34:32.569Z"), - UpdateTime: types.MustNewTimeFromString("2023-04-24T03:06:17.109Z"), - Creator: &components.Person{ - Name: "", - ObfuscatedID: "", - RelatedDocuments: []components.RelatedDocuments{}, - Metadata: &components.PersonMetadata{ - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - }, - }, - UpdatedBy: &components.Person{ - Name: "", - ObfuscatedID: "", - RelatedDocuments: []components.RelatedDocuments{}, - Metadata: &components.PersonMetadata{ - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - }, - }, - ItemCount: types.Int64(534236), - ChildCount: types.Int64(215291), - Items: []components.CollectionItem{}, - Shortcuts: []string{}, - Children: []components.Collection{}, - Roles: []components.UserRoleSpecification{}, - }, - AnswerBoard: &components.AnswerBoard{ - Name: "", - Description: "innocent downchange ick rudely what youthfully lightly yum", - AddedRoles: []components.UserRoleSpecification{}, - RemovedRoles: []components.UserRoleSpecification{}, - AudienceFilters: []components.FacetFilter{}, - ID: 569914, - CreateTime: types.MustNewTimeFromString("2023-02-12T07:51:20.736Z"), - UpdateTime: types.MustNewTimeFromString("2024-03-18T02:09:52.587Z"), - Creator: &components.Person{ - Name: "", - ObfuscatedID: "", - RelatedDocuments: []components.RelatedDocuments{}, - Metadata: &components.PersonMetadata{ - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - }, - }, - UpdatedBy: &components.Person{ - Name: "", - ObfuscatedID: "", - RelatedDocuments: []components.RelatedDocuments{}, - Metadata: &components.PersonMetadata{ - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - }, - }, - ItemCount: types.Int64(771154), - Roles: []components.UserRoleSpecification{}, - }, - Code: &components.Code{ - RepoName: types.String("scio"), - FileName: types.String("README.md"), - }, - Shortcut: &components.Shortcut{ - InputAlias: "", - DestinationURL: types.String("https://tight-version.org/"), - Description: types.String("however generally ew ha sonar usually slow guacamole"), - Unlisted: types.Bool(false), - URLTemplate: types.String(""), - CreatedBy: &components.Person{ - Name: "", - ObfuscatedID: "", - }, - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdatedBy: &components.Person{ - Name: "", - ObfuscatedID: "", - }, - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{}, - Person: &components.Person{ - Name: "", - ObfuscatedID: "", - RelatedDocuments: []components.RelatedDocuments{}, - Metadata: &components.PersonMetadata{ - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - }, - }, - }, - RelatedDocuments: []components.RelatedDocuments{}, - RelatedQuestion: &components.RelatedQuestion{ - Question: types.String(""), - Answer: types.String(""), - Ranges: []components.TextRange{}, - }, - Disambiguation: &components.Disambiguation{ - Name: types.String(""), - ID: types.String(""), - Type: components.EntityTypePerson.ToPointer(), - }, - Snippets: []components.SearchResultSnippet{}, - TrackingToken: types.String("string"), - Prominence: components.ProminenceHero.ToPointer(), - Source: components.StructuredResultSourceExpertDetection.ToPointer(), - }, - }, - TrackingToken: types.String("string"), - Text: types.String("string"), - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - File: &components.ChatFile{ - ID: types.String("FILE_1234"), - URL: types.String("www.google.com"), - Name: types.String("sample.pdf"), - Metadata: &components.ChatFileMetadata{ - Status: components.ChatFileStatusProcessing.ToPointer(), - UploadTime: types.Int64(0), - ProcessedSize: types.Int64(0), - FailureReason: components.ChatFileFailureReasonParseFailed.ToPointer(), - MimeType: types.String("string"), - }, - }, - Action: &components.ToolInfo{ - Metadata: &components.ToolMetadata{ - Type: components.ToolMetadataTypeRetrieval, - Name: "string", - DisplayName: "string", - ToolID: types.String("string"), - DisplayDescription: "string", - LogoURL: types.String("string"), - ObjectName: types.String("[\"HR ticket\",\"Email\",\"Chat message\"]"), - KnowledgeType: components.KnowledgeTypeNeutralKnowledge.ToPointer(), - CreatedBy: &components.PersonObject{ - Name: "", - ObfuscatedID: "", - }, - LastUpdatedBy: &components.PersonObject{ - Name: "", - ObfuscatedID: "", - }, - CreatedAt: types.MustNewTimeFromString("2019-08-24T14:15:22Z"), - LastUpdatedAt: types.MustNewTimeFromString("2019-08-24T14:15:22Z"), - WriteActionType: components.WriteActionTypeRedirect.ToPointer(), - AuthType: components.AuthTypeNone.ToPointer(), - Auth: &components.AuthConfig{ - IsOnPrem: types.Bool(true), - UsesCentralAuth: types.Bool(false), - Type: components.AuthConfigTypeDwd.ToPointer(), - GrantType: components.GrantTypeAuthCode.ToPointer(), - Status: components.AuthConfigStatusAuthorized.ToPointer(), - ClientURL: types.String("https://woeful-trench.com/"), - Scopes: []string{}, - Audiences: []string{}, - AuthorizationURL: types.String("https://imaginative-premium.com/"), - LastAuthorizedAt: types.MustNewTimeFromString("2023-12-19T20:03:14.149Z"), - }, - Permissions: &components.ObjectPermissions{}, - UsageInstructions: types.String("string"), - IsSetupFinished: types.Bool(true), - }, - Parameters: map[string]components.WriteActionParameter{ - "property1": components.WriteActionParameter{ - Type: components.WriteActionParameterTypeUnknown.ToPointer(), - DisplayName: types.String("Shemar63"), - Value: types.String(""), - IsRequired: types.Bool(true), - Description: types.String("handle unlike unlike fen gently or exotic mortally nor"), - PossibleValues: []components.PossibleValue{}, - }, - "property2": components.WriteActionParameter{ - Type: components.WriteActionParameterTypeString.ToPointer(), - DisplayName: types.String("Ahmad_Reichel95"), - Value: types.String(""), - IsRequired: types.Bool(false), - Description: types.String("mmm premise pro instead bleakly starch including per ill-fated"), - PossibleValues: []components.PossibleValue{}, - }, - }, - }, - }, - }, - Ts: types.String("string"), - MessageID: types.String("string"), - MessageTrackingToken: types.String("string"), - MessageType: components.MessageTypeUpdate.ToPointer(), - HasMoreFragments: types.Bool(true), - }, - }, - }, - TrackingToken: types.String("string"), - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go deleted file mode 100644 index c7983c60..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Getchatapplication(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getchatapplication[0]": - dir.HandlerFunc("getchatapplication", testGetchatapplicationGetchatapplication0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetchatapplicationGetchatapplication0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetChatApplicationResponse = &components.GetChatApplicationResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getchatfiles.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchatfiles.go deleted file mode 100644 index 73feb6db..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getchatfiles.go +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Getchatfiles(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getchatfiles[0]": - dir.HandlerFunc("getchatfiles", testGetchatfilesGetchatfiles0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetchatfilesGetchatfiles0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetChatFilesResponse = &components.GetChatFilesResponse{ - Files: map[string]components.ChatFile{ - "key": components.ChatFile{ - ID: types.String("FILE_1234"), - URL: types.String("www.google.com"), - Name: types.String("sample.pdf"), - }, - "key1": components.ChatFile{ - ID: types.String("FILE_1234"), - URL: types.String("www.google.com"), - Name: types.String("sample.pdf"), - }, - "key2": components.ChatFile{ - ID: types.String("FILE_1234"), - URL: types.String("www.google.com"), - Name: types.String("sample.pdf"), - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getcollection.go b/tests/mockserver/internal/handler/pathpostrestapiv1getcollection.go deleted file mode 100644 index 73d2c0af..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getcollection.go +++ /dev/null @@ -1,1343 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Getcollection(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getcollection[0]": - dir.HandlerFunc("getcollection", testGetcollectionGetcollection0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetcollectionGetcollection0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetCollectionResponse = &components.GetCollectionResponse{ - Collection: &components.Collection{ - Name: "", - Description: "for carefully glorious scrabble ignite aw showboat", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 607679, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 397483, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 392574, - }, - components.Share{ - NumDaysAgo: 908293, - }, - components.Share{ - NumDaysAgo: 754054, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 149108, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 741131, - }, - }, - LastReminder: &components.Reminder{ - RemindAt: 503671, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 486669, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastReminder: &components.Reminder{ - RemindAt: 81373, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 165215, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastReminder: &components.Reminder{ - RemindAt: 666980, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 25042, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 168726, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 491026, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 844917, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - }, - }, - RootCollection: &components.Collection{ - Name: "", - Description: "aw fibre hassle freezing but conversation under", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 22258, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getdocpermissions.go b/tests/mockserver/internal/handler/pathpostrestapiv1getdocpermissions.go deleted file mode 100644 index 3d7e842f..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getdocpermissions.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Getdocpermissions(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getdocpermissions[0]": - dir.HandlerFunc("getdocpermissions", testGetdocpermissionsGetdocpermissions0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetdocpermissionsGetdocpermissions0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetDocPermissionsResponse = &components.GetDocPermissionsResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getdocuments.go b/tests/mockserver/internal/handler/pathpostrestapiv1getdocuments.go deleted file mode 100644 index 453834ab..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getdocuments.go +++ /dev/null @@ -1,79 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Getdocuments(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getdocuments[0]": - dir.HandlerFunc("getdocuments", testGetdocumentsGetdocuments0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetdocumentsGetdocuments0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", false); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetDocumentsResponse = &components.GetDocumentsResponse{ - Documents: map[string]components.DocumentOrErrorUnion{ - "key": components.CreateDocumentOrErrorUnionDocument( - components.Document{}, - ), - "key1": components.CreateDocumentOrErrorUnionDocument( - components.Document{}, - ), - "key2": components.CreateDocumentOrErrorUnionDocument( - components.Document{}, - ), - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getdocumentsbyfacets.go b/tests/mockserver/internal/handler/pathpostrestapiv1getdocumentsbyfacets.go deleted file mode 100644 index f0bc0e67..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getdocumentsbyfacets.go +++ /dev/null @@ -1,1341 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Getdocumentsbyfacets(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getdocumentsbyfacets[0]": - dir.HandlerFunc("getdocumentsbyfacets", testGetdocumentsbyfacetsGetdocumentsbyfacets0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetdocumentsbyfacetsGetdocumentsbyfacets0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", false); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetDocumentsByFacetsResponse = &components.GetDocumentsByFacetsResponse{ - Documents: []components.Document{ - components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 847689, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 244762, - }, - components.TextRange{ - StartIndex: 577503, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 946448, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - MentionedPeople: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "since unlike huzzah chunder ignite loftily bar circa flame", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 327937, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 69838, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeDocument, - }, - components.CollectionItem{ - CollectionID: 996681, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeText, - }, - components.CollectionItem{ - CollectionID: 480101, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeDocument, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{ - Reactors: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 414155, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 818513, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 511688, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getpin.go b/tests/mockserver/internal/handler/pathpostrestapiv1getpin.go deleted file mode 100644 index 211f85f5..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getpin.go +++ /dev/null @@ -1,613 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Getpin(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getpin[0]": - dir.HandlerFunc("getpin", testGetpinGetpin0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetpinGetpin0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetPinResponse = &components.GetPinResponse{ - Pin: &components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 544221, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 969961, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "extract neaten qua meanwhile bah", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 808481, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 656841, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 607679, - ItemType: components.CollectionItemItemTypeCollection, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - }, - }, - components.Collection{ - Name: "", - Description: "once out effector determined backburn weary", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 547184, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 31446, - }, - components.Share{ - NumDaysAgo: 339847, - }, - components.Share{ - NumDaysAgo: 844917, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 845806, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 350813, - }, - }, - LastReminder: &components.Reminder{ - RemindAt: 534384, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 913207, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastReminder: &components.Reminder{ - RemindAt: 533795, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 949290, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 716267, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getshortcut.go b/tests/mockserver/internal/handler/pathpostrestapiv1getshortcut.go deleted file mode 100644 index 97cd66fe..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getshortcut.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Getshortcut(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "getshortcut[0]": - dir.HandlerFunc("getshortcut", testGetshortcutGetshortcut0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testGetshortcutGetshortcut0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.GetShortcutResponse = &components.GetShortcutResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1insights.go b/tests/mockserver/internal/handler/pathpostrestapiv1insights.go deleted file mode 100644 index 02d5ac19..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1insights.go +++ /dev/null @@ -1,5270 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Insights(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "insights[0]": - dir.HandlerFunc("insights", testInsightsInsights0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testInsightsInsights0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.InsightsResponse = &components.InsightsResponse{ - Users: &components.UserInsightsResponse{ - ActivityInsights: []components.UserActivityInsight{ - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 450824, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 213457, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "yahoo disapprove glum ugh roundabout middle ha rise readily", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 237994, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 256758, - ItemType: components.CollectionItemItemTypeCollection, - }, - components.CollectionItem{ - CollectionID: 783459, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 188420, - ItemType: components.CollectionItemItemTypeText, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - }, - }, - components.Collection{ - Name: "", - Description: "bell unabashedly unwilling disk", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 698722, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 365275, - }, - components.Share{ - NumDaysAgo: 790898, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 856562, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 328633, - }, - }, - LastReminder: &components.Reminder{ - RemindAt: 287673, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 140875, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 210313, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumSearch, - }, - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumAll, - }, - }, - InactiveInsights: []components.UserActivityInsight{ - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumSearch, - }, - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumSearch, - }, - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumAll, - }, - }, - }, - Content: &components.ContentInsightsResponse{ - DocumentInsights: []components.DocumentInsight{ - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 783566, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 519998, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 500839, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Collections: &components.ContentInsightsResponse{ - DocumentInsights: []components.DocumentInsight{ - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 609810, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 413854, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 150399, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - CollectionsV2: &components.ContentInsightsResponse{ - DocumentInsights: []components.DocumentInsight{ - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 148964, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 541220, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 222075, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Announcements: &components.ContentInsightsResponse{ - DocumentInsights: []components.DocumentInsight{ - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 15843, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Answers: &components.ContentInsightsResponse{ - DocumentInsights: []components.DocumentInsight{ - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 39567, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 892341, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.DocumentInsight{ - Document: components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 486092, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Ai: &components.AiInsightsResponse{ - AssistantInsights: []components.UserActivityInsight{ - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumSearch, - }, - }, - }, - AiApps: &components.AiAppsInsightsResponse{ - AiAppInsights: []components.UserActivityInsight{ - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumSearch, - }, - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumAll, - }, - }, - }, - GleanAssist: &components.GleanAssistInsightsResponse{ - ActivityInsights: []components.UserActivityInsight{ - components.UserActivityInsight{ - User: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Activity: components.ActivityEnumSearch, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1listanswers.go b/tests/mockserver/internal/handler/pathpostrestapiv1listanswers.go deleted file mode 100644 index f14faccd..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1listanswers.go +++ /dev/null @@ -1,3505 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Listanswers(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "listanswers[0]": - dir.HandlerFunc("listanswers", testListanswersListanswers0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testListanswersListanswers0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.ListAnswersResponse = &components.ListAnswersResponse{ - AnswerResults: []components.AnswerResult{ - components.AnswerResult{ - Answer: components.Answer{ - ID: 3, - DocID: types.String("ANSWERS_answer_3"), - Question: types.String("Why is the sky blue?"), - BodyText: types.String("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: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 229716, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 635532, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "avalanche jungle unto meanwhile beside tromp worth reluctantly", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 781409, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 66993, - ItemType: components.CollectionItemItemTypeDocument, - }, - components.CollectionItem{ - CollectionID: 294083, - ItemType: components.CollectionItemItemTypeCollection, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 678179, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 810770, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 956959, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 948614, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 20615, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - }, - CombinedAnswerText: &components.StructuredText{ - 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: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 370293, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{}, - LikedByUser: false, - NumLikes: 50388, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 487446, - }, - }, - }, - Board: &components.AnswerBoard{ - Name: "", - Description: "boo massive sorrowful aw strict behind along energetic oddball", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 472871, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 367314, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - components.AnswerResult{ - Answer: components.Answer{ - ID: 3, - DocID: types.String("ANSWERS_answer_3"), - Question: types.String("Why is the sky blue?"), - BodyText: types.String("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: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - CombinedAnswerText: &components.StructuredText{ - 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.", - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{}, - LikedByUser: false, - NumLikes: 233358, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 536405, - }, - }, - }, - Board: &components.AnswerBoard{ - Name: "", - Description: "likely up questionably forgery glow warmhearted", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 674469, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 359708, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - components.AnswerResult{ - Answer: components.Answer{ - ID: 3, - DocID: types.String("ANSWERS_answer_3"), - Question: types.String("Why is the sky blue?"), - BodyText: types.String("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: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - CombinedAnswerText: &components.StructuredText{ - 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.", - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{}, - LikedByUser: true, - NumLikes: 80289, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 327973, - }, - }, - }, - Board: &components.AnswerBoard{ - Name: "", - Description: "freely overcook till boo ack", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 477827, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 238432, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1listchats.go b/tests/mockserver/internal/handler/pathpostrestapiv1listchats.go deleted file mode 100644 index 536c92db..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1listchats.go +++ /dev/null @@ -1,634 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Listchats(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "listchats[0]": - dir.HandlerFunc("listchats", testListchatsListchats0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testListchatsListchats0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.ListChatsResponse = &components.ListChatsResponse{ - ChatResults: []components.ChatMetadataResult{ - components.ChatMetadataResult{ - Chat: &components.ChatMetadata{ - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 177706, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 152837, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "accountability pish likewise", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleAnswerModerator, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 425334, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 480616, - ItemType: components.CollectionItemItemTypeDocument, - }, - components.CollectionItem{ - CollectionID: 523875, - ItemType: components.CollectionItemItemTypeCollection, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - }, - }, - components.Collection{ - Name: "", - Description: "safely briefly ugh fen", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 96709, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 5229, - }, - components.Share{ - NumDaysAgo: 810770, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 505778, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 948614, - }, - components.Reminder{ - RemindAt: 900109, - }, - }, - LastReminder: &components.Reminder{ - RemindAt: 20615, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 726700, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Icon: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - components.ChatMetadataResult{ - Chat: &components.ChatMetadata{ - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Icon: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - components.ChatMetadataResult{ - Chat: &components.ChatMetadata{ - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Icon: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1listcollections.go b/tests/mockserver/internal/handler/pathpostrestapiv1listcollections.go deleted file mode 100644 index b9d78920..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1listcollections.go +++ /dev/null @@ -1,1915 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Listcollections(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "listcollections[0]": - dir.HandlerFunc("listcollections", testListcollectionsListcollections0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testListcollectionsListcollections0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.ListCollectionsResponse = &components.ListCollectionsResponse{ - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "yuck accountability pish likewise excepting unimpressively quickly", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 692918, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 838930, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 164965, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 777245, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 141764, - }, - components.Reminder{ - RemindAt: 664080, - }, - }, - LastReminder: &components.Reminder{ - RemindAt: 284580, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 544651, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastReminder: &components.Reminder{ - RemindAt: 60868, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 993305, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 258945, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleVerifier, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 29267, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 408066, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 370293, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeDocument, - }, - components.CollectionItem{ - CollectionID: 900911, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 462343, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeDocument, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - components.Collection{ - Name: "", - Description: "massive sorrowful aw", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 314888, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.Collection{ - Name: "", - Description: "merrily wherever failing orchestrate lest", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 895039, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1listentities.go b/tests/mockserver/internal/handler/pathpostrestapiv1listentities.go deleted file mode 100644 index 51b67092..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1listentities.go +++ /dev/null @@ -1,717 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Listentities(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "listentities[0]": - dir.HandlerFunc("listentities", testListentitiesListentities0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testListentitiesListentities0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.ListEntitiesResponse = &components.ListEntitiesResponse{ - Results: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - TeamResults: []components.Team{ - components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 229716, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 635532, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "avalanche jungle unto meanwhile beside tromp worth reluctantly", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 294083, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 747562, - ItemType: components.CollectionItemItemTypeText, - }, - components.CollectionItem{ - CollectionID: 324206, - ItemType: components.CollectionItemItemTypeDocument, - }, - components.CollectionItem{ - CollectionID: 678179, - ItemType: components.CollectionItemItemTypeText, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Role: components.UserRoleAnswerModerator, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 20615, - }, - components.Share{ - NumDaysAgo: 467775, - }, - components.Share{ - NumDaysAgo: 993677, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 406555, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 29267, - }, - components.Reminder{ - RemindAt: 652326, - }, - }, - LastReminder: &components.Reminder{ - RemindAt: 688784, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 41398, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 329360, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Relationship: components.PersonToTeamRelationshipRelationshipMember.ToPointer(), - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Relationship: components.PersonToTeamRelationshipRelationshipMember.ToPointer(), - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - Status: components.TeamStatusProcessed.ToPointer(), - CanBeDeleted: types.Bool(true), - }, - components.Team{ - ID: "", - Name: "", - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - Status: components.TeamStatusProcessed.ToPointer(), - CanBeDeleted: types.Bool(true), - }, - components.Team{ - ID: "", - Name: "", - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - Status: components.TeamStatusProcessed.ToPointer(), - CanBeDeleted: types.Bool(true), - }, - }, - CustomEntityResults: []components.CustomEntity{ - components.CustomEntity{}, - components.CustomEntity{}, - }, - FacetResults: []components.FacetResult{ - components.FacetResult{ - SourceName: types.String("container_name"), - OperatorName: types.String("SelectMultiple"), - Buckets: []components.FacetBucket{ - components.FacetBucket{ - Count: types.Int64(1), - Datasource: types.String("jira"), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("engineering"), - IntegerValue: types.Int64(5), - DisplayLabel: types.String("engineering"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - HasMoreBuckets: types.Bool(false), - GroupName: types.String("Service Cloud"), - }, - components.FacetResult{ - SourceName: types.String("container_name"), - OperatorName: types.String("SelectMultiple"), - Buckets: []components.FacetBucket{ - components.FacetBucket{ - Count: types.Int64(1), - Datasource: types.String("jira"), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("engineering"), - IntegerValue: types.Int64(5), - DisplayLabel: types.String("engineering"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - HasMoreBuckets: types.Bool(false), - GroupName: types.String("Service Cloud"), - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1listpins.go b/tests/mockserver/internal/handler/pathpostrestapiv1listpins.go deleted file mode 100644 index 5590107d..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1listpins.go +++ /dev/null @@ -1,700 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Listpins(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "listpins[0]": - dir.HandlerFunc("listpins", testListpinsListpins0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testListpinsListpins0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.ListPinsResponse = &components.ListPinsResponse{ - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 177706, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 152837, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "bah since zowie loudly aha although gosh whenever", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 544651, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 60868, - ItemType: components.CollectionItemItemTypeText, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - }, - }, - components.Collection{ - Name: "", - Description: "via during someplace woot excepting gah only despite", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 933854, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 500063, - }, - components.Share{ - NumDaysAgo: 206163, - }, - components.Share{ - NumDaysAgo: 310383, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 838038, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 517221, - }, - }, - LastReminder: &components.Reminder{ - RemindAt: 774578, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 213989, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1listshortcuts.go b/tests/mockserver/internal/handler/pathpostrestapiv1listshortcuts.go deleted file mode 100644 index 6591d82a..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1listshortcuts.go +++ /dev/null @@ -1,162 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Listshortcuts(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "listshortcuts[0]": - dir.HandlerFunc("listshortcuts", testListshortcutsListshortcuts0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testListshortcutsListshortcuts0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.ListShortcutsPaginatedResponse = &components.ListShortcutsPaginatedResponse{ - Shortcuts: []components.Shortcut{ - components.Shortcut{ - InputAlias: "", - DestinationURL: types.String("https://remorseful-concentration.biz"), - CreatedBy: &components.Person{ - Name: "", - ObfuscatedID: "", - }, - }, - components.Shortcut{ - InputAlias: "", - DestinationURL: types.String("https://primary-paintwork.com/"), - CreatedBy: &components.Person{ - Name: "", - ObfuscatedID: "", - }, - }, - components.Shortcut{ - InputAlias: "", - DestinationURL: types.String("https://breakable-bathrobe.net"), - CreatedBy: &components.Person{ - Name: "", - ObfuscatedID: "", - }, - }, - }, - FacetResults: []components.FacetResult{ - components.FacetResult{ - SourceName: types.String("container_name"), - OperatorName: types.String("SelectMultiple"), - Buckets: []components.FacetBucket{ - components.FacetBucket{ - Count: types.Int64(1), - Datasource: types.String("jira"), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("engineering"), - IntegerValue: types.Int64(5), - DisplayLabel: types.String("engineering"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - components.FacetBucket{ - Count: types.Int64(1), - Datasource: types.String("jira"), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("engineering"), - IntegerValue: types.Int64(5), - DisplayLabel: types.String("engineering"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - HasMoreBuckets: types.Bool(false), - GroupName: types.String("Service Cloud"), - }, - components.FacetResult{ - SourceName: types.String("container_name"), - OperatorName: types.String("SelectMultiple"), - Buckets: []components.FacetBucket{ - components.FacetBucket{ - Count: types.Int64(1), - Datasource: types.String("jira"), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("engineering"), - IntegerValue: types.Int64(5), - DisplayLabel: types.String("engineering"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - HasMoreBuckets: types.Bool(false), - GroupName: types.String("Service Cloud"), - }, - }, - Meta: components.ShortcutsPaginationMetadata{}, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1listverifications.go b/tests/mockserver/internal/handler/pathpostrestapiv1listverifications.go deleted file mode 100644 index 4cec558e..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1listverifications.go +++ /dev/null @@ -1,1716 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Listverifications(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "listverifications[0]": - dir.HandlerFunc("listverifications", testListverificationsListverifications0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testListverificationsListverifications0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.VerificationFeed = &components.VerificationFeed{ - Documents: []components.Verification{ - components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 229716, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 635532, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "avalanche jungle unto meanwhile beside tromp worth reluctantly", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 294083, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 747562, - ItemType: components.CollectionItemItemTypeText, - }, - components.CollectionItem{ - CollectionID: 324206, - ItemType: components.CollectionItemItemTypeDocument, - }, - components.CollectionItem{ - CollectionID: 678179, - ItemType: components.CollectionItemItemTypeText, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Role: components.UserRoleAnswerModerator, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 20615, - }, - components.Share{ - NumDaysAgo: 467775, - }, - components.Share{ - NumDaysAgo: 993677, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 406555, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 652326, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 370293, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 900911, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 424586, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 221489, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 277523, - }, - }, - }, - components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 749833, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1messages.go b/tests/mockserver/internal/handler/pathpostrestapiv1messages.go deleted file mode 100644 index 41144f0e..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1messages.go +++ /dev/null @@ -1,8718 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Messages(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "messages[0]": - dir.HandlerFunc("messages", testMessagesMessages0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testMessagesMessages0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.MessagesResponse = &components.MessagesResponse{ - HasMore: false, - SearchResponse: &components.SearchResponse{ - TrackingToken: types.String("trackingToken"), - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 450824, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 213457, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 438142, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 78888, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - MentionedPeople: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "meanwhile bah because impassioned responsibility jogging airman per", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 168726, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 491026, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleVerifier, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{ - Reactors: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 845806, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.Share{ - NumDaysAgo: 534384, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 387819, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 698722, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 365275, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: types.String("New York City"), - Industry: types.String("Finances"), - About: types.String("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: types.String("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Relationship: components.PersonToTeamRelationshipRelationshipMember.ToPointer(), - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - Status: components.TeamStatusProcessed.ToPointer(), - CanBeDeleted: types.Bool(true), - }, - CustomEntity: &components.CustomEntity{}, - Answer: &components.Answer{ - ID: 3, - DocID: types.String("ANSWERS_answer_3"), - Question: types.String("Why is the sky blue?"), - BodyText: types.String("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: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - CombinedAnswerText: &components.StructuredText{ - 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: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 637897, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 960234, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 163922, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{ - components.AnswerLike{ - User: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LikedByUser: true, - NumLikes: 750176, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 194354, - }, - }, - }, - Board: &components.AnswerBoard{ - Name: "", - Description: "absolve beside makeover amidst diver if behind drat", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 435401, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 382213, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 990860, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - RelatedResults: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 820095, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 346523, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 193124, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - AllClusteredResults: []components.ClusterGroup{ - components.ClusterGroup{ - VisibleCountHint: 197787, - }, - components.ClusterGroup{ - VisibleCountHint: 60189, - }, - }, - MustIncludeSuggestions: &components.QuerySuggestionList{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 478496, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "baptise kick ick gosh stall phew", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 999561, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - AnswerBoard: &components.AnswerBoard{ - Name: "", - Description: "unnecessarily medium following pfft bashfully before", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 534236, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - Code: &components.Code{ - RepoName: types.String("scio"), - FileName: types.String("README.md"), - Lines: []components.CodeLine{ - components.CodeLine{}, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{}, - }, - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 972200, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: types.String("New York City"), - Industry: types.String("Finances"), - About: types.String("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Notes: types.String("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - Status: components.TeamStatusProcessed.ToPointer(), - CanBeDeleted: types.Bool(true), - }, - CustomEntity: &components.CustomEntity{}, - Answer: &components.Answer{ - ID: 3, - DocID: types.String("ANSWERS_answer_3"), - Question: types.String("Why is the sky blue?"), - BodyText: types.String("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: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - CombinedAnswerText: &components.StructuredText{ - 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.", - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{}, - LikedByUser: false, - NumLikes: 738008, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 688038, - }, - }, - }, - Board: &components.AnswerBoard{ - Name: "", - Description: "parade since delightfully", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 207365, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 961784, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 61187, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - MustIncludeSuggestions: &components.QuerySuggestionList{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 950775, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{}, - }, - Collection: &components.Collection{ - Name: "", - Description: "whereas chubby bah er taut toward footrest victorious custody huzzah", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 863294, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - AnswerBoard: &components.AnswerBoard{ - Name: "", - Description: "er until seal er", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 591321, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - Code: &components.Code{ - RepoName: types.String("scio"), - FileName: types.String("README.md"), - }, - QuerySuggestions: &components.QuerySuggestionList{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{}, - }, - }, - GeneratedQnaResult: &components.GeneratedQna{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 73819, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 743152, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - GleanDataError: &components.GleanDataError{ - ErrorMessages: []components.ErrorMessage{ - components.ErrorMessage{ - Source: types.String("gmail"), - ErrorMessage: types.String("invalid token"), - }, - components.ErrorMessage{ - Source: types.String("slack"), - ErrorMessage: types.String("expired token"), - }, - }, - }, - RequestID: types.String("5e345ae500ff0befa2b9d1a3ba0001737e7363696f312d323535323137000171756572792d656e64706f696e743a323032303031333074313830343032000100"), - BackendTimeMillis: types.Int64(1100), - Metadata: &components.SearchResponseMetadata{ - SearchedQueryRanges: []components.TextRange{ - components.TextRange{ - StartIndex: 245129, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 298813, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 147593, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 954659, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 600259, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 195022, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 801589, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - AdditionalQuerySuggestions: &components.QuerySuggestionList{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - FacetResults: []components.FacetResult{ - components.FacetResult{ - SourceName: types.String("container_name"), - OperatorName: types.String("SelectMultiple"), - Buckets: []components.FacetBucket{ - components.FacetBucket{ - Count: types.Int64(1), - Datasource: types.String("jira"), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("engineering"), - IntegerValue: types.Int64(5), - DisplayLabel: types.String("engineering"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - components.FacetBucket{ - Count: types.Int64(1), - Datasource: types.String("jira"), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("engineering"), - IntegerValue: types.Int64(5), - DisplayLabel: types.String("engineering"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - HasMoreBuckets: types.Bool(false), - GroupName: types.String("Service Cloud"), - }, - components.FacetResult{ - SourceName: types.String("container_name"), - OperatorName: types.String("SelectMultiple"), - Buckets: []components.FacetBucket{ - components.FacetBucket{ - Count: types.Int64(1), - Datasource: types.String("jira"), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("engineering"), - IntegerValue: types.Int64(5), - DisplayLabel: types.String("engineering"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - components.FacetBucket{ - Count: types.Int64(1), - Datasource: types.String("jira"), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("engineering"), - IntegerValue: types.Int64(5), - DisplayLabel: types.String("engineering"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - HasMoreBuckets: types.Bool(false), - GroupName: types.String("Service Cloud"), - }, - }, - ResultsDescription: &components.ResultsDescription{ - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - RewrittenFacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - HasMoreResults: types.Bool(true), - }, - RootMessage: &components.SearchResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 733319, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - MustIncludeSuggestions: &components.QuerySuggestionList{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 359740, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1people.go b/tests/mockserver/internal/handler/pathpostrestapiv1people.go deleted file mode 100644 index 5c63d19b..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1people.go +++ /dev/null @@ -1,1640 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1People(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "people[0]": - dir.HandlerFunc("people", testPeoplePeople0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPeoplePeople0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.PeopleResponse = &components.PeopleResponse{ - Results: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 325985, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 5324, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{ - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - components.CreateCustomFieldValueCustomFieldValueStr( - components.CustomFieldValueStr{}, - ), - }, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - MentionedPeople: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "underneath whoa electronics tributary", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 544551, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 450370, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeDocument, - }, - components.CollectionItem{ - CollectionID: 574783, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeText, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - }, - components.Collection{ - Name: "", - Description: "playfully heavy finally altruistic whenever er utter notwithstanding", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 372647, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.Collection{ - Name: "", - Description: "boohoo analogy hm and rise weight", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 705939, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{ - Reactors: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 406671, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 870639, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 945399, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 970028, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1pin.go b/tests/mockserver/internal/handler/pathpostrestapiv1pin.go deleted file mode 100644 index 347e0bb1..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1pin.go +++ /dev/null @@ -1,554 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Pin(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "pin[0]": - dir.HandlerFunc("pin", testPinPin0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPinPin0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.PinDocument = &components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 417458, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 69025, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "vice between gee", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 550483, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 452224, - ItemType: components.CollectionItemItemTypeText, - }, - components.CollectionItem{ - CollectionID: 259772, - ItemType: components.CollectionItemItemTypeCollection, - }, - components.CollectionItem{ - CollectionID: 137324, - ItemType: components.CollectionItemItemTypeURL, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Role: components.UserRoleAnswerModerator, - }, - }, - }, - components.Collection{ - Name: "", - Description: "attend alongside aw blend ha ew", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 497070, - }, - components.Collection{ - Name: "", - Description: "embalm simple ouch when pfft ah vainly", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 154150, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 842284, - }, - components.Share{ - NumDaysAgo: 466260, - }, - components.Share{ - NumDaysAgo: 931588, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 982866, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - RemindAt: 482357, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 150565, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1recommendations.go b/tests/mockserver/internal/handler/pathpostrestapiv1recommendations.go deleted file mode 100644 index cd02b02d..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1recommendations.go +++ /dev/null @@ -1,5663 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Recommendations(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "recommendations[0]": - dir.HandlerFunc("recommendations", testRecommendationsRecommendations0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testRecommendationsRecommendations0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.ResultsResponse = &components.ResultsResponse{ - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - StructuredResults: []components.StructuredResult{ - components.StructuredResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 257594, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 538524, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 650257, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - MentionedPeople: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "dusk entwine cease than materialise whenever fireplace eek", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 71727, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 102105, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeCollection, - }, - components.CollectionItem{ - CollectionID: 515424, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeDocument, - }, - components.CollectionItem{ - CollectionID: 330168, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeText, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleVerifier, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{ - Reactors: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 364853, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.Share{ - NumDaysAgo: 533353, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.Share{ - NumDaysAgo: 82419, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 606221, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 33153, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 624169, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 535774, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Customer: &components.Customer{ - ID: "", - Company: components.Company{ - Name: "", - Location: types.String("New York City"), - Industry: types.String("Finances"), - About: types.String("Financial, software, data, and media company headquartered in Midtown Manhattan, New York City"), - }, - Poc: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Notes: types.String("CIO is interested in trying out the product."), - }, - Team: &components.Team{ - ID: "", - Name: "", - Members: []components.PersonToTeamRelationship{ - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Relationship: components.PersonToTeamRelationshipRelationshipMember.ToPointer(), - }, - components.PersonToTeamRelationship{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Relationship: components.PersonToTeamRelationshipRelationshipMember.ToPointer(), - }, - }, - DatasourceProfiles: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - Status: components.TeamStatusProcessed.ToPointer(), - CanBeDeleted: types.Bool(true), - }, - CustomEntity: &components.CustomEntity{}, - Answer: &components.Answer{ - ID: 3, - DocID: types.String("ANSWERS_answer_3"), - Question: types.String("Why is the sky blue?"), - BodyText: types.String("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: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - CombinedAnswerText: &components.StructuredText{ - 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: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 962229, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 395713, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - Likes: &components.AnswerLikes{ - LikedBy: []components.AnswerLike{}, - LikedByUser: false, - NumLikes: 297770, - }, - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 752324, - }, - }, - }, - Board: &components.AnswerBoard{ - Name: "", - Description: "adventurously notwithstanding canter generously tenderly helpfully front schnitzel", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 324124, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 912614, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - ExtractedQnA: &components.ExtractedQnA{ - QuestionResult: &components.SearchResult{ - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 565417, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - RelatedResults: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 358317, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 116602, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 975675, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - AllClusteredResults: []components.ClusterGroup{ - components.ClusterGroup{ - VisibleCountHint: 49580, - }, - components.ClusterGroup{ - VisibleCountHint: 242509, - }, - components.ClusterGroup{ - VisibleCountHint: 812000, - }, - }, - MustIncludeSuggestions: &components.QuerySuggestionList{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 952650, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Meeting: &components.Meeting{ - Attendees: &components.CalendarAttendees{ - People: []components.CalendarAttendee{ - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.CalendarAttendee{ - Person: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - Collection: &components.Collection{ - Name: "", - Description: "furthermore hence formal tune flowery aside the schedule witty", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 965, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - AnswerBoard: &components.AnswerBoard{ - Name: "", - Description: "fess um whoa times boohoo down", - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 762536, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - Code: &components.Code{ - RepoName: types.String("scio"), - FileName: types.String("README.md"), - Lines: []components.CodeLine{ - components.CodeLine{}, - components.CodeLine{}, - components.CodeLine{}, - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - RelatedQuestion: &components.RelatedQuestion{}, - }, - }, - GeneratedQnaResult: &components.GeneratedQna{ - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 389859, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 916413, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 63382, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateVerified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 928524, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 466270, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 569654, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - BackendTimeMillis: types.Int64(1100), - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1search.go b/tests/mockserver/internal/handler/pathpostrestapiv1search.go deleted file mode 100644 index f2fcf477..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1search.go +++ /dev/null @@ -1,163 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Search(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "search[0]": - dir.HandlerFunc("search", testSearchSearch0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testSearchSearch0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.SearchResponse = &components.SearchResponse{ - TrackingToken: types.String("trackingToken"), - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://www.example.com/", - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - components.SearchResult{ - Title: types.String("title"), - URL: "https://www.example.com/", - Snippets: []components.SearchResultSnippet{}, - }, - }, - GleanDataError: &components.GleanDataError{ - ErrorMessages: []components.ErrorMessage{ - components.ErrorMessage{ - Source: types.String("gmail"), - ErrorMessage: types.String("invalid token"), - }, - components.ErrorMessage{ - Source: types.String("slack"), - ErrorMessage: types.String("expired token"), - }, - }, - }, - RequestID: types.String("5e345ae500ff0befa2b9d1a3ba0001737e7363696f312d323535323137000171756572792d656e64706f696e743a323032303031333074313830343032000100"), - FacetResults: []components.FacetResult{ - components.FacetResult{ - SourceName: types.String("sourceName"), - OperatorName: types.String("operatorName"), - Buckets: []components.FacetBucket{ - components.FacetBucket{ - Count: types.Int64(1), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("stringValue"), - IntegerValue: types.Int64(5), - }, - }, - components.FacetBucket{ - Count: types.Int64(1), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("stringValue"), - IntegerValue: types.Int64(5), - }, - }, - }, - }, - components.FacetResult{ - SourceName: types.String("sourceName"), - OperatorName: types.String("operatorName"), - Buckets: []components.FacetBucket{ - components.FacetBucket{ - Count: types.Int64(1), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("stringValue"), - IntegerValue: types.Int64(5), - }, - }, - components.FacetBucket{ - Count: types.Int64(1), - Percentage: types.Int64(5), - Value: &components.FacetValue{ - StringValue: types.String("stringValue"), - IntegerValue: types.Int64(5), - }, - }, - }, - }, - }, - RewrittenFacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("fieldName"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{}, - components.FacetFilterValue{}, - }, - }, - components.FacetFilter{ - FieldName: types.String("fieldName"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{}, - components.FacetFilterValue{}, - }, - }, - }, - HasMoreResults: types.Bool(true), - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1summarize.go b/tests/mockserver/internal/handler/pathpostrestapiv1summarize.go deleted file mode 100644 index 2184efd6..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1summarize.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Summarize(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "summarize[0]": - dir.HandlerFunc("summarize", testSummarizeSummarize0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testSummarizeSummarize0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.SummarizeResponse = &components.SummarizeResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1toolscall.go b/tests/mockserver/internal/handler/pathpostrestapiv1toolscall.go deleted file mode 100644 index 1676df61..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1toolscall.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1ToolsCall(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "post_/rest/api/v1/tools/call[0]": - dir.HandlerFunc("post_/rest/api/v1/tools/call", testPostRestAPIV1ToolsCallPostRestAPIV1ToolsCall0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testPostRestAPIV1ToolsCallPostRestAPIV1ToolsCall0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.ToolsCallResponse = &components.ToolsCallResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1unpin.go b/tests/mockserver/internal/handler/pathpostrestapiv1unpin.go deleted file mode 100644 index c1a7228b..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1unpin.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Unpin(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "unpin[0]": - dir.HandlerFunc("unpin", testUnpinUnpin0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testUnpinUnpin0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"*/*"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - - w.WriteHeader(http.StatusOK) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1updateannouncement.go b/tests/mockserver/internal/handler/pathpostrestapiv1updateannouncement.go deleted file mode 100644 index 89382abe..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1updateannouncement.go +++ /dev/null @@ -1,2580 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Updateannouncement(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "updateannouncement[0]": - dir.HandlerFunc("updateannouncement", testUpdateannouncementUpdateannouncement0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testUpdateannouncementUpdateannouncement0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.Announcement = &components.Announcement{ - Body: &components.StructuredText{ - 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: []components.StructuredTextItem{ - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 517232, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 676467, - }, - components.TextRange{ - StartIndex: 749867, - }, - components.TextRange{ - StartIndex: 595467, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 454586, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - MentionedPeople: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - Attribution: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "queasily down worthy generously than narrate pish off", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleOwner, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 162698, - Creator: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 553022, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeURL, - }, - components.CollectionItem{ - CollectionID: 322125, - CreatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - ItemType: components.CollectionItemItemTypeText, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleViewer, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleEditor, - }, - components.UserRoleSpecification{ - Person: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Role: components.UserRoleAnswerModerator, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{ - Reactors: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 132693, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.Share{ - NumDaysAgo: 241217, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - components.Share{ - NumDaysAgo: 355708, - Sharer: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - }, - Verification: &components.Verification{ - State: components.StateUnverified, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 46236, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 25092, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 109020, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 390161, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - components.StructuredTextItem{ - Link: types.String("https://en.wikipedia.org/wiki/Diffuse_sky_radiation"), - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 349429, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Text: types.String("Because its wavelengths are shorter, blue light is more strongly scattered than the longer-wavelength lights, red or green. Hence the result that when looking at the sky away from the direct incident sunlight, the human eye perceives the sky to be blue."), - }, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DraftID: types.Int64(342), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - SourceDocument: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - Verification: &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 726281, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1updateshortcut.go b/tests/mockserver/internal/handler/pathpostrestapiv1updateshortcut.go deleted file mode 100644 index 835c96f1..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1updateshortcut.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Updateshortcut(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "updateshortcut[0]": - dir.HandlerFunc("updateshortcut", testUpdateshortcutUpdateshortcut0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testUpdateshortcutUpdateshortcut0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.UpdateShortcutResponse = &components.UpdateShortcutResponse{} - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1verify.go b/tests/mockserver/internal/handler/pathpostrestapiv1verify.go deleted file mode 100644 index 70b17e95..00000000 --- a/tests/mockserver/internal/handler/pathpostrestapiv1verify.go +++ /dev/null @@ -1,899 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package handler - -import ( - "fmt" - "log" - "mockserver/internal/handler/assert" - "mockserver/internal/logging" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "mockserver/internal/tracking" - "net/http" -) - -func pathPostRestAPIV1Verify(dir *logging.HTTPFileDirectory, rt *tracking.RequestTracker) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - test := req.Header.Get("x-speakeasy-test-name") - instanceID := req.Header.Get("x-speakeasy-test-instance-id") - - count := rt.GetRequestCount(test, instanceID) - - switch fmt.Sprintf("%s[%d]", test, count) { - case "verify[0]": - dir.HandlerFunc("verify", testVerifyVerify0)(w, req) - default: - http.Error(w, fmt.Sprintf("Unknown test: %s[%d]", test, count), http.StatusBadRequest) - } - } -} - -func testVerifyVerify0(w http.ResponseWriter, req *http.Request) { - if err := assert.SecurityAuthorizationHeader(req, false, "Bearer"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusUnauthorized) - return - } - if err := assert.ContentType(req, "application/json", true); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.AcceptHeader(req, []string{"application/json"}); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - if err := assert.HeaderExists(req, "User-Agent"); err != nil { - log.Printf("assertion error: %s\n", err) - http.Error(w, err.Error(), http.StatusBadRequest) - return - } - var respBody *components.Verification = &components.Verification{ - State: components.StateDeprecated, - Metadata: &components.VerificationMetadata{ - LastVerifier: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - RelatedDocuments: []components.RelatedDocuments{ - components.RelatedDocuments{ - QuerySuggestion: &components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - SearchProviderInfo: &components.SearchProviderInfo{ - Name: types.String("Google"), - SearchLinkURLTemplate: types.String("https://www.google.com/search?q={query}&hl=en"), - }, - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - RequestOptions: &components.SearchRequestOptions{ - DatasourceFilter: types.String("JIRA"), - DatasourcesFilter: []string{ - "JIRA", - }, - QueryOverridesFacetFilters: types.Bool(true), - FacetFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - FacetFilterSets: []components.FacetFilterSet{ - components.FacetFilterSet{ - Filters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - }, - }, - FacetBucketSize: 227138, - AuthTokens: []components.AuthToken{ - components.AuthToken{ - AccessToken: "123abc", - Datasource: "gmail", - Scope: types.String("email profile https://www.googleapis.com/auth/gmail.readonly"), - TokenType: types.String("Bearer"), - AuthUser: types.String("1"), - }, - }, - }, - Ranges: []components.TextRange{ - components.TextRange{ - StartIndex: 394054, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Pins: []components.PinDocument{ - components.PinDocument{ - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - DocumentID: "", - }, - }, - Collections: []components.Collection{ - components.Collection{ - Name: "", - Description: "fiddle gee lightly these unique", - AddedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - }, - RemovedRoles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleViewer, - }, - }, - AudienceFilters: []components.FacetFilter{ - components.FacetFilter{ - FieldName: types.String("type"), - Values: []components.FacetFilterValue{ - components.FacetFilterValue{ - Value: types.String("Spreadsheet"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - components.FacetFilterValue{ - Value: types.String("Presentation"), - RelationType: components.RelationTypeEquals.ToPointer(), - }, - }, - }, - }, - ID: 248707, - Items: []components.CollectionItem{ - components.CollectionItem{ - CollectionID: 159863, - ItemType: components.CollectionItemItemTypeDocument, - }, - components.CollectionItem{ - CollectionID: 725143, - ItemType: components.CollectionItemItemTypeDocument, - }, - }, - Roles: []components.UserRoleSpecification{ - components.UserRoleSpecification{ - Role: components.UserRoleOwner, - }, - components.UserRoleSpecification{ - Role: components.UserRoleVerifier, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{ - Reacts: []components.Reaction{ - components.Reaction{}, - components.Reaction{}, - }, - Shares: []components.Share{ - components.Share{ - NumDaysAgo: 638745, - }, - components.Share{ - NumDaysAgo: 331260, - }, - components.Share{ - NumDaysAgo: 759941, - }, - }, - }, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 344155, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - components.TextRange{ - StartIndex: 851433, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - }, - }, - }, - }, - InputDetails: &components.SearchRequestInputDetails{ - HasCopyPaste: types.Bool(true), - }, - }, - Results: []components.SearchResult{ - components.SearchResult{ - Title: types.String("title"), - URL: "https://example.com/foo/bar", - NativeAppURL: types.String("slack://foo/bar"), - Snippets: []components.SearchResultSnippet{ - components.SearchResultSnippet{ - MimeType: types.String("mimeType"), - Snippet: "snippet", - }, - }, - }, - }, - }, - }, - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{ - Suggestions: []components.QuerySuggestion{ - components.QuerySuggestion{ - Query: "app:github type:pull author:mortimer", - Label: types.String("Mortimer's PRs"), - Datasource: types.String("github"), - }, - }, - }, - InviteInfo: &components.InviteInfo{ - Invites: []components.ChannelInviteInfo{ - components.ChannelInviteInfo{}, - components.ChannelInviteInfo{}, - }, - }, - CustomFields: []components.CustomFieldData{ - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - components.CustomFieldData{ - Label: "", - Values: []components.CustomFieldValue{}, - Displayable: types.Bool(true), - }, - }, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Document: &components.Document{ - Metadata: &components.DocumentMetadata{ - Datasource: types.String("datasource"), - ObjectType: types.String("Feature Request"), - Container: types.String("container"), - ParentID: types.String("JIRA_EN-1337"), - MimeType: types.String("mimeType"), - DocumentID: types.String("documentId"), - CreateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - UpdateTime: types.MustNewTimeFromString("2000-01-23T04:56:07.000Z"), - Author: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Owner: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Components: []string{ - "Backend", - "Networking", - }, - Status: types.String("[\"Done\"]"), - AssignedTo: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - UpdatedBy: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Interactions: &components.DocumentInteractions{}, - CustomData: map[string]components.CustomDataValue{ - "someCustomField": components.CustomDataValue{}, - }, - ContactPerson: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - }, - }, - Reminders: []components.Reminder{ - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 732097, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 510781, - }, - components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 875373, - }, - }, - LastReminder: &components.Reminder{ - Assignee: components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - Requestor: &components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - Metadata: &components.PersonMetadata{ - Type: components.PersonMetadataTypeFullTime.ToPointer(), - Title: types.String("Actor"), - Department: types.String("Movies"), - Email: types.String("george@example.com"), - Location: types.String("Hollywood, CA"), - Phone: types.String("6505551234"), - PhotoURL: types.String("https://example.com/george.jpg"), - StartDate: types.MustNewDateFromString("2000-01-23"), - DatasourceProfile: []components.DatasourceProfile{ - components.DatasourceProfile{ - Datasource: "github", - Handle: "", - }, - }, - QuerySuggestions: &components.QuerySuggestionList{}, - InviteInfo: &components.InviteInfo{}, - Badges: []components.Badge{ - components.Badge{ - Key: types.String("deployment_name_new_hire"), - DisplayName: types.String("New hire"), - IconConfig: &components.IconConfig{ - Color: types.String("#343CED"), - Key: types.String("person_icon"), - IconType: components.IconTypeGlyph.ToPointer(), - Name: types.String("user"), - }, - }, - }, - }, - }, - RemindAt: 740498, - }, - CandidateVerifiers: []components.Person{ - components.Person{ - Name: "George Clooney", - ObfuscatedID: "abc123", - }, - }, - }, - } - respBodyBytes, err := utils.MarshalJSON(respBody, "", true) - - if err != nil { - http.Error( - w, - "Unable to encode response body as JSON: "+err.Error(), - http.StatusInternalServerError, - ) - return - } - w.Header().Set("Content-Type", "application/json") - w.WriteHeader(http.StatusOK) - _, _ = w.Write(respBodyBytes) -} diff --git a/tests/mockserver/internal/handler/values/files.go b/tests/mockserver/internal/handler/values/files.go deleted file mode 100644 index 6eca8858..00000000 --- a/tests/mockserver/internal/handler/values/files.go +++ /dev/null @@ -1,40 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package values - -import ( - "io" - "os" -) - -func ReadFileToStream(fileName string) io.Reader { - s, err := os.Open(fileName) - if err != nil { - panic(err) - } - return s -} - -func ReadFileToBytes(fileName string) []byte { - data, err := os.ReadFile(fileName) - if err != nil { - panic(err) - } - return data -} - -func ReadFileToString(fileName string) string { - data, err := os.ReadFile(fileName) - if err != nil { - panic(err) - } - return string(data) -} - -func ReadBytes(r io.Reader) []byte { - data, err := io.ReadAll(r) - if err != nil { - panic(err) - } - return data -} diff --git a/tests/mockserver/internal/logging/doc.go b/tests/mockserver/internal/logging/doc.go deleted file mode 100644 index 8835f1cc..00000000 --- a/tests/mockserver/internal/logging/doc.go +++ /dev/null @@ -1,4 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -// Package logging contains the implementation and helpers for logging. -package logging diff --git a/tests/mockserver/internal/logging/formats.go b/tests/mockserver/internal/logging/formats.go deleted file mode 100644 index d6ab53c8..00000000 --- a/tests/mockserver/internal/logging/formats.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package logging - -import ( - "fmt" - "strings" -) - -const ( - // JSON log format. - FormatJSON = "JSON" - - // Plaintext log format. - FormatText = "text" - - // Default log format. - DefaultFormat = FormatText -) - -// Formats returns all supported formats. -func Formats() []string { - return []string{ - FormatJSON, - FormatText, - } -} - -func formatFromString(format string) (string, error) { - switch format { - case FormatJSON: - return format, nil - case FormatText: - return format, nil - default: - return "", fmt.Errorf("unsupported log format (%s), supported formats: %s", format, strings.Join(Formats(), ", ")) - } -} diff --git a/tests/mockserver/internal/logging/http_file.go b/tests/mockserver/internal/logging/http_file.go deleted file mode 100644 index d690d915..00000000 --- a/tests/mockserver/internal/logging/http_file.go +++ /dev/null @@ -1,310 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package logging - -import ( - "bufio" - "bytes" - "errors" - "fmt" - "io/fs" - "log" - "net/http" - "net/http/httptest" - "net/http/httputil" - "os" - "path/filepath" - "strconv" - "strings" - "sync" -) - -const ( - // DefaultHTTPFileDirectory is the default directory used for raw HTTP - // request and response files. - DefaultHTTPFileDirectory = "_debug" -) - -// HTTPFileDirectory is the directory where raw HTTP request and response files -// are written. -type HTTPFileDirectory struct { - // Filesystem at path. - filesystem fs.FS - - // Mapping of operations to call count. Used to sequentially increment file - // names and return current count. - operationCalls map[string]int64 - - // Mutex to protect operationCalls. - operationCallsMutex *sync.RWMutex - - // Absolute path to directory. - path string -} - -// NewHTTPFileDirectory will create a HTTPFileDirectory which exists and is a -// directory or will return an error. -func NewHTTPFileDirectory(explicitPath string) (*HTTPFileDirectory, error) { - path, err := filepath.Abs(DefaultHTTPFileDirectory) - if err != nil { - return nil, fmt.Errorf("error getting absolute path of HTTP file directory (%s): %w", DefaultHTTPFileDirectory, err) - } - - if explicitPath != "" { - absExplicitPath, err := filepath.Abs(explicitPath) - if err != nil { - return nil, fmt.Errorf("error getting absolute path of HTTP file directory (%s): %w", explicitPath, err) - } - - path = absExplicitPath - } - - result := &HTTPFileDirectory{ - filesystem: os.DirFS(path), - operationCalls: make(map[string]int64), - operationCallsMutex: new(sync.RWMutex), - path: path, - } - - fileInfo, err := os.Stat(path) - - if errors.Is(err, os.ErrNotExist) { - err := os.Mkdir(path, 0o2777) - if err != nil { - return nil, fmt.Errorf("error making HTTP file directory (%s): %w", path, err) - } - - return result, nil - } - - if err != nil { - return nil, fmt.Errorf("error reading HTTP file directory (%s): %w", path, err) - } - - if !fileInfo.IsDir() { - return nil, fmt.Errorf("error using HTTP file directory (%s): not a directory", path) - } - - return result, nil -} - -// Clean will remove all files from HTTPFileDirectory. -func (d *HTTPFileDirectory) Clean() error { - walkDirFunc := func(path string, entry fs.DirEntry, err error) error { - if err != nil { - return fmt.Errorf("error walking %s: %w", d.path, err) - } - - if path == "." { - return nil - } - - if entry.IsDir() { - return fs.SkipDir - } - - absPath := filepath.Join(d.path, path) - - err = os.Remove(absPath) - if err != nil { - return fmt.Errorf("error removing %s: %w", absPath, err) - } - - return nil - } - - return fs.WalkDir(d.filesystem, ".", walkDirFunc) -} - -// HandlerFunc is a HTTP handler that automatically writes the raw HTTP -// request and response to {path}/{operationId}_{call}_request and -// {path}/{operationId}_{call}_response files respectively. -func (d *HTTPFileDirectory) HandlerFunc(operationId string, next http.HandlerFunc) http.HandlerFunc { - return func(w http.ResponseWriter, req *http.Request) { - call := d.nextOperationCall(operationId) - - dump, err := httputil.DumpRequest(req, true) - if err != nil { - log.Printf("error dumping HTTP request: %s", err) - } - - if len(dump) > 0 { - requestPath := filepath.Join(d.path, d.operationCallRequestFilename(operationId, call)) - - err = os.WriteFile(requestPath, dump, 0o644) - if err != nil { - log.Printf("error writing HTTP request file (%s): %s", requestPath, err) - } - } - - recorder := httptest.NewRecorder() - - next(recorder, req) - - dump, err = httputil.DumpResponse(recorder.Result(), true) - if err != nil { - log.Printf("error dumping HTTP response: %s", err) - } - - if len(dump) > 0 { - responsePath := filepath.Join(d.path, d.operationCallResponseFilename(operationId, call)) - err = os.WriteFile(responsePath, dump, 0o644) - if err != nil { - log.Printf("error writing HTTP response file (%s): %s", responsePath, err) - } - } - - recorderToWriter(recorder, w) - } -} - -// Operation will return a new OASOperation from HTTPFileDirectory. -func (d *HTTPFileDirectory) Operation(operationId string) (*OASOperation, error) { - request, err := d.Request(operationId, 1) - if err != nil { - return nil, err - } - - result := NewOASOperation(d, operationId, request.Method, request.URL.Path) - - return result, nil -} - -// Operations will return all detected OASOperation from HTTPFileDirectory. -func (d *HTTPFileDirectory) Operations() ([]*OASOperation, error) { - var result []*OASOperation - - walkDirFunc := func(path string, entry fs.DirEntry, err error) error { - if err != nil { - return fmt.Errorf("error walking %s: %w", d.path, err) - } - - if !strings.HasSuffix(path, "_1_request") { - return nil - } - - operationId := strings.TrimSuffix(path, "_1_request") - operation, err := d.Operation(operationId) - if err != nil { - return err - } - - result = append(result, operation) - - return nil - } - - err := fs.WalkDir(d.filesystem, ".", walkDirFunc) - - return result, err -} - -// OperationCallCount will return the number of detected calls for an -// OASOperation. -func (d *HTTPFileDirectory) OperationCallCount(operationId string) int64 { - d.operationCallsMutex.RLock() - defer d.operationCallsMutex.RUnlock() - - result, ok := d.operationCalls[operationId] - - if ok { - return result - } - - return 0 -} - -// RawRequest returns the raw HTTP request contents as dumped by -// [httputil.DumpRequest]. -func (d *HTTPFileDirectory) RawRequest(operationId string, call int64) ([]byte, error) { - filename := d.operationCallRequestFilename(operationId, call) - file, err := fs.ReadFile(d.filesystem, filename) - if err != nil { - return nil, fmt.Errorf("error reading HTTP request file (%s): %w", filename, err) - } - - return file, nil -} - -// RawResponse returns the raw HTTP response contents as dumped by -// [httputil.DumpResponse]. -func (d *HTTPFileDirectory) RawResponse(operationId string, call int64) ([]byte, error) { - filename := d.operationCallResponseFilename(operationId, call) - file, err := fs.ReadFile(d.filesystem, d.operationCallResponseFilename(operationId, call)) - if err != nil { - return nil, fmt.Errorf("error reading HTTP response file (%s): %w", filename, err) - } - - return file, nil -} - -// Request returns the parsed HTTP request contents. -func (d *HTTPFileDirectory) Request(operationId string, call int64) (*http.Request, error) { - rawRequest, err := d.RawRequest(operationId, call) - if err != nil { - return nil, err - } - - result, err := http.ReadRequest(bufio.NewReader(bytes.NewReader(rawRequest))) - if err != nil { - return nil, fmt.Errorf("error converting HTTP request for operation %s call %d: %w", operationId, call, err) - } - - return result, nil -} - -// Response returns the parsed HTTP response contents. -func (d *HTTPFileDirectory) Response(operationId string, call int64) (*http.Response, error) { - rawResponse, err := d.RawResponse(operationId, call) - if err != nil { - return nil, err - } - - result, err := http.ReadResponse(bufio.NewReader(bytes.NewReader(rawResponse)), nil) - if err != nil { - return nil, fmt.Errorf("error converting HTTP response for operation %s call %d: %w", operationId, call, err) - } - - return result, nil -} - -// nextOperationCall returns the incremented call number for an operation. -func (d *HTTPFileDirectory) nextOperationCall(operationId string) int64 { - d.operationCallsMutex.Lock() - defer d.operationCallsMutex.Unlock() - - var result int64 - - priorCalls, ok := d.operationCalls[operationId] - - if ok { - result = priorCalls + 1 - } else { - // Start call counts at 1 for human consumption. - result = 1 - } - - d.operationCalls[operationId] = result - - return result -} - -// operationCallRequestFilename returns the raw HTTP request file name for the -// given operation and call. -func (d *HTTPFileDirectory) operationCallRequestFilename(operationId string, call int64) string { - return sanitizeOperationIdForFilename(operationId) + "_" + strconv.FormatInt(call, 10) + "_request" -} - -// operationCallResponseFilename returns the raw HTTP response file name for the -// given operation and call. -func (d *HTTPFileDirectory) operationCallResponseFilename(operationId string, call int64) string { - return sanitizeOperationIdForFilename(operationId) + "_" + strconv.FormatInt(call, 10) + "_response" -} - -func sanitizeOperationIdForFilename(operationId string) string { - operationId = strings.ReplaceAll(operationId, "{", "_") - operationId = strings.ReplaceAll(operationId, "}", "_") - operationId = strings.ReplaceAll(operationId, "/", "_") - operationId = strings.ReplaceAll(operationId, " ", "_") - return operationId -} diff --git a/tests/mockserver/internal/logging/http_logger.go b/tests/mockserver/internal/logging/http_logger.go deleted file mode 100644 index fdd5d058..00000000 --- a/tests/mockserver/internal/logging/http_logger.go +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package logging - -import ( - "context" - "fmt" - "log/slog" - "net/http" - "net/http/httptest" - "net/http/httputil" -) - -// HTTPLoggerHandler wraps another [http.Handler] with logging output using the -// provided logger. -func HTTPLoggerHandler(logger *slog.Logger, next http.Handler) http.Handler { - return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { - httpLogger := logger.WithGroup("http") - recorder := httptest.NewRecorder() - reqAttr := slog.Group( - "request", - slog.String("method", req.Method), - slog.String("url", req.URL.RequestURI()), - ) - - if !logger.Enabled(context.Background(), slog.LevelDebug) { - httpLogger.With(reqAttr).Info("received request") - next.ServeHTTP(recorder, req) - - resp := recorder.Result() - respAttr := slog.Group( - "response", - slog.String("status", resp.Status), - ) - - httpLogger.With(reqAttr).With(respAttr).Info("serving response") - - recorderToWriter(recorder, w) - - return - } - - dump, err := httputil.DumpRequest(req, true) - - if err != nil { - http.Error(w, fmt.Sprint(err), http.StatusInternalServerError) - - return - } - - rawReqAttr := slog.Group( - "request", - slog.String("method", req.Method), - slog.String("url", req.URL.RequestURI()), - slog.String("raw", string(dump)), - ) - - httpLogger.With(rawReqAttr).Debug("received request") - - next.ServeHTTP(recorder, req) - - dump, err = httputil.DumpResponse(recorder.Result(), true) - - if err != nil { - http.Error(w, fmt.Sprint(err), http.StatusInternalServerError) - - return - } - - rawRespAttr := slog.Group( - "response", - slog.String("raw", string(dump)), - ) - - // Intentionally use simpler request log attributes - httpLogger.With(reqAttr).With(rawRespAttr).Debug("serving response") - - recorderToWriter(recorder, w) - }) -} - -// recorderToWriter copies the recorded response back to the writer. -func recorderToWriter(recorder *httptest.ResponseRecorder, w http.ResponseWriter) { - for k, v := range recorder.Result().Header { - w.Header()[k] = v - } - - w.WriteHeader(recorder.Code) - _, _ = recorder.Body.WriteTo(w) -} diff --git a/tests/mockserver/internal/logging/levels.go b/tests/mockserver/internal/logging/levels.go deleted file mode 100644 index d2a8e93c..00000000 --- a/tests/mockserver/internal/logging/levels.go +++ /dev/null @@ -1,55 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package logging - -import ( - "fmt" - "log/slog" - "strings" -) - -const ( - // Debug log level. - LevelDebug = "DEBUG" - - // Info log level. - LevelInfo = "INFO" - - // Warning log level. - LevelWarn = "WARN" - - // Error log level. - LevelError = "ERROR" - - // Default log level. - DefaultLevel = LevelInfo -) - -// Levels returns all supported levels. -func Levels() []string { - return []string{ - LevelDebug, - LevelInfo, - LevelWarn, - LevelError, - } -} - -func levelFromString(level string) (*slog.LevelVar, error) { - result := new(slog.LevelVar) - - switch strings.ToUpper(level) { - case "DEBUG": - result.Set(slog.LevelDebug) - case "INFO": - result.Set(slog.LevelInfo) - case "WARN": - result.Set(slog.LevelWarn) - case "ERROR": - result.Set(slog.LevelError) - default: - return nil, fmt.Errorf("unsupported log level (%s), supported levels: %s", level, strings.Join(Levels(), ", ")) - } - - return result, nil -} diff --git a/tests/mockserver/internal/logging/logger.go b/tests/mockserver/internal/logging/logger.go deleted file mode 100644 index bfd6dc78..00000000 --- a/tests/mockserver/internal/logging/logger.go +++ /dev/null @@ -1,40 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package logging - -import ( - "fmt" - "io" - "log/slog" -) - -func NewLogger(w io.Writer, formatStr string, levelStr string) (*slog.Logger, error) { - level, err := levelFromString(levelStr) - - if err != nil { - return nil, err - } - - format, err := formatFromString(formatStr) - - if err != nil { - return nil, err - } - - handlerOpts := &slog.HandlerOptions{ - Level: level, - } - - var handler slog.Handler - - switch format { - case FormatJSON: - handler = slog.NewJSONHandler(w, handlerOpts) - case FormatText: - handler = slog.NewTextHandler(w, handlerOpts) - default: - return nil, fmt.Errorf("unimplemented format: %s", format) - } - - return slog.New(handler), nil -} diff --git a/tests/mockserver/internal/logging/oas_operation.go b/tests/mockserver/internal/logging/oas_operation.go deleted file mode 100644 index d4f2af7b..00000000 --- a/tests/mockserver/internal/logging/oas_operation.go +++ /dev/null @@ -1,87 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package logging - -import "net/http" - -// OASOperation contains a singular OAS operation. An operation can have one or -// more calls. -type OASOperation struct { - // Underlying HTTP calls for the operation. - calls []*OASOperationCall - - // Directory that contains HTTP request and response logs. - dir *HTTPFileDirectory - - // Operation identifier as defined in OAS. - id string - - // HTTP method for the operation, such as GET. - method string - - // URL path for the operation, such as /path. - path string - - // TODO: Add group -} - -// NewOASOperation creates a new OASOperation. -func NewOASOperation(dir *HTTPFileDirectory, operationId string, method string, path string) *OASOperation { - operationCalls := dir.OperationCallCount(operationId) - result := &OASOperation{ - calls: make([]*OASOperationCall, 0, operationCalls), - dir: dir, - id: operationId, - method: method, - path: path, - } - - for i := range operationCalls { - // Start at 1 for human consumption. - result.calls = append(result.calls, NewOASOperationCall(result, i+1)) - } - - return result -} - -// CallCount returns the number of calls to an operation. -func (o *OASOperation) CallCount() int64 { - return int64(len(o.calls)) -} - -// Id returns the operation identifier as defined in OAS. -func (o *OASOperation) Id() string { - return o.id -} - -// Method returns the HTTP method for the operation, such as GET. -func (o *OASOperation) Method() string { - return o.method -} - -// Path returns the URL path for the operation, such as /path. -func (o *OASOperation) Path() string { - return o.path -} - -// RawRequest returns the raw HTTP request contents as dumped by -// [httputil.DumpRequest]. -func (o *OASOperation) RawRequest(call int64) ([]byte, error) { - return o.dir.RawRequest(o.id, call) -} - -// RawResponse returns the raw HTTP response contents as dumped by -// [httputil.DumpResponse]. -func (o *OASOperation) RawResponse(call int64) ([]byte, error) { - return o.dir.RawResponse(o.id, call) -} - -// Request returns the parsed HTTP request contents. -func (o *OASOperation) Request(call int64) (*http.Request, error) { - return o.dir.Request(o.id, call) -} - -// Response returns the parsed HTTP response contents. -func (o *OASOperation) Response(call int64) (*http.Response, error) { - return o.dir.Response(o.id, call) -} diff --git a/tests/mockserver/internal/logging/oas_operation_call.go b/tests/mockserver/internal/logging/oas_operation_call.go deleted file mode 100644 index beb05908..00000000 --- a/tests/mockserver/internal/logging/oas_operation_call.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package logging - -import ( - "bufio" - "bytes" - "net/http" -) - -// OASOperationCall contains a singular OAS operation HTTP call. -type OASOperationCall struct { - // The HTTP call number, as determined by the HTTP server. Starts at 1 and - // incremented. - call int64 - - // The associated OAS operation to this call. - operation *OASOperation - - // Parsed HTTP request contents. Cached on first use. - request *http.Request - - // Raw HTTP request contents. Cached on first use. - requestRaw []byte - - // Parsed HTTP response contents. Cached on first use. - response *http.Response - - // Raw HTTP response contents. Cached on first use. - responseRaw []byte - - // TODO: Add test identifier -} - -// NewOASOperationCall creates a new OASOperationCall. -func NewOASOperationCall(operation *OASOperation, call int64) *OASOperationCall { - return &OASOperationCall{ - call: call, - operation: operation, - } -} - -// RawRequest returns the raw HTTP request contents as dumped by -// [httputil.DumpRequest]. -func (c *OASOperationCall) RawRequest() ([]byte, error) { - if c.requestRaw != nil { - return c.requestRaw, nil - } - - requestRaw, err := c.operation.RawRequest(c.call) - - if err != nil { - return nil, err - } - - c.requestRaw = requestRaw - - return c.requestRaw, nil -} - -// RawResponse returns the raw HTTP response contents as dumped by -// [httputil.DumpResponse]. -func (c *OASOperationCall) RawResponse() ([]byte, error) { - if c.responseRaw != nil { - return c.responseRaw, nil - } - - responseRaw, err := c.operation.RawResponse(c.call) - - if err != nil { - return nil, err - } - - c.responseRaw = responseRaw - - return c.responseRaw, nil -} - -// Request returns the parsed HTTP request contents. -func (c *OASOperationCall) Request() (*http.Request, error) { - if c.request != nil { - return c.request, nil - } - - requestRaw, err := c.RawRequest() - - if err != nil { - return nil, err - } - - request, err := http.ReadRequest(bufio.NewReader(bytes.NewReader(requestRaw))) - - if err != nil { - return nil, err - } - - c.request = request - - return c.request, nil -} - -// Response returns the parsed HTTP response contents. -func (c *OASOperationCall) Response() (*http.Response, error) { - if c.response != nil { - return c.response, nil - } - - responseRaw, err := c.RawResponse() - - if err != nil { - return nil, err - } - - response, err := http.ReadResponse(bufio.NewReader(bytes.NewReader(responseRaw)), nil) - - if err != nil { - return nil, err - } - - c.response = response - - return c.response, nil -} diff --git a/tests/mockserver/internal/sdk/models/components/activity.go b/tests/mockserver/internal/sdk/models/components/activity.go deleted file mode 100644 index 495599c8..00000000 --- a/tests/mockserver/internal/sdk/models/components/activity.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type Activity struct { - Events []ActivityEvent `json:"events"` -} - -func (o *Activity) GetEvents() []ActivityEvent { - if o == nil { - return []ActivityEvent{} - } - return o.Events -} diff --git a/tests/mockserver/internal/sdk/models/components/activityevent.go b/tests/mockserver/internal/sdk/models/components/activityevent.go deleted file mode 100644 index 59aa0168..00000000 --- a/tests/mockserver/internal/sdk/models/components/activityevent.go +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -// ActivityEventAction - The type of activity this represents. -type ActivityEventAction string - -const ( - ActivityEventActionView ActivityEventAction = "VIEW" - ActivityEventActionEdit ActivityEventAction = "EDIT" - ActivityEventActionSearch ActivityEventAction = "SEARCH" - ActivityEventActionComment ActivityEventAction = "COMMENT" - ActivityEventActionCrawl ActivityEventAction = "CRAWL" - ActivityEventActionHistoricalSearch ActivityEventAction = "HISTORICAL_SEARCH" - ActivityEventActionHistoricalView ActivityEventAction = "HISTORICAL_VIEW" -) - -func (e ActivityEventAction) ToPointer() *ActivityEventAction { - return &e -} -func (e *ActivityEventAction) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "VIEW": - fallthrough - case "EDIT": - fallthrough - case "SEARCH": - fallthrough - case "COMMENT": - fallthrough - case "CRAWL": - fallthrough - case "HISTORICAL_SEARCH": - fallthrough - case "HISTORICAL_VIEW": - *e = ActivityEventAction(v) - return nil - default: - return fmt.Errorf("invalid value for ActivityEventAction: %v", v) - } -} - -type ActivityEvent struct { - // Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. - ID *string `json:"id,omitempty"` - // The type of activity this represents. - Action ActivityEventAction `json:"action"` - Params *ActivityEventParams `json:"params,omitempty"` - // The ISO 8601 timestamp when the activity began. - Timestamp time.Time `json:"timestamp"` - // The URL of the activity. - URL string `json:"url"` -} - -func (a ActivityEvent) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *ActivityEvent) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"action", "timestamp", "url"}); err != nil { - return err - } - return nil -} - -func (o *ActivityEvent) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *ActivityEvent) GetAction() ActivityEventAction { - if o == nil { - return ActivityEventAction("") - } - return o.Action -} - -func (o *ActivityEvent) GetParams() *ActivityEventParams { - if o == nil { - return nil - } - return o.Params -} - -func (o *ActivityEvent) GetTimestamp() time.Time { - if o == nil { - return time.Time{} - } - return o.Timestamp -} - -func (o *ActivityEvent) GetURL() string { - if o == nil { - return "" - } - return o.URL -} diff --git a/tests/mockserver/internal/sdk/models/components/activityeventparams.go b/tests/mockserver/internal/sdk/models/components/activityeventparams.go deleted file mode 100644 index eae5f03e..00000000 --- a/tests/mockserver/internal/sdk/models/components/activityeventparams.go +++ /dev/null @@ -1,87 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ActivityEventParams struct { - // The HTML content of the page body. - BodyContent *string `json:"bodyContent,omitempty"` - // The full datasource instance name inferred from the URL of the event - DatasourceInstance *string `json:"datasourceInstance,omitempty"` - // The datasource without the instance inferred from the URL of the event - Datasource *string `json:"datasource,omitempty"` - // The instance only name of the datasource instance, e.g. 1 for jira_1, inferred from the URL of the event - InstanceOnlyName *string `json:"instanceOnlyName,omitempty"` - // Length in seconds of the activity. For VIEWS, this represents the amount the page was visible in the foreground. - Duration *int64 `json:"duration,omitempty"` - // The user's search query associated with a SEARCH. - Query *string `json:"query,omitempty"` - // The referring URL of the VIEW or SEARCH. - Referrer *string `json:"referrer,omitempty"` - // The page title associated with the URL of the event - Title *string `json:"title,omitempty"` - // Indicates that the parameters are incomplete and more parameters may be sent with the same action+timestamp+URL in the future. This is used for sending the duration when a `VIEW` is finished. - Truncated *bool `json:"truncated,omitempty"` -} - -func (o *ActivityEventParams) GetBodyContent() *string { - if o == nil { - return nil - } - return o.BodyContent -} - -func (o *ActivityEventParams) GetDatasourceInstance() *string { - if o == nil { - return nil - } - return o.DatasourceInstance -} - -func (o *ActivityEventParams) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *ActivityEventParams) GetInstanceOnlyName() *string { - if o == nil { - return nil - } - return o.InstanceOnlyName -} - -func (o *ActivityEventParams) GetDuration() *int64 { - if o == nil { - return nil - } - return o.Duration -} - -func (o *ActivityEventParams) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - -func (o *ActivityEventParams) GetReferrer() *string { - if o == nil { - return nil - } - return o.Referrer -} - -func (o *ActivityEventParams) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *ActivityEventParams) GetTruncated() *bool { - if o == nil { - return nil - } - return o.Truncated -} diff --git a/tests/mockserver/internal/sdk/models/components/addcollectionitemserror.go b/tests/mockserver/internal/sdk/models/components/addcollectionitemserror.go deleted file mode 100644 index 215308e8..00000000 --- a/tests/mockserver/internal/sdk/models/components/addcollectionitemserror.go +++ /dev/null @@ -1,42 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type AddCollectionItemsErrorErrorType string - -const ( - AddCollectionItemsErrorErrorTypeExistingItem AddCollectionItemsErrorErrorType = "EXISTING_ITEM" -) - -func (e AddCollectionItemsErrorErrorType) ToPointer() *AddCollectionItemsErrorErrorType { - return &e -} -func (e *AddCollectionItemsErrorErrorType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "EXISTING_ITEM": - *e = AddCollectionItemsErrorErrorType(v) - return nil - default: - return fmt.Errorf("invalid value for AddCollectionItemsErrorErrorType: %v", v) - } -} - -type AddCollectionItemsError struct { - ErrorType *AddCollectionItemsErrorErrorType `json:"errorType,omitempty"` -} - -func (o *AddCollectionItemsError) GetErrorType() *AddCollectionItemsErrorErrorType { - if o == nil { - return nil - } - return o.ErrorType -} diff --git a/tests/mockserver/internal/sdk/models/components/addcollectionitemsrequest.go b/tests/mockserver/internal/sdk/models/components/addcollectionitemsrequest.go deleted file mode 100644 index 3a1ab6f6..00000000 --- a/tests/mockserver/internal/sdk/models/components/addcollectionitemsrequest.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type AddCollectionItemsRequest struct { - // The ID of the Collection to add items to. - CollectionID float64 `json:"collectionId"` - // The CollectionItemDescriptors of the items being added. - AddedCollectionItemDescriptors []CollectionItemDescriptor `json:"addedCollectionItemDescriptors,omitempty"` -} - -func (o *AddCollectionItemsRequest) GetCollectionID() float64 { - if o == nil { - return 0.0 - } - return o.CollectionID -} - -func (o *AddCollectionItemsRequest) GetAddedCollectionItemDescriptors() []CollectionItemDescriptor { - if o == nil { - return nil - } - return o.AddedCollectionItemDescriptors -} diff --git a/tests/mockserver/internal/sdk/models/components/addcollectionitemsresponse.go b/tests/mockserver/internal/sdk/models/components/addcollectionitemsresponse.go deleted file mode 100644 index dcb69503..00000000 --- a/tests/mockserver/internal/sdk/models/components/addcollectionitemsresponse.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type AddCollectionItemsResponse struct { - Collection *Collection `json:"collection,omitempty"` - Error *AddCollectionItemsError `json:"error,omitempty"` -} - -func (o *AddCollectionItemsResponse) GetCollection() *Collection { - if o == nil { - return nil - } - return o.Collection -} - -func (o *AddCollectionItemsResponse) GetError() *AddCollectionItemsError { - if o == nil { - return nil - } - return o.Error -} diff --git a/tests/mockserver/internal/sdk/models/components/additionalfielddefinition.go b/tests/mockserver/internal/sdk/models/components/additionalfielddefinition.go deleted file mode 100644 index 65166a2a..00000000 --- a/tests/mockserver/internal/sdk/models/components/additionalfielddefinition.go +++ /dev/null @@ -1,44 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// Value - Either a string or HypertextField. When OpenAPI Generator supports oneOf, we can semantically enforce this in the docs. -type Value struct { -} - -// AdditionalFieldDefinition - Additional information about the employee or team. -type AdditionalFieldDefinition struct { - // Key to reference this field, e.g. "languages". Note that the key should be all lowercase alphabetic characters with no numbers, spaces, hyphens or underscores. - Key *string `json:"key,omitempty"` - // List of type string or HypertextField. - // - // HypertextField is defined as - // ``` - // { - // anchor: string, // Anchor text for the hypertext field. - // hyperlink: string, // URL for the hypertext field. - // } - // ``` - // Example: ```{"anchor":"Glean","hyperlink":"https://glean.com"}``` - // - // When OpenAPI Generator supports oneOf, we will semantically enforce this in the docs. - // - // **Note**: If using the Python SDK to pass in a list of strings, the value may need to be a list of dictionaries. In that case, the key in that dictionary will be ignored. - // Example: ```"languages": [{"lang":"English","lang":"Spanish",...}]```. In this case, the key "lang" will be ignored and can even be passed in as an empty string. - // - Value []Value `json:"value,omitempty"` -} - -func (o *AdditionalFieldDefinition) GetKey() *string { - if o == nil { - return nil - } - return o.Key -} - -func (o *AdditionalFieldDefinition) GetValue() []Value { - if o == nil { - return nil - } - return o.Value -} diff --git a/tests/mockserver/internal/sdk/models/components/agent.go b/tests/mockserver/internal/sdk/models/components/agent.go deleted file mode 100644 index f7b3b131..00000000 --- a/tests/mockserver/internal/sdk/models/components/agent.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// AgentMetadata - The agent metadata. Currently not implemented. -type AgentMetadata struct { -} - -// AgentCapabilities - Describes features that the agent supports. example: { -// "ap.io.messages": true, -// "ap.io.streaming": true -// } -type AgentCapabilities struct { - // Whether the agent supports messages as an input. If true, you'll pass `messages` as an input when running the agent. - ApIoMessages *bool `json:"ap.io.messages,omitempty"` - // Whether the agent supports streaming output. If true, you you can stream agent ouput. All agents currently support streaming. - ApIoStreaming *bool `json:"ap.io.streaming,omitempty"` - AdditionalProperties map[string]any `additionalProperties:"true" json:"-"` -} - -func (a AgentCapabilities) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *AgentCapabilities) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *AgentCapabilities) GetApIoMessages() *bool { - if o == nil { - return nil - } - return o.ApIoMessages -} - -func (o *AgentCapabilities) GetApIoStreaming() *bool { - if o == nil { - return nil - } - return o.ApIoStreaming -} - -func (o *AgentCapabilities) GetAdditionalProperties() map[string]any { - if o == nil { - return nil - } - return o.AdditionalProperties -} - -type Agent struct { - // The ID of the agent. - AgentID string `json:"agent_id"` - // The name of the agent - Name string `json:"name"` - // The description of the agent. - Description *string `json:"description,omitempty"` - // The agent metadata. Currently not implemented. - Metadata *AgentMetadata `json:"metadata,omitempty"` - // Describes features that the agent supports. example: { - // "ap.io.messages": true, - // "ap.io.streaming": true - // } - Capabilities AgentCapabilities `json:"capabilities"` -} - -func (o *Agent) GetAgentID() string { - if o == nil { - return "" - } - return o.AgentID -} - -func (o *Agent) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *Agent) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *Agent) GetMetadata() *AgentMetadata { - if o == nil { - return nil - } - return o.Metadata -} - -func (o *Agent) GetCapabilities() AgentCapabilities { - if o == nil { - return AgentCapabilities{} - } - return o.Capabilities -} diff --git a/tests/mockserver/internal/sdk/models/components/agentconfig.go b/tests/mockserver/internal/sdk/models/components/agentconfig.go deleted file mode 100644 index dcc70f4e..00000000 --- a/tests/mockserver/internal/sdk/models/components/agentconfig.go +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// AgentEnum - Name of the agent. -type AgentEnum string - -const ( - AgentEnumDefault AgentEnum = "DEFAULT" - AgentEnumGpt AgentEnum = "GPT" - AgentEnumUniversal AgentEnum = "UNIVERSAL" - AgentEnumFast AgentEnum = "FAST" - AgentEnumAdvanced AgentEnum = "ADVANCED" -) - -func (e AgentEnum) ToPointer() *AgentEnum { - return &e -} -func (e *AgentEnum) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "DEFAULT": - fallthrough - case "GPT": - fallthrough - case "UNIVERSAL": - fallthrough - case "FAST": - fallthrough - case "ADVANCED": - *e = AgentEnum(v) - return nil - default: - return fmt.Errorf("invalid value for AgentEnum: %v", v) - } -} - -// Mode - Top level modes to run GleanChat in. -type Mode string - -const ( - ModeDefault Mode = "DEFAULT" - ModeQuick Mode = "QUICK" -) - -func (e Mode) ToPointer() *Mode { - return &e -} -func (e *Mode) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "DEFAULT": - fallthrough - case "QUICK": - *e = Mode(v) - return nil - default: - return fmt.Errorf("invalid value for Mode: %v", v) - } -} - -// AgentConfig - Describes the agent that executes the request. -type AgentConfig struct { - // Name of the agent. - Agent *AgentEnum `json:"agent,omitempty"` - // The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values - ToolSets *ToolSets `json:"toolSets,omitempty"` - // Top level modes to run GleanChat in. - Mode *Mode `json:"mode,omitempty"` -} - -func (o *AgentConfig) GetAgent() *AgentEnum { - if o == nil { - return nil - } - return o.Agent -} - -func (o *AgentConfig) GetToolSets() *ToolSets { - if o == nil { - return nil - } - return o.ToolSets -} - -func (o *AgentConfig) GetMode() *Mode { - if o == nil { - return nil - } - return o.Mode -} diff --git a/tests/mockserver/internal/sdk/models/components/agentexecutionstatus.go b/tests/mockserver/internal/sdk/models/components/agentexecutionstatus.go deleted file mode 100644 index 7a8ba840..00000000 --- a/tests/mockserver/internal/sdk/models/components/agentexecutionstatus.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// AgentExecutionStatus - The status of the run. One of 'error', 'success'. -type AgentExecutionStatus string - -const ( - AgentExecutionStatusError AgentExecutionStatus = "error" - AgentExecutionStatusSuccess AgentExecutionStatus = "success" -) - -func (e AgentExecutionStatus) ToPointer() *AgentExecutionStatus { - return &e -} -func (e *AgentExecutionStatus) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "error": - fallthrough - case "success": - *e = AgentExecutionStatus(v) - return nil - default: - return fmt.Errorf("invalid value for AgentExecutionStatus: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/agentrun.go b/tests/mockserver/internal/sdk/models/components/agentrun.go deleted file mode 100644 index 23ab5120..00000000 --- a/tests/mockserver/internal/sdk/models/components/agentrun.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// AgentRun - Payload for creating a run. -type AgentRun struct { - // The ID of the agent to run. - AgentID string `json:"agent_id"` - // The input to the agent. - Input map[string]any `json:"input,omitempty"` - // The messages to pass an input to the agent. - Messages []Message `json:"messages,omitempty"` - // The metadata to pass to the agent. - Metadata map[string]any `json:"metadata,omitempty"` - // The status of the run. One of 'error', 'success'. - Status *AgentExecutionStatus `json:"status,omitempty"` -} - -func (o *AgentRun) GetAgentID() string { - if o == nil { - return "" - } - return o.AgentID -} - -func (o *AgentRun) GetInput() map[string]any { - if o == nil { - return nil - } - return o.Input -} - -func (o *AgentRun) GetMessages() []Message { - if o == nil { - return nil - } - return o.Messages -} - -func (o *AgentRun) GetMetadata() map[string]any { - if o == nil { - return nil - } - return o.Metadata -} - -func (o *AgentRun) GetStatus() *AgentExecutionStatus { - if o == nil { - return nil - } - return o.Status -} diff --git a/tests/mockserver/internal/sdk/models/components/agentruncreate.go b/tests/mockserver/internal/sdk/models/components/agentruncreate.go deleted file mode 100644 index c095a382..00000000 --- a/tests/mockserver/internal/sdk/models/components/agentruncreate.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// AgentRunCreate - Payload for creating a run. -type AgentRunCreate struct { - // The ID of the agent to run. - AgentID string `json:"agent_id"` - // The input to the agent. - Input map[string]any `json:"input,omitempty"` - // The messages to pass an input to the agent. - Messages []Message `json:"messages,omitempty"` - // The metadata to pass to the agent. - Metadata map[string]any `json:"metadata,omitempty"` -} - -func (o *AgentRunCreate) GetAgentID() string { - if o == nil { - return "" - } - return o.AgentID -} - -func (o *AgentRunCreate) GetInput() map[string]any { - if o == nil { - return nil - } - return o.Input -} - -func (o *AgentRunCreate) GetMessages() []Message { - if o == nil { - return nil - } - return o.Messages -} - -func (o *AgentRunCreate) GetMetadata() map[string]any { - if o == nil { - return nil - } - return o.Metadata -} diff --git a/tests/mockserver/internal/sdk/models/components/agentrunwaitresponse.go b/tests/mockserver/internal/sdk/models/components/agentrunwaitresponse.go deleted file mode 100644 index b5aa1e8e..00000000 --- a/tests/mockserver/internal/sdk/models/components/agentrunwaitresponse.go +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type AgentRunWaitResponse struct { - Run *AgentRun `json:"run,omitempty"` - // The messages returned by the run. - Messages []Message `json:"messages,omitempty"` -} - -func (o *AgentRunWaitResponse) GetRun() *AgentRun { - if o == nil { - return nil - } - return o.Run -} - -func (o *AgentRunWaitResponse) GetMessages() []Message { - if o == nil { - return nil - } - return o.Messages -} diff --git a/tests/mockserver/internal/sdk/models/components/agentschemas.go b/tests/mockserver/internal/sdk/models/components/agentschemas.go deleted file mode 100644 index 4fe8d12d..00000000 --- a/tests/mockserver/internal/sdk/models/components/agentschemas.go +++ /dev/null @@ -1,42 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// InputSchema - The schema for the agent input. In JSON Schema format. -type InputSchema struct { -} - -// OutputSchema - The schema for the agent output. In JSON Schema format. -type OutputSchema struct { -} - -// AgentSchemas - Defines the structure and properties of an agent. -type AgentSchemas struct { - // The ID of the agent. - AgentID string `json:"agent_id"` - // The schema for the agent input. In JSON Schema format. - InputSchema InputSchema `json:"input_schema"` - // The schema for the agent output. In JSON Schema format. - OutputSchema OutputSchema `json:"output_schema"` -} - -func (o *AgentSchemas) GetAgentID() string { - if o == nil { - return "" - } - return o.AgentID -} - -func (o *AgentSchemas) GetInputSchema() InputSchema { - if o == nil { - return InputSchema{} - } - return o.InputSchema -} - -func (o *AgentSchemas) GetOutputSchema() OutputSchema { - if o == nil { - return OutputSchema{} - } - return o.OutputSchema -} diff --git a/tests/mockserver/internal/sdk/models/components/aiappactioncounts.go b/tests/mockserver/internal/sdk/models/components/aiappactioncounts.go deleted file mode 100644 index f8307b79..00000000 --- a/tests/mockserver/internal/sdk/models/components/aiappactioncounts.go +++ /dev/null @@ -1,84 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// AiAppActionCounts - Map from action to frequency. -type AiAppActionCounts struct { - // Total number of Slackbot responses, both proactive and reactive. - TotalSlackbotResponses *int64 `json:"totalSlackbotResponses,omitempty"` - // Total number of Slackbot responses shared publicly (upvoted). - TotalSlackbotResponsesShared *int64 `json:"totalSlackbotResponsesShared,omitempty"` - // Total number of Slackbot responses rejected as not helpful (downvoted). - TotalSlackbotResponsesNotHelpful *int64 `json:"totalSlackbotResponsesNotHelpful,omitempty"` - // Total number of Chat messages sent in requested period. - TotalChatMessages *int64 `json:"totalChatMessages,omitempty"` - // Total number of Chat messages which received upvotes by the user. - TotalUpvotes *int64 `json:"totalUpvotes,omitempty"` - // Total number of Chat messages which received downvotes by the user. - TotalDownvotes *int64 `json:"totalDownvotes,omitempty"` - AdditionalProperties map[string]int64 `additionalProperties:"true" json:"-"` -} - -func (a AiAppActionCounts) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *AiAppActionCounts) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *AiAppActionCounts) GetTotalSlackbotResponses() *int64 { - if o == nil { - return nil - } - return o.TotalSlackbotResponses -} - -func (o *AiAppActionCounts) GetTotalSlackbotResponsesShared() *int64 { - if o == nil { - return nil - } - return o.TotalSlackbotResponsesShared -} - -func (o *AiAppActionCounts) GetTotalSlackbotResponsesNotHelpful() *int64 { - if o == nil { - return nil - } - return o.TotalSlackbotResponsesNotHelpful -} - -func (o *AiAppActionCounts) GetTotalChatMessages() *int64 { - if o == nil { - return nil - } - return o.TotalChatMessages -} - -func (o *AiAppActionCounts) GetTotalUpvotes() *int64 { - if o == nil { - return nil - } - return o.TotalUpvotes -} - -func (o *AiAppActionCounts) GetTotalDownvotes() *int64 { - if o == nil { - return nil - } - return o.TotalDownvotes -} - -func (o *AiAppActionCounts) GetAdditionalProperties() map[string]int64 { - if o == nil { - return nil - } - return o.AdditionalProperties -} diff --git a/tests/mockserver/internal/sdk/models/components/aiappsinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/aiappsinsightsresponse.go deleted file mode 100644 index 8de39cd4..00000000 --- a/tests/mockserver/internal/sdk/models/components/aiappsinsightsresponse.go +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type AiAppsInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - AiAppInsights []UserActivityInsight `json:"aiAppInsights,omitempty"` - // Total number of active users on the Ai App in the requested period. - TotalActiveUsers *int64 `json:"totalActiveUsers,omitempty"` - // Map from action to frequency. - ActionCounts *AiAppActionCounts `json:"actionCounts,omitempty"` - // list of departments applicable for users tab. - Departments []string `json:"departments,omitempty"` -} - -func (o *AiAppsInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *AiAppsInsightsResponse) GetAiAppInsights() []UserActivityInsight { - if o == nil { - return nil - } - return o.AiAppInsights -} - -func (o *AiAppsInsightsResponse) GetTotalActiveUsers() *int64 { - if o == nil { - return nil - } - return o.TotalActiveUsers -} - -func (o *AiAppsInsightsResponse) GetActionCounts() *AiAppActionCounts { - if o == nil { - return nil - } - return o.ActionCounts -} - -func (o *AiAppsInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} diff --git a/tests/mockserver/internal/sdk/models/components/aiinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/aiinsightsresponse.go deleted file mode 100644 index 478529db..00000000 --- a/tests/mockserver/internal/sdk/models/components/aiinsightsresponse.go +++ /dev/null @@ -1,113 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type AiInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - AssistantInsights []UserActivityInsight `json:"assistantInsights,omitempty"` - // Total number of Active Assistant users (chat, summary, AIA) in requested period. - TotalActiveAssistantUsers *int64 `json:"totalActiveAssistantUsers,omitempty"` - // Total number of Chat messages sent in requested period. - TotalChatMessages *int64 `json:"totalChatMessages,omitempty"` - // Total number of AI Document Summarizations invoked in the requested period. - TotalAiSummarizations *int64 `json:"totalAiSummarizations,omitempty"` - // Total number of AI Answers generated in the requested period. - TotalAiAnswers *int64 `json:"totalAiAnswers,omitempty"` - // Total number of Chat messages which received upvotes by the user. - TotalUpvotes *int64 `json:"totalUpvotes,omitempty"` - // Total number of Chat messages which received downvotes by the user. - TotalDownvotes *int64 `json:"totalDownvotes,omitempty"` - // Total number of Gleanbot responses, both proactive and reactive. - TotalGleanbotResponses *int64 `json:"totalGleanbotResponses,omitempty"` - // Total number of Gleanbot responses shared publicly (upvoted). - TotalGleanbotResponsesShared *int64 `json:"totalGleanbotResponsesShared,omitempty"` - // Total number of Glean responses rejected as not helpful (downvoted). - TotalGleanbotResponsesNotHelpful *int64 `json:"totalGleanbotResponsesNotHelpful,omitempty"` - // list of departments applicable for users tab. - Departments []string `json:"departments,omitempty"` -} - -func (o *AiInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *AiInsightsResponse) GetAssistantInsights() []UserActivityInsight { - if o == nil { - return nil - } - return o.AssistantInsights -} - -func (o *AiInsightsResponse) GetTotalActiveAssistantUsers() *int64 { - if o == nil { - return nil - } - return o.TotalActiveAssistantUsers -} - -func (o *AiInsightsResponse) GetTotalChatMessages() *int64 { - if o == nil { - return nil - } - return o.TotalChatMessages -} - -func (o *AiInsightsResponse) GetTotalAiSummarizations() *int64 { - if o == nil { - return nil - } - return o.TotalAiSummarizations -} - -func (o *AiInsightsResponse) GetTotalAiAnswers() *int64 { - if o == nil { - return nil - } - return o.TotalAiAnswers -} - -func (o *AiInsightsResponse) GetTotalUpvotes() *int64 { - if o == nil { - return nil - } - return o.TotalUpvotes -} - -func (o *AiInsightsResponse) GetTotalDownvotes() *int64 { - if o == nil { - return nil - } - return o.TotalDownvotes -} - -func (o *AiInsightsResponse) GetTotalGleanbotResponses() *int64 { - if o == nil { - return nil - } - return o.TotalGleanbotResponses -} - -func (o *AiInsightsResponse) GetTotalGleanbotResponsesShared() *int64 { - if o == nil { - return nil - } - return o.TotalGleanbotResponsesShared -} - -func (o *AiInsightsResponse) GetTotalGleanbotResponsesNotHelpful() *int64 { - if o == nil { - return nil - } - return o.TotalGleanbotResponsesNotHelpful -} - -func (o *AiInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} diff --git a/tests/mockserver/internal/sdk/models/components/allowlistoptions.go b/tests/mockserver/internal/sdk/models/components/allowlistoptions.go deleted file mode 100644 index cf238c9e..00000000 --- a/tests/mockserver/internal/sdk/models/components/allowlistoptions.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// AllowlistOptions - Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term in the allow-list, it will not be counted as a violation. -type AllowlistOptions struct { - // list of words and phrases to consider as whitelisted content - Terms []string `json:"terms,omitempty"` -} - -func (o *AllowlistOptions) GetTerms() []string { - if o == nil { - return nil - } - return o.Terms -} diff --git a/tests/mockserver/internal/sdk/models/components/announcement.go b/tests/mockserver/internal/sdk/models/components/announcement.go deleted file mode 100644 index c8744e43..00000000 --- a/tests/mockserver/internal/sdk/models/components/announcement.go +++ /dev/null @@ -1,307 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -// AnnouncementChannel - This determines whether this is a Social Feed post or a regular announcement. -type AnnouncementChannel string - -const ( - AnnouncementChannelMain AnnouncementChannel = "MAIN" - AnnouncementChannelSocialFeed AnnouncementChannel = "SOCIAL_FEED" -) - -func (e AnnouncementChannel) ToPointer() *AnnouncementChannel { - return &e -} -func (e *AnnouncementChannel) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "MAIN": - fallthrough - case "SOCIAL_FEED": - *e = AnnouncementChannel(v) - return nil - default: - return fmt.Errorf("invalid value for AnnouncementChannel: %v", v) - } -} - -// AnnouncementPostType - This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. -type AnnouncementPostType string - -const ( - AnnouncementPostTypeText AnnouncementPostType = "TEXT" - AnnouncementPostTypeLink AnnouncementPostType = "LINK" -) - -func (e AnnouncementPostType) ToPointer() *AnnouncementPostType { - return &e -} -func (e *AnnouncementPostType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "TEXT": - fallthrough - case "LINK": - *e = AnnouncementPostType(v) - return nil - default: - return fmt.Errorf("invalid value for AnnouncementPostType: %v", v) - } -} - -type AnnouncementViewerInfo struct { - // Whether the viewer has dismissed the announcement. - IsDismissed *bool `json:"isDismissed,omitempty"` - // Whether the viewer has read the announcement. - IsRead *bool `json:"isRead,omitempty"` -} - -func (o *AnnouncementViewerInfo) GetIsDismissed() *bool { - if o == nil { - return nil - } - return o.IsDismissed -} - -func (o *AnnouncementViewerInfo) GetIsRead() *bool { - if o == nil { - return nil - } - return o.IsRead -} - -type Announcement struct { - // The date and time at which the announcement becomes active. - StartTime *time.Time `json:"startTime,omitempty"` - // The date and time at which the announcement expires. - EndTime *time.Time `json:"endTime,omitempty"` - // The headline of the announcement. - Title *string `json:"title,omitempty"` - Body *StructuredText `json:"body,omitempty"` - // An emoji used to indicate the nature of the announcement. - Emoji *string `json:"emoji,omitempty"` - Thumbnail *Thumbnail `json:"thumbnail,omitempty"` - Banner *Thumbnail `json:"banner,omitempty"` - // Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // The Glean Document ID of the source document this Announcement was created from (e.g. Slack thread). - SourceDocumentID *string `json:"sourceDocumentId,omitempty"` - // Whether or not to hide an author attribution. - HideAttribution *bool `json:"hideAttribution,omitempty"` - // This determines whether this is a Social Feed post or a regular announcement. - Channel *AnnouncementChannel `json:"channel,omitempty"` - // This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. - PostType *AnnouncementPostType `json:"postType,omitempty"` - // Used by the Social Feed to pin posts to the front of the feed. - IsPrioritized *bool `json:"isPrioritized,omitempty"` - // URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". - ViewURL *string `json:"viewUrl,omitempty"` - // The opaque id of the associated draft. - DraftID *int64 `json:"draftId,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` - // The opaque id of the announcement. - ID *int64 `json:"id,omitempty"` - Author *Person `json:"author,omitempty"` - // Server Unix timestamp of the creation time (in seconds since epoch UTC). - CreateTimestamp *int64 `json:"createTimestamp,omitempty"` - // Server Unix timestamp of the last update time (in seconds since epoch UTC). - LastUpdateTimestamp *int64 `json:"lastUpdateTimestamp,omitempty"` - UpdatedBy *Person `json:"updatedBy,omitempty"` - ViewerInfo *AnnouncementViewerInfo `json:"viewerInfo,omitempty"` - SourceDocument *Document `json:"sourceDocument,omitempty"` - // Whether or not the announcement is published. - IsPublished *bool `json:"isPublished,omitempty"` -} - -func (a Announcement) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *Announcement) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *Announcement) GetStartTime() *time.Time { - if o == nil { - return nil - } - return o.StartTime -} - -func (o *Announcement) GetEndTime() *time.Time { - if o == nil { - return nil - } - return o.EndTime -} - -func (o *Announcement) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *Announcement) GetBody() *StructuredText { - if o == nil { - return nil - } - return o.Body -} - -func (o *Announcement) GetEmoji() *string { - if o == nil { - return nil - } - return o.Emoji -} - -func (o *Announcement) GetThumbnail() *Thumbnail { - if o == nil { - return nil - } - return o.Thumbnail -} - -func (o *Announcement) GetBanner() *Thumbnail { - if o == nil { - return nil - } - return o.Banner -} - -func (o *Announcement) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *Announcement) GetSourceDocumentID() *string { - if o == nil { - return nil - } - return o.SourceDocumentID -} - -func (o *Announcement) GetHideAttribution() *bool { - if o == nil { - return nil - } - return o.HideAttribution -} - -func (o *Announcement) GetChannel() *AnnouncementChannel { - if o == nil { - return nil - } - return o.Channel -} - -func (o *Announcement) GetPostType() *AnnouncementPostType { - if o == nil { - return nil - } - return o.PostType -} - -func (o *Announcement) GetIsPrioritized() *bool { - if o == nil { - return nil - } - return o.IsPrioritized -} - -func (o *Announcement) GetViewURL() *string { - if o == nil { - return nil - } - return o.ViewURL -} - -func (o *Announcement) GetDraftID() *int64 { - if o == nil { - return nil - } - return o.DraftID -} - -func (o *Announcement) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *Announcement) GetID() *int64 { - if o == nil { - return nil - } - return o.ID -} - -func (o *Announcement) GetAuthor() *Person { - if o == nil { - return nil - } - return o.Author -} - -func (o *Announcement) GetCreateTimestamp() *int64 { - if o == nil { - return nil - } - return o.CreateTimestamp -} - -func (o *Announcement) GetLastUpdateTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastUpdateTimestamp -} - -func (o *Announcement) GetUpdatedBy() *Person { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *Announcement) GetViewerInfo() *AnnouncementViewerInfo { - if o == nil { - return nil - } - return o.ViewerInfo -} - -func (o *Announcement) GetSourceDocument() *Document { - if o == nil { - return nil - } - return o.SourceDocument -} - -func (o *Announcement) GetIsPublished() *bool { - if o == nil { - return nil - } - return o.IsPublished -} diff --git a/tests/mockserver/internal/sdk/models/components/anonymousevent.go b/tests/mockserver/internal/sdk/models/components/anonymousevent.go deleted file mode 100644 index 9486c7b3..00000000 --- a/tests/mockserver/internal/sdk/models/components/anonymousevent.go +++ /dev/null @@ -1,68 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -// AnonymousEventEventType - The nature of the event, for example "out of office". -type AnonymousEventEventType string - -const ( - AnonymousEventEventTypeDefault AnonymousEventEventType = "DEFAULT" - AnonymousEventEventTypeOutOfOffice AnonymousEventEventType = "OUT_OF_OFFICE" -) - -func (e AnonymousEventEventType) ToPointer() *AnonymousEventEventType { - return &e -} -func (e *AnonymousEventEventType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "DEFAULT": - fallthrough - case "OUT_OF_OFFICE": - *e = AnonymousEventEventType(v) - return nil - default: - return fmt.Errorf("invalid value for AnonymousEventEventType: %v", v) - } -} - -// AnonymousEvent - A generic, light-weight calendar event. -type AnonymousEvent struct { - Time *TimeInterval `json:"time,omitempty"` - // The nature of the event, for example "out of office". - EventType *AnonymousEventEventType `json:"eventType,omitempty"` -} - -func (a AnonymousEvent) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *AnonymousEvent) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *AnonymousEvent) GetTime() *TimeInterval { - if o == nil { - return nil - } - return o.Time -} - -func (o *AnonymousEvent) GetEventType() *AnonymousEventEventType { - if o == nil { - return nil - } - return o.EventType -} diff --git a/tests/mockserver/internal/sdk/models/components/answer.go b/tests/mockserver/internal/sdk/models/components/answer.go deleted file mode 100644 index c64abe5c..00000000 --- a/tests/mockserver/internal/sdk/models/components/answer.go +++ /dev/null @@ -1,257 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -type AnswerSourceType string - -const ( - AnswerSourceTypeDocument AnswerSourceType = "DOCUMENT" - AnswerSourceTypeAssistant AnswerSourceType = "ASSISTANT" -) - -func (e AnswerSourceType) ToPointer() *AnswerSourceType { - return &e -} -func (e *AnswerSourceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "DOCUMENT": - fallthrough - case "ASSISTANT": - *e = AnswerSourceType(v) - return nil - default: - return fmt.Errorf("invalid value for AnswerSourceType: %v", v) - } -} - -type Answer struct { - // The opaque ID of the Answer. - ID int64 `json:"id"` - // Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. - DocID *string `json:"docId,omitempty"` - Question *string `json:"question,omitempty"` - // Additional ways of phrasing this question. - QuestionVariations []string `json:"questionVariations,omitempty"` - // The plain text answer to the question. - BodyText *string `json:"bodyText,omitempty"` - // The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - BoardID *int64 `json:"boardId,omitempty"` - // Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // A list of user roles for the answer added by the owner. - AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"` - // A list of user roles for the answer removed by the owner. - RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"` - // A list of roles for this answer explicitly granted by an owner, editor, or admin. - Roles []UserRoleSpecification `json:"roles,omitempty"` - SourceDocumentSpec *DocumentSpecUnion `json:"sourceDocumentSpec,omitempty"` - SourceType *AnswerSourceType `json:"sourceType,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` - CombinedAnswerText *StructuredText `json:"combinedAnswerText,omitempty"` - Likes *AnswerLikes `json:"likes,omitempty"` - Author *Person `json:"author,omitempty"` - // The time the answer was created in ISO format (ISO 8601). - CreateTime *time.Time `json:"createTime,omitempty"` - // The time the answer was last updated in ISO format (ISO 8601). - UpdateTime *time.Time `json:"updateTime,omitempty"` - UpdatedBy *Person `json:"updatedBy,omitempty"` - Verification *Verification `json:"verification,omitempty"` - Board *AnswerBoard `json:"board,omitempty"` - // The collections to which the answer belongs. - Collections []Collection `json:"collections,omitempty"` - // The document's document_category(.proto). - DocumentCategory *string `json:"documentCategory,omitempty"` - SourceDocument *Document `json:"sourceDocument,omitempty"` -} - -func (a Answer) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *Answer) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"id"}); err != nil { - return err - } - return nil -} - -func (o *Answer) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} - -func (o *Answer) GetDocID() *string { - if o == nil { - return nil - } - return o.DocID -} - -func (o *Answer) GetQuestion() *string { - if o == nil { - return nil - } - return o.Question -} - -func (o *Answer) GetQuestionVariations() []string { - if o == nil { - return nil - } - return o.QuestionVariations -} - -func (o *Answer) GetBodyText() *string { - if o == nil { - return nil - } - return o.BodyText -} - -func (o *Answer) GetBoardID() *int64 { - if o == nil { - return nil - } - return o.BoardID -} - -func (o *Answer) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *Answer) GetAddedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.AddedRoles -} - -func (o *Answer) GetRemovedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.RemovedRoles -} - -func (o *Answer) GetRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.Roles -} - -func (o *Answer) GetSourceDocumentSpec() *DocumentSpecUnion { - if o == nil { - return nil - } - return o.SourceDocumentSpec -} - -func (o *Answer) GetSourceType() *AnswerSourceType { - if o == nil { - return nil - } - return o.SourceType -} - -func (o *Answer) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *Answer) GetCombinedAnswerText() *StructuredText { - if o == nil { - return nil - } - return o.CombinedAnswerText -} - -func (o *Answer) GetLikes() *AnswerLikes { - if o == nil { - return nil - } - return o.Likes -} - -func (o *Answer) GetAuthor() *Person { - if o == nil { - return nil - } - return o.Author -} - -func (o *Answer) GetCreateTime() *time.Time { - if o == nil { - return nil - } - return o.CreateTime -} - -func (o *Answer) GetUpdateTime() *time.Time { - if o == nil { - return nil - } - return o.UpdateTime -} - -func (o *Answer) GetUpdatedBy() *Person { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *Answer) GetVerification() *Verification { - if o == nil { - return nil - } - return o.Verification -} - -func (o *Answer) GetBoard() *AnswerBoard { - if o == nil { - return nil - } - return o.Board -} - -func (o *Answer) GetCollections() []Collection { - if o == nil { - return nil - } - return o.Collections -} - -func (o *Answer) GetDocumentCategory() *string { - if o == nil { - return nil - } - return o.DocumentCategory -} - -func (o *Answer) GetSourceDocument() *Document { - if o == nil { - return nil - } - return o.SourceDocument -} diff --git a/tests/mockserver/internal/sdk/models/components/answerboard.go b/tests/mockserver/internal/sdk/models/components/answerboard.go deleted file mode 100644 index 8dfd2c5a..00000000 --- a/tests/mockserver/internal/sdk/models/components/answerboard.go +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -type AnswerBoard struct { - // The unique name of the Collection. - Name string `json:"name"` - // A brief summary of the Collection's contents. - Description string `json:"description"` - // A list of added user roles for the Collection. - AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"` - // A list of removed user roles for the Collection. - RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"` - // Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` - // The unique ID of the Answer Board. - ID int64 `json:"id"` - CreateTime *time.Time `json:"createTime,omitempty"` - UpdateTime *time.Time `json:"updateTime,omitempty"` - Creator *Person `json:"creator,omitempty"` - UpdatedBy *Person `json:"updatedBy,omitempty"` - // The number of items currently in the Answer Board. Separated from the actual items so we can grab the count without items. - ItemCount *int64 `json:"itemCount,omitempty"` - // A list of user roles for the Answer Board. - Roles []UserRoleSpecification `json:"roles,omitempty"` -} - -func (a AnswerBoard) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *AnswerBoard) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"name", "description", "id"}); err != nil { - return err - } - return nil -} - -func (o *AnswerBoard) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *AnswerBoard) GetDescription() string { - if o == nil { - return "" - } - return o.Description -} - -func (o *AnswerBoard) GetAddedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.AddedRoles -} - -func (o *AnswerBoard) GetRemovedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.RemovedRoles -} - -func (o *AnswerBoard) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *AnswerBoard) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *AnswerBoard) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} - -func (o *AnswerBoard) GetCreateTime() *time.Time { - if o == nil { - return nil - } - return o.CreateTime -} - -func (o *AnswerBoard) GetUpdateTime() *time.Time { - if o == nil { - return nil - } - return o.UpdateTime -} - -func (o *AnswerBoard) GetCreator() *Person { - if o == nil { - return nil - } - return o.Creator -} - -func (o *AnswerBoard) GetUpdatedBy() *Person { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *AnswerBoard) GetItemCount() *int64 { - if o == nil { - return nil - } - return o.ItemCount -} - -func (o *AnswerBoard) GetRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.Roles -} diff --git a/tests/mockserver/internal/sdk/models/components/answercreationdata.go b/tests/mockserver/internal/sdk/models/components/answercreationdata.go deleted file mode 100644 index 4050d341..00000000 --- a/tests/mockserver/internal/sdk/models/components/answercreationdata.go +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type AnswerCreationDataSourceType string - -const ( - AnswerCreationDataSourceTypeDocument AnswerCreationDataSourceType = "DOCUMENT" - AnswerCreationDataSourceTypeAssistant AnswerCreationDataSourceType = "ASSISTANT" -) - -func (e AnswerCreationDataSourceType) ToPointer() *AnswerCreationDataSourceType { - return &e -} -func (e *AnswerCreationDataSourceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "DOCUMENT": - fallthrough - case "ASSISTANT": - *e = AnswerCreationDataSourceType(v) - return nil - default: - return fmt.Errorf("invalid value for AnswerCreationDataSourceType: %v", v) - } -} - -type AnswerCreationData struct { - Question *string `json:"question,omitempty"` - // Additional ways of phrasing this question. - QuestionVariations []string `json:"questionVariations,omitempty"` - // The plain text answer to the question. - BodyText *string `json:"bodyText,omitempty"` - // The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - BoardID *int64 `json:"boardId,omitempty"` - // Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // A list of user roles for the answer added by the owner. - AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"` - // A list of user roles for the answer removed by the owner. - RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"` - // A list of roles for this answer explicitly granted by an owner, editor, or admin. - Roles []UserRoleSpecification `json:"roles,omitempty"` - SourceDocumentSpec *DocumentSpecUnion `json:"sourceDocumentSpec,omitempty"` - SourceType *AnswerCreationDataSourceType `json:"sourceType,omitempty"` - // IDs of Collections to which a document is added. - AddedCollections []int64 `json:"addedCollections,omitempty"` - CombinedAnswerText *StructuredTextMutableProperties `json:"combinedAnswerText,omitempty"` -} - -func (o *AnswerCreationData) GetQuestion() *string { - if o == nil { - return nil - } - return o.Question -} - -func (o *AnswerCreationData) GetQuestionVariations() []string { - if o == nil { - return nil - } - return o.QuestionVariations -} - -func (o *AnswerCreationData) GetBodyText() *string { - if o == nil { - return nil - } - return o.BodyText -} - -func (o *AnswerCreationData) GetBoardID() *int64 { - if o == nil { - return nil - } - return o.BoardID -} - -func (o *AnswerCreationData) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *AnswerCreationData) GetAddedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.AddedRoles -} - -func (o *AnswerCreationData) GetRemovedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.RemovedRoles -} - -func (o *AnswerCreationData) GetRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.Roles -} - -func (o *AnswerCreationData) GetSourceDocumentSpec() *DocumentSpecUnion { - if o == nil { - return nil - } - return o.SourceDocumentSpec -} - -func (o *AnswerCreationData) GetSourceType() *AnswerCreationDataSourceType { - if o == nil { - return nil - } - return o.SourceType -} - -func (o *AnswerCreationData) GetAddedCollections() []int64 { - if o == nil { - return nil - } - return o.AddedCollections -} - -func (o *AnswerCreationData) GetCombinedAnswerText() *StructuredTextMutableProperties { - if o == nil { - return nil - } - return o.CombinedAnswerText -} diff --git a/tests/mockserver/internal/sdk/models/components/answerlike.go b/tests/mockserver/internal/sdk/models/components/answerlike.go deleted file mode 100644 index b6fe5246..00000000 --- a/tests/mockserver/internal/sdk/models/components/answerlike.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -type AnswerLike struct { - User *Person `json:"user,omitempty"` - // The time the user liked the answer in ISO format (ISO 8601). - CreateTime *time.Time `json:"createTime,omitempty"` -} - -func (a AnswerLike) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *AnswerLike) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *AnswerLike) GetUser() *Person { - if o == nil { - return nil - } - return o.User -} - -func (o *AnswerLike) GetCreateTime() *time.Time { - if o == nil { - return nil - } - return o.CreateTime -} diff --git a/tests/mockserver/internal/sdk/models/components/answerlikes.go b/tests/mockserver/internal/sdk/models/components/answerlikes.go deleted file mode 100644 index 7adddc86..00000000 --- a/tests/mockserver/internal/sdk/models/components/answerlikes.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type AnswerLikes struct { - LikedBy []AnswerLike `json:"likedBy"` - // Whether the user in context liked the answer. - LikedByUser bool `json:"likedByUser"` - // The total number of likes for the answer. - NumLikes int64 `json:"numLikes"` -} - -func (a AnswerLikes) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *AnswerLikes) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"likedBy", "likedByUser", "numLikes"}); err != nil { - return err - } - return nil -} - -func (o *AnswerLikes) GetLikedBy() []AnswerLike { - if o == nil { - return []AnswerLike{} - } - return o.LikedBy -} - -func (o *AnswerLikes) GetLikedByUser() bool { - if o == nil { - return false - } - return o.LikedByUser -} - -func (o *AnswerLikes) GetNumLikes() int64 { - if o == nil { - return 0 - } - return o.NumLikes -} diff --git a/tests/mockserver/internal/sdk/models/components/answerresult.go b/tests/mockserver/internal/sdk/models/components/answerresult.go deleted file mode 100644 index f5687a60..00000000 --- a/tests/mockserver/internal/sdk/models/components/answerresult.go +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type AnswerResult struct { - Answer Answer `json:"answer"` - // An opaque token that represents this particular Answer. To be used for `/feedback` reporting. - TrackingToken *string `json:"trackingToken,omitempty"` -} - -func (o *AnswerResult) GetAnswer() Answer { - if o == nil { - return Answer{} - } - return o.Answer -} - -func (o *AnswerResult) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} diff --git a/tests/mockserver/internal/sdk/models/components/appresult.go b/tests/mockserver/internal/sdk/models/components/appresult.go deleted file mode 100644 index 13c62319..00000000 --- a/tests/mockserver/internal/sdk/models/components/appresult.go +++ /dev/null @@ -1,57 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type AppResult struct { - // The app or other repository type this represents - Datasource string `json:"datasource"` - // The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). - DocType *string `json:"docType,omitempty"` - // Mimetype is used to differentiate between sub applications from a datasource (e.g. Sheets, Docs from Gdrive) - MimeType *string `json:"mimeType,omitempty"` - // If there is available icon URL. - IconURL *string `json:"iconUrl,omitempty"` -} - -func (a AppResult) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *AppResult) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"datasource"}); err != nil { - return err - } - return nil -} - -func (o *AppResult) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *AppResult) GetDocType() *string { - if o == nil { - return nil - } - return o.DocType -} - -func (o *AppResult) GetMimeType() *string { - if o == nil { - return nil - } - return o.MimeType -} - -func (o *AppResult) GetIconURL() *string { - if o == nil { - return nil - } - return o.IconURL -} diff --git a/tests/mockserver/internal/sdk/models/components/authconfig.go b/tests/mockserver/internal/sdk/models/components/authconfig.go deleted file mode 100644 index b1fc3f6b..00000000 --- a/tests/mockserver/internal/sdk/models/components/authconfig.go +++ /dev/null @@ -1,220 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -// AuthConfigType - The type of authentication being used. -// Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. -// 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. -// 'OAUTH_USER' uses individual user tokens for external API calls. -// 'DWD' refers to domain wide delegation. -type AuthConfigType string - -const ( - AuthConfigTypeNone AuthConfigType = "NONE" - AuthConfigTypeOauthUser AuthConfigType = "OAUTH_USER" - AuthConfigTypeOauthAdmin AuthConfigType = "OAUTH_ADMIN" - AuthConfigTypeAPIKey AuthConfigType = "API_KEY" - AuthConfigTypeBasicAuth AuthConfigType = "BASIC_AUTH" - AuthConfigTypeDwd AuthConfigType = "DWD" -) - -func (e AuthConfigType) ToPointer() *AuthConfigType { - return &e -} -func (e *AuthConfigType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "NONE": - fallthrough - case "OAUTH_USER": - fallthrough - case "OAUTH_ADMIN": - fallthrough - case "API_KEY": - fallthrough - case "BASIC_AUTH": - fallthrough - case "DWD": - *e = AuthConfigType(v) - return nil - default: - return fmt.Errorf("invalid value for AuthConfigType: %v", v) - } -} - -// GrantType - The type of grant type being used. -type GrantType string - -const ( - GrantTypeAuthCode GrantType = "AUTH_CODE" - GrantTypeClientCredentials GrantType = "CLIENT_CREDENTIALS" -) - -func (e GrantType) ToPointer() *GrantType { - return &e -} -func (e *GrantType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "AUTH_CODE": - fallthrough - case "CLIENT_CREDENTIALS": - *e = GrantType(v) - return nil - default: - return fmt.Errorf("invalid value for GrantType: %v", v) - } -} - -// AuthConfigStatus - Auth status of the tool. -type AuthConfigStatus string - -const ( - AuthConfigStatusAwaitingAuth AuthConfigStatus = "AWAITING_AUTH" - AuthConfigStatusAuthorized AuthConfigStatus = "AUTHORIZED" - AuthConfigStatusAuthDisabled AuthConfigStatus = "AUTH_DISABLED" -) - -func (e AuthConfigStatus) ToPointer() *AuthConfigStatus { - return &e -} -func (e *AuthConfigStatus) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "AWAITING_AUTH": - fallthrough - case "AUTHORIZED": - fallthrough - case "AUTH_DISABLED": - *e = AuthConfigStatus(v) - return nil - default: - return fmt.Errorf("invalid value for AuthConfigStatus: %v", v) - } -} - -// AuthConfig - Config for tool's authentication method. -type AuthConfig struct { - // Whether or not this tool is hosted on-premise. - IsOnPrem *bool `json:"isOnPrem,omitempty"` - // Whether or not this uses central auth. - UsesCentralAuth *bool `json:"usesCentralAuth,omitempty"` - // The type of authentication being used. - // Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. - // 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. - // 'OAUTH_USER' uses individual user tokens for external API calls. - // 'DWD' refers to domain wide delegation. - // - Type *AuthConfigType `json:"type,omitempty"` - // The type of grant type being used. - GrantType *GrantType `json:"grantType,omitempty"` - // Auth status of the tool. - Status *AuthConfigStatus `json:"status,omitempty"` - // The URL where users will be directed to start the OAuth flow. - ClientURL *string `json:"client_url,omitempty"` - // A list of strings denoting the different scopes or access levels required by the tool. - Scopes []string `json:"scopes,omitempty"` - // A list of strings denoting the different audience which can access the tool. - Audiences []string `json:"audiences,omitempty"` - // The OAuth provider's endpoint, where access tokens are requested. - AuthorizationURL *string `json:"authorization_url,omitempty"` - // The time the tool was last authorized in ISO format (ISO 8601). - LastAuthorizedAt *time.Time `json:"lastAuthorizedAt,omitempty"` -} - -func (a AuthConfig) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *AuthConfig) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *AuthConfig) GetIsOnPrem() *bool { - if o == nil { - return nil - } - return o.IsOnPrem -} - -func (o *AuthConfig) GetUsesCentralAuth() *bool { - if o == nil { - return nil - } - return o.UsesCentralAuth -} - -func (o *AuthConfig) GetType() *AuthConfigType { - if o == nil { - return nil - } - return o.Type -} - -func (o *AuthConfig) GetGrantType() *GrantType { - if o == nil { - return nil - } - return o.GrantType -} - -func (o *AuthConfig) GetStatus() *AuthConfigStatus { - if o == nil { - return nil - } - return o.Status -} - -func (o *AuthConfig) GetClientURL() *string { - if o == nil { - return nil - } - return o.ClientURL -} - -func (o *AuthConfig) GetScopes() []string { - if o == nil { - return nil - } - return o.Scopes -} - -func (o *AuthConfig) GetAudiences() []string { - if o == nil { - return nil - } - return o.Audiences -} - -func (o *AuthConfig) GetAuthorizationURL() *string { - if o == nil { - return nil - } - return o.AuthorizationURL -} - -func (o *AuthConfig) GetLastAuthorizedAt() *time.Time { - if o == nil { - return nil - } - return o.LastAuthorizedAt -} diff --git a/tests/mockserver/internal/sdk/models/components/authtoken.go b/tests/mockserver/internal/sdk/models/components/authtoken.go deleted file mode 100644 index 774930f2..00000000 --- a/tests/mockserver/internal/sdk/models/components/authtoken.go +++ /dev/null @@ -1,71 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type AuthToken struct { - AccessToken string `json:"accessToken"` - Datasource string `json:"datasource"` - Scope *string `json:"scope,omitempty"` - TokenType *string `json:"tokenType,omitempty"` - // Used by Google to indicate the index of the logged in user. Useful for generating hyperlinks that support multilogin. - AuthUser *string `json:"authUser,omitempty"` - // Unix timestamp when this token expires (in seconds since epoch UTC). - Expiration *int64 `json:"expiration,omitempty"` -} - -func (a AuthToken) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(a, "", false) -} - -func (a *AuthToken) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &a, "", false, []string{"accessToken", "datasource"}); err != nil { - return err - } - return nil -} - -func (o *AuthToken) GetAccessToken() string { - if o == nil { - return "" - } - return o.AccessToken -} - -func (o *AuthToken) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *AuthToken) GetScope() *string { - if o == nil { - return nil - } - return o.Scope -} - -func (o *AuthToken) GetTokenType() *string { - if o == nil { - return nil - } - return o.TokenType -} - -func (o *AuthToken) GetAuthUser() *string { - if o == nil { - return nil - } - return o.AuthUser -} - -func (o *AuthToken) GetExpiration() *int64 { - if o == nil { - return nil - } - return o.Expiration -} diff --git a/tests/mockserver/internal/sdk/models/components/autocompleterequest.go b/tests/mockserver/internal/sdk/models/components/autocompleterequest.go deleted file mode 100644 index 98c22584..00000000 --- a/tests/mockserver/internal/sdk/models/components/autocompleterequest.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type AutocompleteRequestResultType string - -const ( - AutocompleteRequestResultTypeAdditionalDocument AutocompleteRequestResultType = "ADDITIONAL_DOCUMENT" - AutocompleteRequestResultTypeApp AutocompleteRequestResultType = "APP" - AutocompleteRequestResultTypeBrowserHistory AutocompleteRequestResultType = "BROWSER_HISTORY" - AutocompleteRequestResultTypeDatasource AutocompleteRequestResultType = "DATASOURCE" - AutocompleteRequestResultTypeDocument AutocompleteRequestResultType = "DOCUMENT" - AutocompleteRequestResultTypeEntity AutocompleteRequestResultType = "ENTITY" - AutocompleteRequestResultTypeGolink AutocompleteRequestResultType = "GOLINK" - AutocompleteRequestResultTypeHistory AutocompleteRequestResultType = "HISTORY" - AutocompleteRequestResultTypeNewChat AutocompleteRequestResultType = "NEW_CHAT" - AutocompleteRequestResultTypeOperator AutocompleteRequestResultType = "OPERATOR" - AutocompleteRequestResultTypeOperatorValue AutocompleteRequestResultType = "OPERATOR_VALUE" - AutocompleteRequestResultTypeQuicklink AutocompleteRequestResultType = "QUICKLINK" - AutocompleteRequestResultTypeSuggestion AutocompleteRequestResultType = "SUGGESTION" -) - -func (e AutocompleteRequestResultType) ToPointer() *AutocompleteRequestResultType { - return &e -} -func (e *AutocompleteRequestResultType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ADDITIONAL_DOCUMENT": - fallthrough - case "APP": - fallthrough - case "BROWSER_HISTORY": - fallthrough - case "DATASOURCE": - fallthrough - case "DOCUMENT": - fallthrough - case "ENTITY": - fallthrough - case "GOLINK": - fallthrough - case "HISTORY": - fallthrough - case "NEW_CHAT": - fallthrough - case "OPERATOR": - fallthrough - case "OPERATOR_VALUE": - fallthrough - case "QUICKLINK": - fallthrough - case "SUGGESTION": - *e = AutocompleteRequestResultType(v) - return nil - default: - return fmt.Errorf("invalid value for AutocompleteRequestResultType: %v", v) - } -} - -type AutocompleteRequest struct { - TrackingToken *string `json:"trackingToken,omitempty"` - SessionInfo *SessionInfo `json:"sessionInfo,omitempty"` - // Partially typed query. - Query *string `json:"query,omitempty"` - // Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). Results are unfiltered if missing. - DatasourcesFilter []string `json:"datasourcesFilter,omitempty"` - // Filter to only return results relevant to the given datasource. - Datasource *string `json:"datasource,omitempty"` - // Filter to only return results of the given type(s). All types may be returned if omitted. - ResultTypes []AutocompleteRequestResultType `json:"resultTypes,omitempty"` - // Maximum number of results to be returned. If no value is provided, the backend will cap at 200. - // - ResultSize *int64 `json:"resultSize,omitempty"` - // Auth tokens which may be used for federated results. - AuthTokens []AuthToken `json:"authTokens,omitempty"` -} - -func (o *AutocompleteRequest) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *AutocompleteRequest) GetSessionInfo() *SessionInfo { - if o == nil { - return nil - } - return o.SessionInfo -} - -func (o *AutocompleteRequest) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - -func (o *AutocompleteRequest) GetDatasourcesFilter() []string { - if o == nil { - return nil - } - return o.DatasourcesFilter -} - -func (o *AutocompleteRequest) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *AutocompleteRequest) GetResultTypes() []AutocompleteRequestResultType { - if o == nil { - return nil - } - return o.ResultTypes -} - -func (o *AutocompleteRequest) GetResultSize() *int64 { - if o == nil { - return nil - } - return o.ResultSize -} - -func (o *AutocompleteRequest) GetAuthTokens() []AuthToken { - if o == nil { - return nil - } - return o.AuthTokens -} diff --git a/tests/mockserver/internal/sdk/models/components/autocompleteresponse.go b/tests/mockserver/internal/sdk/models/components/autocompleteresponse.go deleted file mode 100644 index 7e2ca2ff..00000000 --- a/tests/mockserver/internal/sdk/models/components/autocompleteresponse.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type AutocompleteResponse struct { - // List of experiment ids for the corresponding request. - ExperimentIds []int64 `json:"experimentIds,omitempty"` - // An opaque token that represents this particular set of autocomplete results. To be used for /feedback reporting. - TrackingToken *string `json:"trackingToken,omitempty"` - SessionInfo *SessionInfo `json:"sessionInfo,omitempty"` - Results []AutocompleteResult `json:"results,omitempty"` - // Subsections of the results list from which distinct sections should be created. - Groups []AutocompleteResultGroup `json:"groups,omitempty"` - GleanDataError *GleanDataError `json:"errorInfo,omitempty"` - // Time in milliseconds the backend took to respond to the request. - BackendTimeMillis *int64 `json:"backendTimeMillis,omitempty"` -} - -func (o *AutocompleteResponse) GetExperimentIds() []int64 { - if o == nil { - return nil - } - return o.ExperimentIds -} - -func (o *AutocompleteResponse) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *AutocompleteResponse) GetSessionInfo() *SessionInfo { - if o == nil { - return nil - } - return o.SessionInfo -} - -func (o *AutocompleteResponse) GetResults() []AutocompleteResult { - if o == nil { - return nil - } - return o.Results -} - -func (o *AutocompleteResponse) GetGroups() []AutocompleteResultGroup { - if o == nil { - return nil - } - return o.Groups -} - -func (o *AutocompleteResponse) GetGleanDataError() *GleanDataError { - if o == nil { - return nil - } - return o.GleanDataError -} - -func (o *AutocompleteResponse) GetBackendTimeMillis() *int64 { - if o == nil { - return nil - } - return o.BackendTimeMillis -} diff --git a/tests/mockserver/internal/sdk/models/components/autocompleteresult.go b/tests/mockserver/internal/sdk/models/components/autocompleteresult.go deleted file mode 100644 index 9dec806a..00000000 --- a/tests/mockserver/internal/sdk/models/components/autocompleteresult.go +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type AutocompleteResultResultType string - -const ( - AutocompleteResultResultTypeAdditionalDocument AutocompleteResultResultType = "ADDITIONAL_DOCUMENT" - AutocompleteResultResultTypeApp AutocompleteResultResultType = "APP" - AutocompleteResultResultTypeBrowserHistory AutocompleteResultResultType = "BROWSER_HISTORY" - AutocompleteResultResultTypeDatasource AutocompleteResultResultType = "DATASOURCE" - AutocompleteResultResultTypeDocument AutocompleteResultResultType = "DOCUMENT" - AutocompleteResultResultTypeEntity AutocompleteResultResultType = "ENTITY" - AutocompleteResultResultTypeGolink AutocompleteResultResultType = "GOLINK" - AutocompleteResultResultTypeHistory AutocompleteResultResultType = "HISTORY" - AutocompleteResultResultTypeNewChat AutocompleteResultResultType = "NEW_CHAT" - AutocompleteResultResultTypeOperator AutocompleteResultResultType = "OPERATOR" - AutocompleteResultResultTypeOperatorValue AutocompleteResultResultType = "OPERATOR_VALUE" - AutocompleteResultResultTypeQuicklink AutocompleteResultResultType = "QUICKLINK" - AutocompleteResultResultTypeSuggestion AutocompleteResultResultType = "SUGGESTION" -) - -func (e AutocompleteResultResultType) ToPointer() *AutocompleteResultResultType { - return &e -} -func (e *AutocompleteResultResultType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ADDITIONAL_DOCUMENT": - fallthrough - case "APP": - fallthrough - case "BROWSER_HISTORY": - fallthrough - case "DATASOURCE": - fallthrough - case "DOCUMENT": - fallthrough - case "ENTITY": - fallthrough - case "GOLINK": - fallthrough - case "HISTORY": - fallthrough - case "NEW_CHAT": - fallthrough - case "OPERATOR": - fallthrough - case "OPERATOR_VALUE": - fallthrough - case "QUICKLINK": - fallthrough - case "SUGGESTION": - *e = AutocompleteResultResultType(v) - return nil - default: - return fmt.Errorf("invalid value for AutocompleteResultResultType: %v", v) - } -} - -type AutocompleteResult struct { - Result string `json:"result"` - // A list of all possible keywords for given result. - Keywords []string `json:"keywords,omitempty"` - ResultType *AutocompleteResultResultType `json:"resultType,omitempty"` - // Higher indicates a more confident match. - Score *float64 `json:"score,omitempty"` - OperatorMetadata *OperatorMetadata `json:"operatorMetadata,omitempty"` - // An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new issue" for jira. - Quicklink *Quicklink `json:"quicklink,omitempty"` - Document *Document `json:"document,omitempty"` - URL *string `json:"url,omitempty"` - // A single object that can support any object in the work graph. Only a single object will be populated. - StructuredResult *StructuredResult `json:"structuredResult,omitempty"` - // A token to be passed in /feedback events associated with this autocomplete result. - TrackingToken *string `json:"trackingToken,omitempty"` - // Subsections of the result string to which some special formatting should be applied (eg. bold) - Ranges []TextRange `json:"ranges,omitempty"` -} - -func (o *AutocompleteResult) GetResult() string { - if o == nil { - return "" - } - return o.Result -} - -func (o *AutocompleteResult) GetKeywords() []string { - if o == nil { - return nil - } - return o.Keywords -} - -func (o *AutocompleteResult) GetResultType() *AutocompleteResultResultType { - if o == nil { - return nil - } - return o.ResultType -} - -func (o *AutocompleteResult) GetScore() *float64 { - if o == nil { - return nil - } - return o.Score -} - -func (o *AutocompleteResult) GetOperatorMetadata() *OperatorMetadata { - if o == nil { - return nil - } - return o.OperatorMetadata -} - -func (o *AutocompleteResult) GetQuicklink() *Quicklink { - if o == nil { - return nil - } - return o.Quicklink -} - -func (o *AutocompleteResult) GetDocument() *Document { - if o == nil { - return nil - } - return o.Document -} - -func (o *AutocompleteResult) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *AutocompleteResult) GetStructuredResult() *StructuredResult { - if o == nil { - return nil - } - return o.StructuredResult -} - -func (o *AutocompleteResult) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *AutocompleteResult) GetRanges() []TextRange { - if o == nil { - return nil - } - return o.Ranges -} diff --git a/tests/mockserver/internal/sdk/models/components/autocompleteresultgroup.go b/tests/mockserver/internal/sdk/models/components/autocompleteresultgroup.go deleted file mode 100644 index fbf4682f..00000000 --- a/tests/mockserver/internal/sdk/models/components/autocompleteresultgroup.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// AutocompleteResultGroup - A subsection of the results list from which distinct sections should be created. -type AutocompleteResultGroup struct { - // The inclusive start index of the range. - StartIndex *int64 `json:"startIndex,omitempty"` - // The exclusive end index of the range. - EndIndex *int64 `json:"endIndex,omitempty"` - // The title of the result group to be displayed. Empty means no title. - Title *string `json:"title,omitempty"` -} - -func (o *AutocompleteResultGroup) GetStartIndex() *int64 { - if o == nil { - return nil - } - return o.StartIndex -} - -func (o *AutocompleteResultGroup) GetEndIndex() *int64 { - if o == nil { - return nil - } - return o.EndIndex -} - -func (o *AutocompleteResultGroup) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} diff --git a/tests/mockserver/internal/sdk/models/components/badge.go b/tests/mockserver/internal/sdk/models/components/badge.go deleted file mode 100644 index 50699340..00000000 --- a/tests/mockserver/internal/sdk/models/components/badge.go +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// Badge - Displays a user's accomplishment or milestone -type Badge struct { - // An auto generated unique identifier. - Key *string `json:"key,omitempty"` - // The badge name displayed to users - DisplayName *string `json:"displayName,omitempty"` - // Defines how to render an icon - IconConfig *IconConfig `json:"iconConfig,omitempty"` - // The badge should be shown on the PersonAttribution - Pinned *bool `json:"pinned,omitempty"` -} - -func (b Badge) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(b, "", false) -} - -func (b *Badge) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &b, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *Badge) GetKey() *string { - if o == nil { - return nil - } - return o.Key -} - -func (o *Badge) GetDisplayName() *string { - if o == nil { - return nil - } - return o.DisplayName -} - -func (o *Badge) GetIconConfig() *IconConfig { - if o == nil { - return nil - } - return o.IconConfig -} - -func (o *Badge) GetPinned() *bool { - if o == nil { - return nil - } - return o.Pinned -} diff --git a/tests/mockserver/internal/sdk/models/components/bulkindexdocumentsrequest.go b/tests/mockserver/internal/sdk/models/components/bulkindexdocumentsrequest.go deleted file mode 100644 index 66aa01e5..00000000 --- a/tests/mockserver/internal/sdk/models/components/bulkindexdocumentsrequest.go +++ /dev/null @@ -1,70 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// BulkIndexDocumentsRequest - Describes the request body of the /bulkindexdocuments API call -type BulkIndexDocumentsRequest struct { - // Unique id that must be used for this bulk upload instance - UploadID string `json:"uploadId"` - // true if this is the first page of the upload. Defaults to false - IsFirstPage *bool `json:"isFirstPage,omitempty"` - // true if this is the last page of the upload. Defaults to false - IsLastPage *bool `json:"isLastPage,omitempty"` - // Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true - ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"` - // Datasource of the documents - Datasource string `json:"datasource"` - // Batch of documents for the datasource - Documents []DocumentDefinition `json:"documents"` - // True if older documents need to be force deleted after the upload completes. Defaults to older documents being deleted asynchronously. This must only be set when `isLastPage = true` - DisableStaleDocumentDeletionCheck *bool `json:"disableStaleDocumentDeletionCheck,omitempty"` -} - -func (o *BulkIndexDocumentsRequest) GetUploadID() string { - if o == nil { - return "" - } - return o.UploadID -} - -func (o *BulkIndexDocumentsRequest) GetIsFirstPage() *bool { - if o == nil { - return nil - } - return o.IsFirstPage -} - -func (o *BulkIndexDocumentsRequest) GetIsLastPage() *bool { - if o == nil { - return nil - } - return o.IsLastPage -} - -func (o *BulkIndexDocumentsRequest) GetForceRestartUpload() *bool { - if o == nil { - return nil - } - return o.ForceRestartUpload -} - -func (o *BulkIndexDocumentsRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *BulkIndexDocumentsRequest) GetDocuments() []DocumentDefinition { - if o == nil { - return []DocumentDefinition{} - } - return o.Documents -} - -func (o *BulkIndexDocumentsRequest) GetDisableStaleDocumentDeletionCheck() *bool { - if o == nil { - return nil - } - return o.DisableStaleDocumentDeletionCheck -} diff --git a/tests/mockserver/internal/sdk/models/components/bulkindexemployeesrequest.go b/tests/mockserver/internal/sdk/models/components/bulkindexemployeesrequest.go deleted file mode 100644 index 84b2d85a..00000000 --- a/tests/mockserver/internal/sdk/models/components/bulkindexemployeesrequest.go +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// BulkIndexEmployeesRequest - Describes the request body of the /bulkindexemployees API call -type BulkIndexEmployeesRequest struct { - // Unique id that must be used for this bulk upload instance - UploadID string `json:"uploadId"` - // true if this is the first page of the upload. Defaults to false - IsFirstPage *bool `json:"isFirstPage,omitempty"` - // true if this is the last page of the upload. Defaults to false - IsLastPage *bool `json:"isLastPage,omitempty"` - // Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true - ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"` - // Batch of employee information - Employees []EmployeeInfoDefinition `json:"employees"` - // True if older employee data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than 20%. This must only be set when `isLastPage = true` - DisableStaleDataDeletionCheck *bool `json:"disableStaleDataDeletionCheck,omitempty"` -} - -func (o *BulkIndexEmployeesRequest) GetUploadID() string { - if o == nil { - return "" - } - return o.UploadID -} - -func (o *BulkIndexEmployeesRequest) GetIsFirstPage() *bool { - if o == nil { - return nil - } - return o.IsFirstPage -} - -func (o *BulkIndexEmployeesRequest) GetIsLastPage() *bool { - if o == nil { - return nil - } - return o.IsLastPage -} - -func (o *BulkIndexEmployeesRequest) GetForceRestartUpload() *bool { - if o == nil { - return nil - } - return o.ForceRestartUpload -} - -func (o *BulkIndexEmployeesRequest) GetEmployees() []EmployeeInfoDefinition { - if o == nil { - return []EmployeeInfoDefinition{} - } - return o.Employees -} - -func (o *BulkIndexEmployeesRequest) GetDisableStaleDataDeletionCheck() *bool { - if o == nil { - return nil - } - return o.DisableStaleDataDeletionCheck -} diff --git a/tests/mockserver/internal/sdk/models/components/bulkindexgroupsrequest.go b/tests/mockserver/internal/sdk/models/components/bulkindexgroupsrequest.go deleted file mode 100644 index b528cd39..00000000 --- a/tests/mockserver/internal/sdk/models/components/bulkindexgroupsrequest.go +++ /dev/null @@ -1,70 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// BulkIndexGroupsRequest - Describes the request body for the /bulkindexgroups API call -type BulkIndexGroupsRequest struct { - // Unique id that must be used for this instance of datasource groups upload - UploadID string `json:"uploadId"` - // true if this is the first page of the upload. Defaults to false - IsFirstPage *bool `json:"isFirstPage,omitempty"` - // true if this is the last page of the upload. Defaults to false - IsLastPage *bool `json:"isLastPage,omitempty"` - // Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true - ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"` - // datasource of the groups - Datasource string `json:"datasource"` - // batch of groups for the datasource - Groups []DatasourceGroupDefinition `json:"groups"` - // True if older group data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` - DisableStaleDataDeletionCheck *bool `json:"disableStaleDataDeletionCheck,omitempty"` -} - -func (o *BulkIndexGroupsRequest) GetUploadID() string { - if o == nil { - return "" - } - return o.UploadID -} - -func (o *BulkIndexGroupsRequest) GetIsFirstPage() *bool { - if o == nil { - return nil - } - return o.IsFirstPage -} - -func (o *BulkIndexGroupsRequest) GetIsLastPage() *bool { - if o == nil { - return nil - } - return o.IsLastPage -} - -func (o *BulkIndexGroupsRequest) GetForceRestartUpload() *bool { - if o == nil { - return nil - } - return o.ForceRestartUpload -} - -func (o *BulkIndexGroupsRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *BulkIndexGroupsRequest) GetGroups() []DatasourceGroupDefinition { - if o == nil { - return []DatasourceGroupDefinition{} - } - return o.Groups -} - -func (o *BulkIndexGroupsRequest) GetDisableStaleDataDeletionCheck() *bool { - if o == nil { - return nil - } - return o.DisableStaleDataDeletionCheck -} diff --git a/tests/mockserver/internal/sdk/models/components/bulkindexmembershipsrequest.go b/tests/mockserver/internal/sdk/models/components/bulkindexmembershipsrequest.go deleted file mode 100644 index 3132cb23..00000000 --- a/tests/mockserver/internal/sdk/models/components/bulkindexmembershipsrequest.go +++ /dev/null @@ -1,70 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// BulkIndexMembershipsRequest - Describes the request body for the /bulkindexmemberships API call -type BulkIndexMembershipsRequest struct { - // Unique id that must be used for this instance of datasource group memberships upload - UploadID string `json:"uploadId"` - // true if this is the first page of the upload. Defaults to false - IsFirstPage *bool `json:"isFirstPage,omitempty"` - // true if this is the last page of the upload. Defaults to false - IsLastPage *bool `json:"isLastPage,omitempty"` - // Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true - ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"` - // datasource of the memberships - Datasource string `json:"datasource"` - // group who's memberships are specified - Group *string `json:"group,omitempty"` - // batch of memberships for the group - Memberships []DatasourceBulkMembershipDefinition `json:"memberships"` -} - -func (o *BulkIndexMembershipsRequest) GetUploadID() string { - if o == nil { - return "" - } - return o.UploadID -} - -func (o *BulkIndexMembershipsRequest) GetIsFirstPage() *bool { - if o == nil { - return nil - } - return o.IsFirstPage -} - -func (o *BulkIndexMembershipsRequest) GetIsLastPage() *bool { - if o == nil { - return nil - } - return o.IsLastPage -} - -func (o *BulkIndexMembershipsRequest) GetForceRestartUpload() *bool { - if o == nil { - return nil - } - return o.ForceRestartUpload -} - -func (o *BulkIndexMembershipsRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *BulkIndexMembershipsRequest) GetGroup() *string { - if o == nil { - return nil - } - return o.Group -} - -func (o *BulkIndexMembershipsRequest) GetMemberships() []DatasourceBulkMembershipDefinition { - if o == nil { - return []DatasourceBulkMembershipDefinition{} - } - return o.Memberships -} diff --git a/tests/mockserver/internal/sdk/models/components/bulkindexshortcutsrequest.go b/tests/mockserver/internal/sdk/models/components/bulkindexshortcutsrequest.go deleted file mode 100644 index 6a4ab205..00000000 --- a/tests/mockserver/internal/sdk/models/components/bulkindexshortcutsrequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// BulkIndexShortcutsRequest - Describes the request body of the /bulkindexshortcuts API call -type BulkIndexShortcutsRequest struct { - // Unique id that must be used for this bulk upload instance - UploadID string `json:"uploadId"` - // true if this is the first page of the upload. Defaults to false - IsFirstPage *bool `json:"isFirstPage,omitempty"` - // true if this is the last page of the upload. Defaults to false - IsLastPage *bool `json:"isLastPage,omitempty"` - // Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true - ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"` - // Batch of shortcuts information - Shortcuts []ExternalShortcut `json:"shortcuts"` -} - -func (o *BulkIndexShortcutsRequest) GetUploadID() string { - if o == nil { - return "" - } - return o.UploadID -} - -func (o *BulkIndexShortcutsRequest) GetIsFirstPage() *bool { - if o == nil { - return nil - } - return o.IsFirstPage -} - -func (o *BulkIndexShortcutsRequest) GetIsLastPage() *bool { - if o == nil { - return nil - } - return o.IsLastPage -} - -func (o *BulkIndexShortcutsRequest) GetForceRestartUpload() *bool { - if o == nil { - return nil - } - return o.ForceRestartUpload -} - -func (o *BulkIndexShortcutsRequest) GetShortcuts() []ExternalShortcut { - if o == nil { - return []ExternalShortcut{} - } - return o.Shortcuts -} diff --git a/tests/mockserver/internal/sdk/models/components/bulkindexteamsrequest.go b/tests/mockserver/internal/sdk/models/components/bulkindexteamsrequest.go deleted file mode 100644 index 0acb6475..00000000 --- a/tests/mockserver/internal/sdk/models/components/bulkindexteamsrequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// BulkIndexTeamsRequest - Describes the request body of the /bulkindexteams API call -type BulkIndexTeamsRequest struct { - // Unique id that must be used for this bulk upload instance - UploadID string `json:"uploadId"` - // true if this is the first page of the upload. Defaults to false - IsFirstPage *bool `json:"isFirstPage,omitempty"` - // true if this is the last page of the upload. Defaults to false - IsLastPage *bool `json:"isLastPage,omitempty"` - // Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true - ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"` - // Batch of team information - Teams []TeamInfoDefinition `json:"teams"` -} - -func (o *BulkIndexTeamsRequest) GetUploadID() string { - if o == nil { - return "" - } - return o.UploadID -} - -func (o *BulkIndexTeamsRequest) GetIsFirstPage() *bool { - if o == nil { - return nil - } - return o.IsFirstPage -} - -func (o *BulkIndexTeamsRequest) GetIsLastPage() *bool { - if o == nil { - return nil - } - return o.IsLastPage -} - -func (o *BulkIndexTeamsRequest) GetForceRestartUpload() *bool { - if o == nil { - return nil - } - return o.ForceRestartUpload -} - -func (o *BulkIndexTeamsRequest) GetTeams() []TeamInfoDefinition { - if o == nil { - return []TeamInfoDefinition{} - } - return o.Teams -} diff --git a/tests/mockserver/internal/sdk/models/components/bulkindexusersrequest.go b/tests/mockserver/internal/sdk/models/components/bulkindexusersrequest.go deleted file mode 100644 index c94ddd90..00000000 --- a/tests/mockserver/internal/sdk/models/components/bulkindexusersrequest.go +++ /dev/null @@ -1,70 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// BulkIndexUsersRequest - Describes the request body for the /bulkindexusers API call -type BulkIndexUsersRequest struct { - // Unique id that must be used for this instance of datasource users upload - UploadID string `json:"uploadId"` - // true if this is the first page of the upload. Defaults to false - IsFirstPage *bool `json:"isFirstPage,omitempty"` - // true if this is the last page of the upload. Defaults to false - IsLastPage *bool `json:"isLastPage,omitempty"` - // Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true - ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"` - // datasource of the users - Datasource string `json:"datasource"` - // batch of users for the datasource - Users []DatasourceUserDefinition `json:"users"` - // True if older user data needs to be force deleted after the upload completes. Defaults to older data being deleted only if the percentage of data being deleted is less than a reasonable threshold. This must only be set when `isLastPage = true` - DisableStaleDataDeletionCheck *bool `json:"disableStaleDataDeletionCheck,omitempty"` -} - -func (o *BulkIndexUsersRequest) GetUploadID() string { - if o == nil { - return "" - } - return o.UploadID -} - -func (o *BulkIndexUsersRequest) GetIsFirstPage() *bool { - if o == nil { - return nil - } - return o.IsFirstPage -} - -func (o *BulkIndexUsersRequest) GetIsLastPage() *bool { - if o == nil { - return nil - } - return o.IsLastPage -} - -func (o *BulkIndexUsersRequest) GetForceRestartUpload() *bool { - if o == nil { - return nil - } - return o.ForceRestartUpload -} - -func (o *BulkIndexUsersRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *BulkIndexUsersRequest) GetUsers() []DatasourceUserDefinition { - if o == nil { - return []DatasourceUserDefinition{} - } - return o.Users -} - -func (o *BulkIndexUsersRequest) GetDisableStaleDataDeletionCheck() *bool { - if o == nil { - return nil - } - return o.DisableStaleDataDeletionCheck -} diff --git a/tests/mockserver/internal/sdk/models/components/bulkuploadhistoryevent.go b/tests/mockserver/internal/sdk/models/components/bulkuploadhistoryevent.go deleted file mode 100644 index 9f7711f3..00000000 --- a/tests/mockserver/internal/sdk/models/components/bulkuploadhistoryevent.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// BulkUploadHistoryEventStatus - The status of the upload, an enum of ACTIVE, SUCCESSFUL -type BulkUploadHistoryEventStatus string - -const ( - BulkUploadHistoryEventStatusActive BulkUploadHistoryEventStatus = "ACTIVE" - BulkUploadHistoryEventStatusSuccessful BulkUploadHistoryEventStatus = "SUCCESSFUL" -) - -func (e BulkUploadHistoryEventStatus) ToPointer() *BulkUploadHistoryEventStatus { - return &e -} -func (e *BulkUploadHistoryEventStatus) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ACTIVE": - fallthrough - case "SUCCESSFUL": - *e = BulkUploadHistoryEventStatus(v) - return nil - default: - return fmt.Errorf("invalid value for BulkUploadHistoryEventStatus: %v", v) - } -} - -// ProcessingState - The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED -type ProcessingState string - -const ( - ProcessingStateUnavailable ProcessingState = "UNAVAILABLE" - ProcessingStateUploadStarted ProcessingState = "UPLOAD STARTED" - ProcessingStateUploadInProgress ProcessingState = "UPLOAD IN PROGRESS" - ProcessingStateUploadCompleted ProcessingState = "UPLOAD COMPLETED" - ProcessingStateDeletionPaused ProcessingState = "DELETION PAUSED" - ProcessingStateIndexingCompleted ProcessingState = "INDEXING COMPLETED" -) - -func (e ProcessingState) ToPointer() *ProcessingState { - return &e -} -func (e *ProcessingState) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "UNAVAILABLE": - fallthrough - case "UPLOAD STARTED": - fallthrough - case "UPLOAD IN PROGRESS": - fallthrough - case "UPLOAD COMPLETED": - fallthrough - case "DELETION PAUSED": - fallthrough - case "INDEXING COMPLETED": - *e = ProcessingState(v) - return nil - default: - return fmt.Errorf("invalid value for ProcessingState: %v", v) - } -} - -// BulkUploadHistoryEvent - Information about a successful bulk upload -type BulkUploadHistoryEvent struct { - // The unique ID of the upload - UploadID *string `json:"uploadId,omitempty"` - // The start time of the upload in ISO 8601 format - StartTime *string `json:"startTime,omitempty"` - // The end time of the upload in ISO 8601 format, 'NA' if the upload is still active - EndTime *string `json:"endTime,omitempty"` - // The status of the upload, an enum of ACTIVE, SUCCESSFUL - Status *BulkUploadHistoryEventStatus `json:"status,omitempty"` - // The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED - ProcessingState *ProcessingState `json:"processingState,omitempty"` -} - -func (o *BulkUploadHistoryEvent) GetUploadID() *string { - if o == nil { - return nil - } - return o.UploadID -} - -func (o *BulkUploadHistoryEvent) GetStartTime() *string { - if o == nil { - return nil - } - return o.StartTime -} - -func (o *BulkUploadHistoryEvent) GetEndTime() *string { - if o == nil { - return nil - } - return o.EndTime -} - -func (o *BulkUploadHistoryEvent) GetStatus() *BulkUploadHistoryEventStatus { - if o == nil { - return nil - } - return o.Status -} - -func (o *BulkUploadHistoryEvent) GetProcessingState() *ProcessingState { - if o == nil { - return nil - } - return o.ProcessingState -} diff --git a/tests/mockserver/internal/sdk/models/components/calendarattendee.go b/tests/mockserver/internal/sdk/models/components/calendarattendee.go deleted file mode 100644 index 4ecffd35..00000000 --- a/tests/mockserver/internal/sdk/models/components/calendarattendee.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -type ResponseStatus string - -const ( - ResponseStatusAccepted ResponseStatus = "ACCEPTED" - ResponseStatusDeclined ResponseStatus = "DECLINED" - ResponseStatusNoResponse ResponseStatus = "NO_RESPONSE" - ResponseStatusTentative ResponseStatus = "TENTATIVE" -) - -func (e ResponseStatus) ToPointer() *ResponseStatus { - return &e -} -func (e *ResponseStatus) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ACCEPTED": - fallthrough - case "DECLINED": - fallthrough - case "NO_RESPONSE": - fallthrough - case "TENTATIVE": - *e = ResponseStatus(v) - return nil - default: - return fmt.Errorf("invalid value for ResponseStatus: %v", v) - } -} - -type CalendarAttendee struct { - // Whether or not this attendee is an organizer. - IsOrganizer *bool `json:"isOrganizer,omitempty"` - // Whether or not this attendee is in a group. Needed temporarily at least to support both flat attendees and tree for compatibility. - IsInGroup *bool `json:"isInGroup,omitempty"` - Person Person `json:"person"` - // If this attendee is a group, represents the list of individual attendees in the group. - GroupAttendees []CalendarAttendee `json:"groupAttendees,omitempty"` - ResponseStatus *ResponseStatus `json:"responseStatus,omitempty"` -} - -func (c CalendarAttendee) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CalendarAttendee) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"person"}); err != nil { - return err - } - return nil -} - -func (o *CalendarAttendee) GetIsOrganizer() *bool { - if o == nil { - return nil - } - return o.IsOrganizer -} - -func (o *CalendarAttendee) GetIsInGroup() *bool { - if o == nil { - return nil - } - return o.IsInGroup -} - -func (o *CalendarAttendee) GetPerson() Person { - if o == nil { - return Person{} - } - return o.Person -} - -func (o *CalendarAttendee) GetGroupAttendees() []CalendarAttendee { - if o == nil { - return nil - } - return o.GroupAttendees -} - -func (o *CalendarAttendee) GetResponseStatus() *ResponseStatus { - if o == nil { - return nil - } - return o.ResponseStatus -} diff --git a/tests/mockserver/internal/sdk/models/components/calendarattendees.go b/tests/mockserver/internal/sdk/models/components/calendarattendees.go deleted file mode 100644 index c237f6fd..00000000 --- a/tests/mockserver/internal/sdk/models/components/calendarattendees.go +++ /dev/null @@ -1,84 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CalendarAttendees struct { - // Full details of some of the attendees of this event - People []CalendarAttendee `json:"people,omitempty"` - // Whether the total count of the people returned is at the retrieval limit. - IsLimit *bool `json:"isLimit,omitempty"` - // Total number of attendees in this event. - Total *int64 `json:"total,omitempty"` - // Total number of attendees who have accepted this event. - NumAccepted *int64 `json:"numAccepted,omitempty"` - // Total number of attendees who have declined this event. - NumDeclined *int64 `json:"numDeclined,omitempty"` - // Total number of attendees who have not responded to this event. - NumNoResponse *int64 `json:"numNoResponse,omitempty"` - // Total number of attendees who have responded tentatively (i.e. responded maybe) to this event. - NumTentative *int64 `json:"numTentative,omitempty"` -} - -func (c CalendarAttendees) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CalendarAttendees) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *CalendarAttendees) GetPeople() []CalendarAttendee { - if o == nil { - return nil - } - return o.People -} - -func (o *CalendarAttendees) GetIsLimit() *bool { - if o == nil { - return nil - } - return o.IsLimit -} - -func (o *CalendarAttendees) GetTotal() *int64 { - if o == nil { - return nil - } - return o.Total -} - -func (o *CalendarAttendees) GetNumAccepted() *int64 { - if o == nil { - return nil - } - return o.NumAccepted -} - -func (o *CalendarAttendees) GetNumDeclined() *int64 { - if o == nil { - return nil - } - return o.NumDeclined -} - -func (o *CalendarAttendees) GetNumNoResponse() *int64 { - if o == nil { - return nil - } - return o.NumNoResponse -} - -func (o *CalendarAttendees) GetNumTentative() *int64 { - if o == nil { - return nil - } - return o.NumTentative -} diff --git a/tests/mockserver/internal/sdk/models/components/calendarevent.go b/tests/mockserver/internal/sdk/models/components/calendarevent.go deleted file mode 100644 index 33ac7433..00000000 --- a/tests/mockserver/internal/sdk/models/components/calendarevent.go +++ /dev/null @@ -1,151 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// CalendarEventEventType - The nature of the event, for example "out of office". -type CalendarEventEventType string - -const ( - CalendarEventEventTypeDefault CalendarEventEventType = "DEFAULT" - CalendarEventEventTypeOutOfOffice CalendarEventEventType = "OUT_OF_OFFICE" -) - -func (e CalendarEventEventType) ToPointer() *CalendarEventEventType { - return &e -} -func (e *CalendarEventEventType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "DEFAULT": - fallthrough - case "OUT_OF_OFFICE": - *e = CalendarEventEventType(v) - return nil - default: - return fmt.Errorf("invalid value for CalendarEventEventType: %v", v) - } -} - -// CalendarEvent - A generic, light-weight calendar event. -type CalendarEvent struct { - Time *TimeInterval `json:"time,omitempty"` - // The nature of the event, for example "out of office". - EventType *CalendarEventEventType `json:"eventType,omitempty"` - // The calendar event id - ID string `json:"id"` - // A permalink for this calendar event - URL string `json:"url"` - Attendees *CalendarAttendees `json:"attendees,omitempty"` - // The location that this event is taking place at. - Location *string `json:"location,omitempty"` - ConferenceData *ConferenceData `json:"conferenceData,omitempty"` - // The HTML description of the event. - Description *string `json:"description,omitempty"` - // The app or other repository type from which the event was extracted - Datasource *string `json:"datasource,omitempty"` - // The event has a transcript associated with it enabling features like summarization - HasTranscript *bool `json:"hasTranscript,omitempty"` - // A link to the transcript of the event - TranscriptURL *string `json:"transcriptUrl,omitempty"` - Classifications []EventClassification `json:"classifications,omitempty"` - GeneratedAttachments []GeneratedAttachment `json:"generatedAttachments,omitempty"` -} - -func (o *CalendarEvent) GetTime() *TimeInterval { - if o == nil { - return nil - } - return o.Time -} - -func (o *CalendarEvent) GetEventType() *CalendarEventEventType { - if o == nil { - return nil - } - return o.EventType -} - -func (o *CalendarEvent) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -func (o *CalendarEvent) GetURL() string { - if o == nil { - return "" - } - return o.URL -} - -func (o *CalendarEvent) GetAttendees() *CalendarAttendees { - if o == nil { - return nil - } - return o.Attendees -} - -func (o *CalendarEvent) GetLocation() *string { - if o == nil { - return nil - } - return o.Location -} - -func (o *CalendarEvent) GetConferenceData() *ConferenceData { - if o == nil { - return nil - } - return o.ConferenceData -} - -func (o *CalendarEvent) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *CalendarEvent) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *CalendarEvent) GetHasTranscript() *bool { - if o == nil { - return nil - } - return o.HasTranscript -} - -func (o *CalendarEvent) GetTranscriptURL() *string { - if o == nil { - return nil - } - return o.TranscriptURL -} - -func (o *CalendarEvent) GetClassifications() []EventClassification { - if o == nil { - return nil - } - return o.Classifications -} - -func (o *CalendarEvent) GetGeneratedAttachments() []GeneratedAttachment { - if o == nil { - return nil - } - return o.GeneratedAttachments -} diff --git a/tests/mockserver/internal/sdk/models/components/canonicalizingregextype.go b/tests/mockserver/internal/sdk/models/components/canonicalizingregextype.go deleted file mode 100644 index 76692d38..00000000 --- a/tests/mockserver/internal/sdk/models/components/canonicalizingregextype.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// CanonicalizingRegexType - Regular expression to apply to an arbitrary string to transform it into a canonical string. -type CanonicalizingRegexType struct { - // Regular expression to match to an arbitrary string. - MatchRegex *string `json:"matchRegex,omitempty"` - // Regular expression to transform into a canonical string. - RewriteRegex *string `json:"rewriteRegex,omitempty"` -} - -func (o *CanonicalizingRegexType) GetMatchRegex() *string { - if o == nil { - return nil - } - return o.MatchRegex -} - -func (o *CanonicalizingRegexType) GetRewriteRegex() *string { - if o == nil { - return nil - } - return o.RewriteRegex -} diff --git a/tests/mockserver/internal/sdk/models/components/channelinviteinfo.go b/tests/mockserver/internal/sdk/models/components/channelinviteinfo.go deleted file mode 100644 index 9e3252d4..00000000 --- a/tests/mockserver/internal/sdk/models/components/channelinviteinfo.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -// ChannelInviteInfo - Information regarding the invite status of a person for a particular channel. -type ChannelInviteInfo struct { - Channel *CommunicationChannel `json:"channel,omitempty"` - // Bit that tracks if this invite was automatically sent or user-sent - IsAutoInvite *bool `json:"isAutoInvite,omitempty"` - Inviter *Person `json:"inviter,omitempty"` - // The time this person was invited in ISO format (ISO 8601). - InviteTime *time.Time `json:"inviteTime,omitempty"` - // The time this person was reminded in ISO format (ISO 8601) if a reminder was sent. - ReminderTime *time.Time `json:"reminderTime,omitempty"` -} - -func (c ChannelInviteInfo) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *ChannelInviteInfo) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *ChannelInviteInfo) GetChannel() *CommunicationChannel { - if o == nil { - return nil - } - return o.Channel -} - -func (o *ChannelInviteInfo) GetIsAutoInvite() *bool { - if o == nil { - return nil - } - return o.IsAutoInvite -} - -func (o *ChannelInviteInfo) GetInviter() *Person { - if o == nil { - return nil - } - return o.Inviter -} - -func (o *ChannelInviteInfo) GetInviteTime() *time.Time { - if o == nil { - return nil - } - return o.InviteTime -} - -func (o *ChannelInviteInfo) GetReminderTime() *time.Time { - if o == nil { - return nil - } - return o.ReminderTime -} diff --git a/tests/mockserver/internal/sdk/models/components/chat.go b/tests/mockserver/internal/sdk/models/components/chat.go deleted file mode 100644 index 6d99873d..00000000 --- a/tests/mockserver/internal/sdk/models/components/chat.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// Chat - A historical representation of a series of chat messages a user had with Glean Assistant. -type Chat struct { - // The opaque id of the Chat. - ID *string `json:"id,omitempty"` - // Server Unix timestamp of the creation time (in seconds since epoch UTC). - CreateTime *int64 `json:"createTime,omitempty"` - CreatedBy *Person `json:"createdBy,omitempty"` - // Server Unix timestamp of the update time (in seconds since epoch UTC). - UpdateTime *int64 `json:"updateTime,omitempty"` - // The name of the Chat. - Name *string `json:"name,omitempty"` - // The ID of the AI App that this Chat is associated to. - ApplicationID *string `json:"applicationId,omitempty"` - // The display name of the AI App that this Chat is associated to. - ApplicationName *string `json:"applicationName,omitempty"` - // Defines how to render an icon - Icon *IconConfig `json:"icon,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` - // The chat messages within a Chat. - Messages []ChatMessage `json:"messages,omitempty"` - // A list of roles for this Chat. - Roles []UserRoleSpecification `json:"roles,omitempty"` -} - -func (o *Chat) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *Chat) GetCreateTime() *int64 { - if o == nil { - return nil - } - return o.CreateTime -} - -func (o *Chat) GetCreatedBy() *Person { - if o == nil { - return nil - } - return o.CreatedBy -} - -func (o *Chat) GetUpdateTime() *int64 { - if o == nil { - return nil - } - return o.UpdateTime -} - -func (o *Chat) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *Chat) GetApplicationID() *string { - if o == nil { - return nil - } - return o.ApplicationID -} - -func (o *Chat) GetApplicationName() *string { - if o == nil { - return nil - } - return o.ApplicationName -} - -func (o *Chat) GetIcon() *IconConfig { - if o == nil { - return nil - } - return o.Icon -} - -func (o *Chat) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *Chat) GetMessages() []ChatMessage { - if o == nil { - return nil - } - return o.Messages -} - -func (o *Chat) GetRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.Roles -} diff --git a/tests/mockserver/internal/sdk/models/components/chatfile.go b/tests/mockserver/internal/sdk/models/components/chatfile.go deleted file mode 100644 index 7ea76ec3..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatfile.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ChatFile - Structure for file uploaded by a user for Chat. -type ChatFile struct { - // Unique identifier of the file. - ID *string `json:"id,omitempty"` - // Url of the file. - URL *string `json:"url,omitempty"` - // Name of the uploaded file. - Name *string `json:"name,omitempty"` - // Metadata of a file uploaded by a user for Chat. - Metadata *ChatFileMetadata `json:"metadata,omitempty"` -} - -func (o *ChatFile) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *ChatFile) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *ChatFile) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *ChatFile) GetMetadata() *ChatFileMetadata { - if o == nil { - return nil - } - return o.Metadata -} diff --git a/tests/mockserver/internal/sdk/models/components/chatfilefailurereason.go b/tests/mockserver/internal/sdk/models/components/chatfilefailurereason.go deleted file mode 100644 index a5a23627..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatfilefailurereason.go +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// ChatFileFailureReason - Reason for failed status. -type ChatFileFailureReason string - -const ( - ChatFileFailureReasonParseFailed ChatFileFailureReason = "PARSE_FAILED" - ChatFileFailureReasonAvScanFailed ChatFileFailureReason = "AV_SCAN_FAILED" - ChatFileFailureReasonFileTooSmall ChatFileFailureReason = "FILE_TOO_SMALL" - ChatFileFailureReasonFileTooLarge ChatFileFailureReason = "FILE_TOO_LARGE" - ChatFileFailureReasonFileExtensionUnsupported ChatFileFailureReason = "FILE_EXTENSION_UNSUPPORTED" - ChatFileFailureReasonFileMetadataValidationFail ChatFileFailureReason = "FILE_METADATA_VALIDATION_FAIL" - ChatFileFailureReasonFileProcessingTimedOut ChatFileFailureReason = "FILE_PROCESSING_TIMED_OUT" -) - -func (e ChatFileFailureReason) ToPointer() *ChatFileFailureReason { - return &e -} -func (e *ChatFileFailureReason) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "PARSE_FAILED": - fallthrough - case "AV_SCAN_FAILED": - fallthrough - case "FILE_TOO_SMALL": - fallthrough - case "FILE_TOO_LARGE": - fallthrough - case "FILE_EXTENSION_UNSUPPORTED": - fallthrough - case "FILE_METADATA_VALIDATION_FAIL": - fallthrough - case "FILE_PROCESSING_TIMED_OUT": - *e = ChatFileFailureReason(v) - return nil - default: - return fmt.Errorf("invalid value for ChatFileFailureReason: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/chatfilemetadata.go b/tests/mockserver/internal/sdk/models/components/chatfilemetadata.go deleted file mode 100644 index 55c746ec..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatfilemetadata.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ChatFileMetadata - Metadata of a file uploaded by a user for Chat. -type ChatFileMetadata struct { - // Current status of the file. - Status *ChatFileStatus `json:"status,omitempty"` - // Upload time, in epoch seconds. - UploadTime *int64 `json:"uploadTime,omitempty"` - // Size of the processed file in bytes. - ProcessedSize *int64 `json:"processedSize,omitempty"` - // Reason for failed status. - FailureReason *ChatFileFailureReason `json:"failureReason,omitempty"` - // MIME type of the file. - MimeType *string `json:"mimeType,omitempty"` -} - -func (o *ChatFileMetadata) GetStatus() *ChatFileStatus { - if o == nil { - return nil - } - return o.Status -} - -func (o *ChatFileMetadata) GetUploadTime() *int64 { - if o == nil { - return nil - } - return o.UploadTime -} - -func (o *ChatFileMetadata) GetProcessedSize() *int64 { - if o == nil { - return nil - } - return o.ProcessedSize -} - -func (o *ChatFileMetadata) GetFailureReason() *ChatFileFailureReason { - if o == nil { - return nil - } - return o.FailureReason -} - -func (o *ChatFileMetadata) GetMimeType() *string { - if o == nil { - return nil - } - return o.MimeType -} diff --git a/tests/mockserver/internal/sdk/models/components/chatfilestatus.go b/tests/mockserver/internal/sdk/models/components/chatfilestatus.go deleted file mode 100644 index 7f192a89..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatfilestatus.go +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// ChatFileStatus - Current status of the file. -type ChatFileStatus string - -const ( - ChatFileStatusProcessing ChatFileStatus = "PROCESSING" - ChatFileStatusProcessed ChatFileStatus = "PROCESSED" - ChatFileStatusFailed ChatFileStatus = "FAILED" - ChatFileStatusDeleted ChatFileStatus = "DELETED" -) - -func (e ChatFileStatus) ToPointer() *ChatFileStatus { - return &e -} -func (e *ChatFileStatus) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "PROCESSING": - fallthrough - case "PROCESSED": - fallthrough - case "FAILED": - fallthrough - case "DELETED": - *e = ChatFileStatus(v) - return nil - default: - return fmt.Errorf("invalid value for ChatFileStatus: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/chatmessage.go b/tests/mockserver/internal/sdk/models/components/chatmessage.go deleted file mode 100644 index 3e9895b5..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatmessage.go +++ /dev/null @@ -1,189 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -type Author string - -const ( - AuthorUser Author = "USER" - AuthorGleanAi Author = "GLEAN_AI" -) - -func (e Author) ToPointer() *Author { - return &e -} -func (e *Author) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "USER": - fallthrough - case "GLEAN_AI": - *e = Author(v) - return nil - default: - return fmt.Errorf("invalid value for Author: %v", v) - } -} - -// MessageType - Semantically groups content of a certain type. It can be used for purposes such as differential UI treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. -type MessageType string - -const ( - MessageTypeUpdate MessageType = "UPDATE" - MessageTypeContent MessageType = "CONTENT" - MessageTypeContext MessageType = "CONTEXT" - MessageTypeDebug MessageType = "DEBUG" - MessageTypeDebugExternal MessageType = "DEBUG_EXTERNAL" - MessageTypeError MessageType = "ERROR" - MessageTypeHeading MessageType = "HEADING" - MessageTypeWarning MessageType = "WARNING" - MessageTypeServerTool MessageType = "SERVER_TOOL" -) - -func (e MessageType) ToPointer() *MessageType { - return &e -} -func (e *MessageType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "UPDATE": - fallthrough - case "CONTENT": - fallthrough - case "CONTEXT": - fallthrough - case "DEBUG": - fallthrough - case "DEBUG_EXTERNAL": - fallthrough - case "ERROR": - fallthrough - case "HEADING": - fallthrough - case "WARNING": - fallthrough - case "SERVER_TOOL": - *e = MessageType(v) - return nil - default: - return fmt.Errorf("invalid value for MessageType: %v", v) - } -} - -// ChatMessage - A message that is rendered as one coherent unit with one given sender. -type ChatMessage struct { - // Describes the agent that executes the request. - AgentConfig *AgentConfig `json:"agentConfig,omitempty"` - Author *Author `default:"USER" json:"author"` - // A list of Citations that were used to generate the response. - Citations []ChatMessageCitation `json:"citations,omitempty"` - // IDs of files uploaded in the message that are referenced to generate the answer. - UploadedFileIds []string `json:"uploadedFileIds,omitempty"` - // A list of rich data used to represent the response or formulate a request. These are linearly stitched together to support richer data formats beyond simple text. - Fragments []ChatMessageFragment `json:"fragments,omitempty"` - // Response timestamp of the message. - Ts *string `json:"ts,omitempty"` - // A unique server-side generated ID used to identify a message, automatically populated for any USER authored messages. - MessageID *string `json:"messageId,omitempty"` - // Opaque tracking token generated server-side. - MessageTrackingToken *string `json:"messageTrackingToken,omitempty"` - // Semantically groups content of a certain type. It can be used for purposes such as differential UI treatment. USER authored messages should be of type CONTENT and do not need `messageType` specified. - MessageType *MessageType `default:"CONTENT" json:"messageType"` - // Signals there are additional response fragments incoming. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - HasMoreFragments *bool `json:"hasMoreFragments,omitempty"` -} - -func (c ChatMessage) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *ChatMessage) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *ChatMessage) GetAgentConfig() *AgentConfig { - if o == nil { - return nil - } - return o.AgentConfig -} - -func (o *ChatMessage) GetAuthor() *Author { - if o == nil { - return nil - } - return o.Author -} - -func (o *ChatMessage) GetCitations() []ChatMessageCitation { - if o == nil { - return nil - } - return o.Citations -} - -func (o *ChatMessage) GetUploadedFileIds() []string { - if o == nil { - return nil - } - return o.UploadedFileIds -} - -func (o *ChatMessage) GetFragments() []ChatMessageFragment { - if o == nil { - return nil - } - return o.Fragments -} - -func (o *ChatMessage) GetTs() *string { - if o == nil { - return nil - } - return o.Ts -} - -func (o *ChatMessage) GetMessageID() *string { - if o == nil { - return nil - } - return o.MessageID -} - -func (o *ChatMessage) GetMessageTrackingToken() *string { - if o == nil { - return nil - } - return o.MessageTrackingToken -} - -func (o *ChatMessage) GetMessageType() *MessageType { - if o == nil { - return nil - } - return o.MessageType -} - -func (o *ChatMessage) GetHasMoreFragments() *bool { - if o == nil { - return nil - } - return o.HasMoreFragments -} diff --git a/tests/mockserver/internal/sdk/models/components/chatmessagecitation.go b/tests/mockserver/internal/sdk/models/components/chatmessagecitation.go deleted file mode 100644 index fd3e6a32..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatmessagecitation.go +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ChatMessageCitation - Information about the source for a ChatMessage. -type ChatMessageCitation struct { - // An opaque token that represents this particular result in this particular ChatMessage. To be used for /feedback reporting. - TrackingToken *string `json:"trackingToken,omitempty"` - SourceDocument *Document `json:"sourceDocument,omitempty"` - // Structure for file uploaded by a user for Chat. - SourceFile *ChatFile `json:"sourceFile,omitempty"` - SourcePerson *Person `json:"sourcePerson,omitempty"` - // Each reference range and its corresponding snippets - ReferenceRanges []ReferenceRange `json:"referenceRanges,omitempty"` -} - -func (o *ChatMessageCitation) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *ChatMessageCitation) GetSourceDocument() *Document { - if o == nil { - return nil - } - return o.SourceDocument -} - -func (o *ChatMessageCitation) GetSourceFile() *ChatFile { - if o == nil { - return nil - } - return o.SourceFile -} - -func (o *ChatMessageCitation) GetSourcePerson() *Person { - if o == nil { - return nil - } - return o.SourcePerson -} - -func (o *ChatMessageCitation) GetReferenceRanges() []ReferenceRange { - if o == nil { - return nil - } - return o.ReferenceRanges -} diff --git a/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go b/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go deleted file mode 100644 index be2b3866..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatmessagefragment.go +++ /dev/null @@ -1,67 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ChatMessageFragment - Represents a part of a ChatMessage that originates from a single action/tool. It is designed to support rich data formats beyond simple text, allowing for a more dynamic and interactive chat experience. Each fragment can include various types of content, such as text, search queries, action information, and more. Also, each ChatMessageFragment should only have one of structuredResults, querySuggestion, writeAction, followupAction, agentRecommendation or file. -type ChatMessageFragment struct { - // An array of entities in the work graph retrieved via a data request. - StructuredResults []StructuredResult `json:"structuredResults,omitempty"` - // An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. - TrackingToken *string `json:"trackingToken,omitempty"` - Text *string `json:"text,omitempty"` - QuerySuggestion *QuerySuggestion `json:"querySuggestion,omitempty"` - // Structure for file uploaded by a user for Chat. - File *ChatFile `json:"file,omitempty"` - Action *ToolInfo `json:"action,omitempty"` - // Information about the source for a ChatMessage. - Citation *ChatMessageCitation `json:"citation,omitempty"` -} - -func (o *ChatMessageFragment) GetStructuredResults() []StructuredResult { - if o == nil { - return nil - } - return o.StructuredResults -} - -func (o *ChatMessageFragment) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *ChatMessageFragment) GetText() *string { - if o == nil { - return nil - } - return o.Text -} - -func (o *ChatMessageFragment) GetQuerySuggestion() *QuerySuggestion { - if o == nil { - return nil - } - return o.QuerySuggestion -} - -func (o *ChatMessageFragment) GetFile() *ChatFile { - if o == nil { - return nil - } - return o.File -} - -func (o *ChatMessageFragment) GetAction() *ToolInfo { - if o == nil { - return nil - } - return o.Action -} - -func (o *ChatMessageFragment) GetCitation() *ChatMessageCitation { - if o == nil { - return nil - } - return o.Citation -} diff --git a/tests/mockserver/internal/sdk/models/components/chatmetadata.go b/tests/mockserver/internal/sdk/models/components/chatmetadata.go deleted file mode 100644 index b2b298bf..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatmetadata.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ChatMetadata - Metadata of a Chat a user had with Glean Assistant. This contains no actual conversational content. -type ChatMetadata struct { - // The opaque id of the Chat. - ID *string `json:"id,omitempty"` - // Server Unix timestamp of the creation time (in seconds since epoch UTC). - CreateTime *int64 `json:"createTime,omitempty"` - CreatedBy *Person `json:"createdBy,omitempty"` - // Server Unix timestamp of the update time (in seconds since epoch UTC). - UpdateTime *int64 `json:"updateTime,omitempty"` - // The name of the Chat. - Name *string `json:"name,omitempty"` - // The ID of the AI App that this Chat is associated to. - ApplicationID *string `json:"applicationId,omitempty"` - // The display name of the AI App that this Chat is associated to. - ApplicationName *string `json:"applicationName,omitempty"` - // Defines how to render an icon - Icon *IconConfig `json:"icon,omitempty"` -} - -func (o *ChatMetadata) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *ChatMetadata) GetCreateTime() *int64 { - if o == nil { - return nil - } - return o.CreateTime -} - -func (o *ChatMetadata) GetCreatedBy() *Person { - if o == nil { - return nil - } - return o.CreatedBy -} - -func (o *ChatMetadata) GetUpdateTime() *int64 { - if o == nil { - return nil - } - return o.UpdateTime -} - -func (o *ChatMetadata) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *ChatMetadata) GetApplicationID() *string { - if o == nil { - return nil - } - return o.ApplicationID -} - -func (o *ChatMetadata) GetApplicationName() *string { - if o == nil { - return nil - } - return o.ApplicationName -} - -func (o *ChatMetadata) GetIcon() *IconConfig { - if o == nil { - return nil - } - return o.Icon -} diff --git a/tests/mockserver/internal/sdk/models/components/chatmetadataresult.go b/tests/mockserver/internal/sdk/models/components/chatmetadataresult.go deleted file mode 100644 index 74a43305..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatmetadataresult.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ChatMetadataResult struct { - // Metadata of a Chat a user had with Glean Assistant. This contains no actual conversational content. - Chat *ChatMetadata `json:"chat,omitempty"` - // An opaque token that represents this particular Chat. To be used for `/feedback` reporting. - TrackingToken *string `json:"trackingToken,omitempty"` -} - -func (o *ChatMetadataResult) GetChat() *ChatMetadata { - if o == nil { - return nil - } - return o.Chat -} - -func (o *ChatMetadataResult) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} diff --git a/tests/mockserver/internal/sdk/models/components/chatrequest.go b/tests/mockserver/internal/sdk/models/components/chatrequest.go deleted file mode 100644 index d26c7a1c..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatrequest.go +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ChatRequest struct { - // Save the current interaction as a Chat for the user to access and potentially continue later. - SaveChat *bool `json:"saveChat,omitempty"` - // The id of the Chat that context should be retrieved from and messages added to. An empty id starts a new Chat, and the Chat is saved if saveChat is true. - ChatID *string `json:"chatId,omitempty"` - // A list of chat messages, from most recent to least recent. At least one message must specify a USER author. - Messages []ChatMessage `json:"messages"` - // Describes the agent that executes the request. - AgentConfig *AgentConfig `json:"agentConfig,omitempty"` - Inclusions *ChatRestrictionFilters `json:"inclusions,omitempty"` - Exclusions *ChatRestrictionFilters `json:"exclusions,omitempty"` - // Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. - TimeoutMillis *int64 `json:"timeoutMillis,omitempty"` - SessionInfo *SessionInfo `json:"sessionInfo,omitempty"` - // The ID of the application this request originates from, used to determine the configuration of underlying chat processes. This should correspond to the ID set during admin setup. If not specified, the default chat experience will be used. - ApplicationID *string `json:"applicationId,omitempty"` - // The ID of the Agent that should process this chat request. Only Agents with trigger set to 'User chat message' are invokable through this API. If not specified, the default chat experience will be used. - AgentID *string `json:"agentId,omitempty"` - // If set, response lines will be streamed one-by-one as they become available. Each will be a ChatResponse, formatted as JSON, and separated by a new line. If false, the entire response will be returned at once. Note that if this is set and the model being used does not support streaming, the model's response will not be streamed, but other messages from the endpoint still will be. - Stream *bool `json:"stream,omitempty"` -} - -func (o *ChatRequest) GetSaveChat() *bool { - if o == nil { - return nil - } - return o.SaveChat -} - -func (o *ChatRequest) GetChatID() *string { - if o == nil { - return nil - } - return o.ChatID -} - -func (o *ChatRequest) GetMessages() []ChatMessage { - if o == nil { - return []ChatMessage{} - } - return o.Messages -} - -func (o *ChatRequest) GetAgentConfig() *AgentConfig { - if o == nil { - return nil - } - return o.AgentConfig -} - -func (o *ChatRequest) GetInclusions() *ChatRestrictionFilters { - if o == nil { - return nil - } - return o.Inclusions -} - -func (o *ChatRequest) GetExclusions() *ChatRestrictionFilters { - if o == nil { - return nil - } - return o.Exclusions -} - -func (o *ChatRequest) GetTimeoutMillis() *int64 { - if o == nil { - return nil - } - return o.TimeoutMillis -} - -func (o *ChatRequest) GetSessionInfo() *SessionInfo { - if o == nil { - return nil - } - return o.SessionInfo -} - -func (o *ChatRequest) GetApplicationID() *string { - if o == nil { - return nil - } - return o.ApplicationID -} - -func (o *ChatRequest) GetAgentID() *string { - if o == nil { - return nil - } - return o.AgentID -} - -func (o *ChatRequest) GetStream() *bool { - if o == nil { - return nil - } - return o.Stream -} diff --git a/tests/mockserver/internal/sdk/models/components/chatresponse.go b/tests/mockserver/internal/sdk/models/components/chatresponse.go deleted file mode 100644 index a6f51d28..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatresponse.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ChatResponse - A single response from the /chat backend. -type ChatResponse struct { - Messages []ChatMessage `json:"messages,omitempty"` - // The id of the associated Chat the messages belong to, if one exists. - ChatID *string `json:"chatId,omitempty"` - // Follow-up prompts for the user to potentially use - FollowUpPrompts []string `json:"followUpPrompts,omitempty"` - // Time in milliseconds the backend took to respond to the request. - BackendTimeMillis *int64 `json:"backendTimeMillis,omitempty"` - // A token that is used to track the session. - ChatSessionTrackingToken *string `json:"chatSessionTrackingToken,omitempty"` -} - -func (o *ChatResponse) GetMessages() []ChatMessage { - if o == nil { - return nil - } - return o.Messages -} - -func (o *ChatResponse) GetChatID() *string { - if o == nil { - return nil - } - return o.ChatID -} - -func (o *ChatResponse) GetFollowUpPrompts() []string { - if o == nil { - return nil - } - return o.FollowUpPrompts -} - -func (o *ChatResponse) GetBackendTimeMillis() *int64 { - if o == nil { - return nil - } - return o.BackendTimeMillis -} - -func (o *ChatResponse) GetChatSessionTrackingToken() *string { - if o == nil { - return nil - } - return o.ChatSessionTrackingToken -} diff --git a/tests/mockserver/internal/sdk/models/components/chatrestrictionfilters.go b/tests/mockserver/internal/sdk/models/components/chatrestrictionfilters.go deleted file mode 100644 index 0be4fc51..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatrestrictionfilters.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ChatRestrictionFilters struct { - // Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. - ContainerSpecs []DocumentSpecUnion `json:"containerSpecs,omitempty"` - DocumentSpecs []DocumentSpecUnion `json:"documentSpecs,omitempty"` - DatasourceInstances []string `json:"datasourceInstances,omitempty"` -} - -func (o *ChatRestrictionFilters) GetContainerSpecs() []DocumentSpecUnion { - if o == nil { - return nil - } - return o.ContainerSpecs -} - -func (o *ChatRestrictionFilters) GetDocumentSpecs() []DocumentSpecUnion { - if o == nil { - return nil - } - return o.DocumentSpecs -} - -func (o *ChatRestrictionFilters) GetDatasourceInstances() []string { - if o == nil { - return nil - } - return o.DatasourceInstances -} diff --git a/tests/mockserver/internal/sdk/models/components/chatresult.go b/tests/mockserver/internal/sdk/models/components/chatresult.go deleted file mode 100644 index ca043f8a..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatresult.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ChatResult struct { - // A historical representation of a series of chat messages a user had with Glean Assistant. - Chat *Chat `json:"chat,omitempty"` - // An opaque token that represents this particular Chat. To be used for `/feedback` reporting. - TrackingToken *string `json:"trackingToken,omitempty"` -} - -func (o *ChatResult) GetChat() *Chat { - if o == nil { - return nil - } - return o.Chat -} - -func (o *ChatResult) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} diff --git a/tests/mockserver/internal/sdk/models/components/chatsuggestion.go b/tests/mockserver/internal/sdk/models/components/chatsuggestion.go deleted file mode 100644 index d6c0bfb0..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatsuggestion.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ChatSuggestion struct { - // The actionable chat query to run when the user selects this suggestion. - Query *string `json:"query,omitempty"` - // Targeted Glean Chat feature for the suggestion. - Feature *string `json:"feature,omitempty"` -} - -func (o *ChatSuggestion) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - -func (o *ChatSuggestion) GetFeature() *string { - if o == nil { - return nil - } - return o.Feature -} diff --git a/tests/mockserver/internal/sdk/models/components/chatzerostatesuggestionoptions.go b/tests/mockserver/internal/sdk/models/components/chatzerostatesuggestionoptions.go deleted file mode 100644 index 9c7c788a..00000000 --- a/tests/mockserver/internal/sdk/models/components/chatzerostatesuggestionoptions.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ChatZeroStateSuggestionOptions struct { - // The Chat Application ID this feed request should be scoped to. Empty means there is no Chat Application ID.. - ApplicationID *string `json:"applicationId,omitempty"` -} - -func (o *ChatZeroStateSuggestionOptions) GetApplicationID() *string { - if o == nil { - return nil - } - return o.ApplicationID -} diff --git a/tests/mockserver/internal/sdk/models/components/checkdocumentaccessrequest.go b/tests/mockserver/internal/sdk/models/components/checkdocumentaccessrequest.go deleted file mode 100644 index 29131d83..00000000 --- a/tests/mockserver/internal/sdk/models/components/checkdocumentaccessrequest.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// CheckDocumentAccessRequest - Describes the request body of the /checkdocumentaccess API call -type CheckDocumentAccessRequest struct { - // Datasource of document to check access for. - Datasource string `json:"datasource"` - // Object type of document to check access for. - ObjectType string `json:"objectType"` - // Glean Document ID to check access for. - DocID string `json:"docId"` - // Email of user to check access for. - UserEmail string `json:"userEmail"` -} - -func (o *CheckDocumentAccessRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *CheckDocumentAccessRequest) GetObjectType() string { - if o == nil { - return "" - } - return o.ObjectType -} - -func (o *CheckDocumentAccessRequest) GetDocID() string { - if o == nil { - return "" - } - return o.DocID -} - -func (o *CheckDocumentAccessRequest) GetUserEmail() string { - if o == nil { - return "" - } - return o.UserEmail -} diff --git a/tests/mockserver/internal/sdk/models/components/checkdocumentaccessresponse.go b/tests/mockserver/internal/sdk/models/components/checkdocumentaccessresponse.go deleted file mode 100644 index 26a4aa74..00000000 --- a/tests/mockserver/internal/sdk/models/components/checkdocumentaccessresponse.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// CheckDocumentAccessResponse - Describes the response body of the /checkdocumentaccess API call -type CheckDocumentAccessResponse struct { - // If true, user has access to document for search - HasAccess *bool `json:"hasAccess,omitempty"` -} - -func (o *CheckDocumentAccessResponse) GetHasAccess() *bool { - if o == nil { - return nil - } - return o.HasAccess -} diff --git a/tests/mockserver/internal/sdk/models/components/clustergroup.go b/tests/mockserver/internal/sdk/models/components/clustergroup.go deleted file mode 100644 index 4cde0d62..00000000 --- a/tests/mockserver/internal/sdk/models/components/clustergroup.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type ClusterGroup struct { - // A list of results that should be displayed as associated with this result. - ClusteredResults []SearchResult `json:"clusteredResults,omitempty"` - // The reason for inclusion of clusteredResults. - ClusterType *ClusterTypeEnum `json:"clusterType,omitempty"` - // The default number of results to display before truncating and showing a "see more" link - VisibleCountHint int64 `json:"visibleCountHint"` -} - -func (c ClusterGroup) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *ClusterGroup) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"visibleCountHint"}); err != nil { - return err - } - return nil -} - -func (o *ClusterGroup) GetClusteredResults() []SearchResult { - if o == nil { - return nil - } - return o.ClusteredResults -} - -func (o *ClusterGroup) GetClusterType() *ClusterTypeEnum { - if o == nil { - return nil - } - return o.ClusterType -} - -func (o *ClusterGroup) GetVisibleCountHint() int64 { - if o == nil { - return 0 - } - return o.VisibleCountHint -} diff --git a/tests/mockserver/internal/sdk/models/components/clustertypeenum.go b/tests/mockserver/internal/sdk/models/components/clustertypeenum.go deleted file mode 100644 index 49fd9e3b..00000000 --- a/tests/mockserver/internal/sdk/models/components/clustertypeenum.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// ClusterTypeEnum - The reason for inclusion of clusteredResults. -type ClusterTypeEnum string - -const ( - ClusterTypeEnumSimilar ClusterTypeEnum = "SIMILAR" - ClusterTypeEnumFreshness ClusterTypeEnum = "FRESHNESS" - ClusterTypeEnumTitle ClusterTypeEnum = "TITLE" - ClusterTypeEnumContent ClusterTypeEnum = "CONTENT" - ClusterTypeEnumNone ClusterTypeEnum = "NONE" - ClusterTypeEnumThreadReply ClusterTypeEnum = "THREAD_REPLY" - ClusterTypeEnumThreadRoot ClusterTypeEnum = "THREAD_ROOT" - ClusterTypeEnumPrefix ClusterTypeEnum = "PREFIX" - ClusterTypeEnumSuffix ClusterTypeEnum = "SUFFIX" - ClusterTypeEnumAuthorPrefix ClusterTypeEnum = "AUTHOR_PREFIX" - ClusterTypeEnumAuthorSuffix ClusterTypeEnum = "AUTHOR_SUFFIX" -) - -func (e ClusterTypeEnum) ToPointer() *ClusterTypeEnum { - return &e -} -func (e *ClusterTypeEnum) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "SIMILAR": - fallthrough - case "FRESHNESS": - fallthrough - case "TITLE": - fallthrough - case "CONTENT": - fallthrough - case "NONE": - fallthrough - case "THREAD_REPLY": - fallthrough - case "THREAD_ROOT": - fallthrough - case "PREFIX": - fallthrough - case "SUFFIX": - fallthrough - case "AUTHOR_PREFIX": - fallthrough - case "AUTHOR_SUFFIX": - *e = ClusterTypeEnum(v) - return nil - default: - return fmt.Errorf("invalid value for ClusterTypeEnum: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/code.go b/tests/mockserver/internal/sdk/models/components/code.go deleted file mode 100644 index d15f7dee..00000000 --- a/tests/mockserver/internal/sdk/models/components/code.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type Code struct { - RepoName *string `json:"repoName,omitempty"` - FileName *string `json:"fileName,omitempty"` - FileURL *string `json:"fileUrl,omitempty"` - Lines []CodeLine `json:"lines,omitempty"` - // Last file match for a repo - IsLastMatch *bool `json:"isLastMatch,omitempty"` -} - -func (c Code) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *Code) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *Code) GetRepoName() *string { - if o == nil { - return nil - } - return o.RepoName -} - -func (o *Code) GetFileName() *string { - if o == nil { - return nil - } - return o.FileName -} - -func (o *Code) GetFileURL() *string { - if o == nil { - return nil - } - return o.FileURL -} - -func (o *Code) GetLines() []CodeLine { - if o == nil { - return nil - } - return o.Lines -} - -func (o *Code) GetIsLastMatch() *bool { - if o == nil { - return nil - } - return o.IsLastMatch -} diff --git a/tests/mockserver/internal/sdk/models/components/codeline.go b/tests/mockserver/internal/sdk/models/components/codeline.go deleted file mode 100644 index a21a60f1..00000000 --- a/tests/mockserver/internal/sdk/models/components/codeline.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CodeLine struct { - LineNumber *int64 `json:"lineNumber,omitempty"` - Content *string `json:"content,omitempty"` - // Index ranges depicting matched sections of the line - Ranges []TextRange `json:"ranges,omitempty"` -} - -func (c CodeLine) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CodeLine) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *CodeLine) GetLineNumber() *int64 { - if o == nil { - return nil - } - return o.LineNumber -} - -func (o *CodeLine) GetContent() *string { - if o == nil { - return nil - } - return o.Content -} - -func (o *CodeLine) GetRanges() []TextRange { - if o == nil { - return nil - } - return o.Ranges -} diff --git a/tests/mockserver/internal/sdk/models/components/collection.go b/tests/mockserver/internal/sdk/models/components/collection.go deleted file mode 100644 index 29d98fc1..00000000 --- a/tests/mockserver/internal/sdk/models/components/collection.go +++ /dev/null @@ -1,222 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -type Collection struct { - // The unique name of the Collection. - Name string `json:"name"` - // A brief summary of the Collection's contents. - Description string `json:"description"` - // A list of added user roles for the Collection. - AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"` - // A list of removed user roles for the Collection. - RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"` - // Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // The emoji icon of this Collection. - Icon *string `json:"icon,omitempty"` - // Indicates whether edits are allowed for everyone or only admins. - AdminLocked *bool `json:"adminLocked,omitempty"` - // The parent of this Collection, or 0 if it's a top-level Collection. - ParentID *int64 `json:"parentId,omitempty"` - Thumbnail *Thumbnail `json:"thumbnail,omitempty"` - // The datasource type this Collection can hold. - AllowedDatasource *string `json:"allowedDatasource,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` - // The unique ID of the Collection. - ID int64 `json:"id"` - CreateTime *time.Time `json:"createTime,omitempty"` - UpdateTime *time.Time `json:"updateTime,omitempty"` - Creator *Person `json:"creator,omitempty"` - UpdatedBy *Person `json:"updatedBy,omitempty"` - // The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. - ItemCount *int64 `json:"itemCount,omitempty"` - // The number of children Collections. Separated from the actual children so we can grab the count without children. - ChildCount *int64 `json:"childCount,omitempty"` - // The items in this Collection. - Items []CollectionItem `json:"items,omitempty"` - PinMetadata *CollectionPinnedMetadata `json:"pinMetadata,omitempty"` - // The names of the shortcuts (Go Links) that point to this Collection. - Shortcuts []string `json:"shortcuts,omitempty"` - // The children Collections of this Collection. - Children []Collection `json:"children,omitempty"` - // A list of user roles for the Collection. - Roles []UserRoleSpecification `json:"roles,omitempty"` -} - -func (c Collection) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *Collection) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name", "description", "id"}); err != nil { - return err - } - return nil -} - -func (o *Collection) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *Collection) GetDescription() string { - if o == nil { - return "" - } - return o.Description -} - -func (o *Collection) GetAddedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.AddedRoles -} - -func (o *Collection) GetRemovedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.RemovedRoles -} - -func (o *Collection) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *Collection) GetIcon() *string { - if o == nil { - return nil - } - return o.Icon -} - -func (o *Collection) GetAdminLocked() *bool { - if o == nil { - return nil - } - return o.AdminLocked -} - -func (o *Collection) GetParentID() *int64 { - if o == nil { - return nil - } - return o.ParentID -} - -func (o *Collection) GetThumbnail() *Thumbnail { - if o == nil { - return nil - } - return o.Thumbnail -} - -func (o *Collection) GetAllowedDatasource() *string { - if o == nil { - return nil - } - return o.AllowedDatasource -} - -func (o *Collection) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *Collection) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} - -func (o *Collection) GetCreateTime() *time.Time { - if o == nil { - return nil - } - return o.CreateTime -} - -func (o *Collection) GetUpdateTime() *time.Time { - if o == nil { - return nil - } - return o.UpdateTime -} - -func (o *Collection) GetCreator() *Person { - if o == nil { - return nil - } - return o.Creator -} - -func (o *Collection) GetUpdatedBy() *Person { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *Collection) GetItemCount() *int64 { - if o == nil { - return nil - } - return o.ItemCount -} - -func (o *Collection) GetChildCount() *int64 { - if o == nil { - return nil - } - return o.ChildCount -} - -func (o *Collection) GetItems() []CollectionItem { - if o == nil { - return nil - } - return o.Items -} - -func (o *Collection) GetPinMetadata() *CollectionPinnedMetadata { - if o == nil { - return nil - } - return o.PinMetadata -} - -func (o *Collection) GetShortcuts() []string { - if o == nil { - return nil - } - return o.Shortcuts -} - -func (o *Collection) GetChildren() []Collection { - if o == nil { - return nil - } - return o.Children -} - -func (o *Collection) GetRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.Roles -} diff --git a/tests/mockserver/internal/sdk/models/components/collectionerror.go b/tests/mockserver/internal/sdk/models/components/collectionerror.go deleted file mode 100644 index 1cf4a37d..00000000 --- a/tests/mockserver/internal/sdk/models/components/collectionerror.go +++ /dev/null @@ -1,72 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -type CollectionErrorErrorCode string - -const ( - CollectionErrorErrorCodeNameExists CollectionErrorErrorCode = "NAME_EXISTS" - CollectionErrorErrorCodeNotFound CollectionErrorErrorCode = "NOT_FOUND" - CollectionErrorErrorCodeCollectionPinned CollectionErrorErrorCode = "COLLECTION_PINNED" - CollectionErrorErrorCodeConcurrentHierarchyEdit CollectionErrorErrorCode = "CONCURRENT_HIERARCHY_EDIT" - CollectionErrorErrorCodeHeightViolation CollectionErrorErrorCode = "HEIGHT_VIOLATION" - CollectionErrorErrorCodeWidthViolation CollectionErrorErrorCode = "WIDTH_VIOLATION" - CollectionErrorErrorCodeNoPermissions CollectionErrorErrorCode = "NO_PERMISSIONS" -) - -func (e CollectionErrorErrorCode) ToPointer() *CollectionErrorErrorCode { - return &e -} -func (e *CollectionErrorErrorCode) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "NAME_EXISTS": - fallthrough - case "NOT_FOUND": - fallthrough - case "COLLECTION_PINNED": - fallthrough - case "CONCURRENT_HIERARCHY_EDIT": - fallthrough - case "HEIGHT_VIOLATION": - fallthrough - case "WIDTH_VIOLATION": - fallthrough - case "NO_PERMISSIONS": - *e = CollectionErrorErrorCode(v) - return nil - default: - return fmt.Errorf("invalid value for CollectionErrorErrorCode: %v", v) - } -} - -type CollectionError struct { - ErrorCode CollectionErrorErrorCode `json:"errorCode"` -} - -func (c CollectionError) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CollectionError) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"errorCode"}); err != nil { - return err - } - return nil -} - -func (o *CollectionError) GetErrorCode() CollectionErrorErrorCode { - if o == nil { - return CollectionErrorErrorCode("") - } - return o.ErrorCode -} diff --git a/tests/mockserver/internal/sdk/models/components/collectionitem.go b/tests/mockserver/internal/sdk/models/components/collectionitem.go deleted file mode 100644 index 311aac34..00000000 --- a/tests/mockserver/internal/sdk/models/components/collectionitem.go +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -type CollectionItemItemType string - -const ( - CollectionItemItemTypeDocument CollectionItemItemType = "DOCUMENT" - CollectionItemItemTypeText CollectionItemItemType = "TEXT" - CollectionItemItemTypeURL CollectionItemItemType = "URL" - CollectionItemItemTypeCollection CollectionItemItemType = "COLLECTION" -) - -func (e CollectionItemItemType) ToPointer() *CollectionItemItemType { - return &e -} -func (e *CollectionItemItemType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "DOCUMENT": - fallthrough - case "TEXT": - fallthrough - case "URL": - fallthrough - case "COLLECTION": - *e = CollectionItemItemType(v) - return nil - default: - return fmt.Errorf("invalid value for CollectionItemItemType: %v", v) - } -} - -type CollectionItem struct { - // The optional name of the Collection item. - Name *string `json:"name,omitempty"` - // A helpful description of why this CollectionItem is in the Collection that it's in. - Description *string `json:"description,omitempty"` - // The emoji icon for this CollectionItem. Only used for Text type items. - Icon *string `json:"icon,omitempty"` - // The Collection ID of the Collection that this CollectionItem belongs in. - CollectionID int64 `json:"collectionId"` - // If this CollectionItem is indexed, the Glean Document ID of that document. - DocumentID *string `json:"documentId,omitempty"` - // The URL of this CollectionItem. - URL *string `json:"url,omitempty"` - // Unique identifier for the item within the Collection it belongs to. - ItemID *string `json:"itemId,omitempty"` - CreatedBy *Person `json:"createdBy,omitempty"` - // Unix timestamp for when the item was first added (in seconds since epoch UTC). - CreatedAt *time.Time `json:"createdAt,omitempty"` - Document *Document `json:"document,omitempty"` - Shortcut *Shortcut `json:"shortcut,omitempty"` - Collection *Collection `json:"collection,omitempty"` - ItemType CollectionItemItemType `json:"itemType"` -} - -func (c CollectionItem) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CollectionItem) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"collectionId", "itemType"}); err != nil { - return err - } - return nil -} - -func (o *CollectionItem) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *CollectionItem) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *CollectionItem) GetIcon() *string { - if o == nil { - return nil - } - return o.Icon -} - -func (o *CollectionItem) GetCollectionID() int64 { - if o == nil { - return 0 - } - return o.CollectionID -} - -func (o *CollectionItem) GetDocumentID() *string { - if o == nil { - return nil - } - return o.DocumentID -} - -func (o *CollectionItem) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *CollectionItem) GetItemID() *string { - if o == nil { - return nil - } - return o.ItemID -} - -func (o *CollectionItem) GetCreatedBy() *Person { - if o == nil { - return nil - } - return o.CreatedBy -} - -func (o *CollectionItem) GetCreatedAt() *time.Time { - if o == nil { - return nil - } - return o.CreatedAt -} - -func (o *CollectionItem) GetDocument() *Document { - if o == nil { - return nil - } - return o.Document -} - -func (o *CollectionItem) GetShortcut() *Shortcut { - if o == nil { - return nil - } - return o.Shortcut -} - -func (o *CollectionItem) GetCollection() *Collection { - if o == nil { - return nil - } - return o.Collection -} - -func (o *CollectionItem) GetItemType() CollectionItemItemType { - if o == nil { - return CollectionItemItemType("") - } - return o.ItemType -} diff --git a/tests/mockserver/internal/sdk/models/components/collectionitemdescriptor.go b/tests/mockserver/internal/sdk/models/components/collectionitemdescriptor.go deleted file mode 100644 index c52451d3..00000000 --- a/tests/mockserver/internal/sdk/models/components/collectionitemdescriptor.go +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type CollectionItemDescriptorItemType string - -const ( - CollectionItemDescriptorItemTypeDocument CollectionItemDescriptorItemType = "DOCUMENT" - CollectionItemDescriptorItemTypeText CollectionItemDescriptorItemType = "TEXT" - CollectionItemDescriptorItemTypeURL CollectionItemDescriptorItemType = "URL" -) - -func (e CollectionItemDescriptorItemType) ToPointer() *CollectionItemDescriptorItemType { - return &e -} -func (e *CollectionItemDescriptorItemType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "DOCUMENT": - fallthrough - case "TEXT": - fallthrough - case "URL": - *e = CollectionItemDescriptorItemType(v) - return nil - default: - return fmt.Errorf("invalid value for CollectionItemDescriptorItemType: %v", v) - } -} - -type CollectionItemDescriptor struct { - // The optional name of the Collection item. - Name *string `json:"name,omitempty"` - // A helpful description of why this CollectionItem is in the Collection that it's in. - Description *string `json:"description,omitempty"` - // The emoji icon for this CollectionItem. Only used for Text type items. - Icon *string `json:"icon,omitempty"` - // The URL of the item being added. - URL *string `json:"url,omitempty"` - // The Glean Document ID of the item being added if it's an indexed document. - DocumentID *string `json:"documentId,omitempty"` - // The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection - NewNextItemID *string `json:"newNextItemId,omitempty"` - ItemType *CollectionItemDescriptorItemType `json:"itemType,omitempty"` -} - -func (o *CollectionItemDescriptor) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *CollectionItemDescriptor) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *CollectionItemDescriptor) GetIcon() *string { - if o == nil { - return nil - } - return o.Icon -} - -func (o *CollectionItemDescriptor) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *CollectionItemDescriptor) GetDocumentID() *string { - if o == nil { - return nil - } - return o.DocumentID -} - -func (o *CollectionItemDescriptor) GetNewNextItemID() *string { - if o == nil { - return nil - } - return o.NewNextItemID -} - -func (o *CollectionItemDescriptor) GetItemType() *CollectionItemDescriptorItemType { - if o == nil { - return nil - } - return o.ItemType -} diff --git a/tests/mockserver/internal/sdk/models/components/collectionpinmetadata.go b/tests/mockserver/internal/sdk/models/components/collectionpinmetadata.go deleted file mode 100644 index fee1304d..00000000 --- a/tests/mockserver/internal/sdk/models/components/collectionpinmetadata.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CollectionPinMetadata struct { - // The ID of the Collection. - ID int64 `json:"id"` - Target CollectionPinTarget `json:"target"` -} - -func (c CollectionPinMetadata) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CollectionPinMetadata) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "target"}); err != nil { - return err - } - return nil -} - -func (o *CollectionPinMetadata) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} - -func (o *CollectionPinMetadata) GetTarget() CollectionPinTarget { - if o == nil { - return CollectionPinTarget{} - } - return o.Target -} diff --git a/tests/mockserver/internal/sdk/models/components/collectionpinnablecategories.go b/tests/mockserver/internal/sdk/models/components/collectionpinnablecategories.go deleted file mode 100644 index 8679fde6..00000000 --- a/tests/mockserver/internal/sdk/models/components/collectionpinnablecategories.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// CollectionPinnableCategories - Categories a Collection can be pinned to. -type CollectionPinnableCategories string - -const ( - CollectionPinnableCategoriesCompanyResource CollectionPinnableCategories = "COMPANY_RESOURCE" - CollectionPinnableCategoriesDepartmentResource CollectionPinnableCategories = "DEPARTMENT_RESOURCE" - CollectionPinnableCategoriesTeamResource CollectionPinnableCategories = "TEAM_RESOURCE" -) - -func (e CollectionPinnableCategories) ToPointer() *CollectionPinnableCategories { - return &e -} -func (e *CollectionPinnableCategories) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "COMPANY_RESOURCE": - fallthrough - case "DEPARTMENT_RESOURCE": - fallthrough - case "TEAM_RESOURCE": - *e = CollectionPinnableCategories(v) - return nil - default: - return fmt.Errorf("invalid value for CollectionPinnableCategories: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/collectionpinnabletargets.go b/tests/mockserver/internal/sdk/models/components/collectionpinnabletargets.go deleted file mode 100644 index fdcec773..00000000 --- a/tests/mockserver/internal/sdk/models/components/collectionpinnabletargets.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// CollectionPinnableTargets - What targets can a Collection be pinned to. -type CollectionPinnableTargets string - -const ( - CollectionPinnableTargetsResourceCard CollectionPinnableTargets = "RESOURCE_CARD" - CollectionPinnableTargetsTeamProfilePage CollectionPinnableTargets = "TEAM_PROFILE_PAGE" -) - -func (e CollectionPinnableTargets) ToPointer() *CollectionPinnableTargets { - return &e -} -func (e *CollectionPinnableTargets) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "RESOURCE_CARD": - fallthrough - case "TEAM_PROFILE_PAGE": - *e = CollectionPinnableTargets(v) - return nil - default: - return fmt.Errorf("invalid value for CollectionPinnableTargets: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/collectionpinnedmetadata.go b/tests/mockserver/internal/sdk/models/components/collectionpinnedmetadata.go deleted file mode 100644 index d0857718..00000000 --- a/tests/mockserver/internal/sdk/models/components/collectionpinnedmetadata.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CollectionPinnedMetadata struct { - // List of targets this Collection is pinned to. - ExistingPins []CollectionPinTarget `json:"existingPins,omitempty"` - // List of targets this Collection can be pinned to, excluding the targets this Collection is already pinned to. We also include Collection ID already is pinned to each eligible target, which will be 0 if the target has no pinned Collection. - EligiblePins []CollectionPinMetadata `json:"eligiblePins,omitempty"` -} - -func (c CollectionPinnedMetadata) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CollectionPinnedMetadata) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *CollectionPinnedMetadata) GetExistingPins() []CollectionPinTarget { - if o == nil { - return nil - } - return o.ExistingPins -} - -func (o *CollectionPinnedMetadata) GetEligiblePins() []CollectionPinMetadata { - if o == nil { - return nil - } - return o.EligiblePins -} diff --git a/tests/mockserver/internal/sdk/models/components/collectionpintarget.go b/tests/mockserver/internal/sdk/models/components/collectionpintarget.go deleted file mode 100644 index 64ea09b2..00000000 --- a/tests/mockserver/internal/sdk/models/components/collectionpintarget.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CollectionPinTarget struct { - // Categories a Collection can be pinned to. - Category CollectionPinnableCategories `json:"category"` - // Optional. If category supports values, then the additional value for the category e.g. department name for DEPARTMENT_RESOURCE, team name/id for TEAM_RESOURCE and so on. - Value *string `json:"value,omitempty"` - // What targets can a Collection be pinned to. - Target *CollectionPinnableTargets `json:"target,omitempty"` -} - -func (c CollectionPinTarget) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CollectionPinTarget) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"category"}); err != nil { - return err - } - return nil -} - -func (o *CollectionPinTarget) GetCategory() CollectionPinnableCategories { - if o == nil { - return CollectionPinnableCategories("") - } - return o.Category -} - -func (o *CollectionPinTarget) GetValue() *string { - if o == nil { - return nil - } - return o.Value -} - -func (o *CollectionPinTarget) GetTarget() *CollectionPinnableTargets { - if o == nil { - return nil - } - return o.Target -} diff --git a/tests/mockserver/internal/sdk/models/components/commentdefinition.go b/tests/mockserver/internal/sdk/models/components/commentdefinition.go deleted file mode 100644 index ecdc8f11..00000000 --- a/tests/mockserver/internal/sdk/models/components/commentdefinition.go +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// CommentDefinition - Describes a comment on a document -type CommentDefinition struct { - // The document specific id for the comment. This field is case insensitive and should not be more than 200 characters in length. - ID string `json:"id"` - // Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. - Author *UserReferenceDefinition `json:"author,omitempty"` - // Describes text content or base64 encoded binary content - Content *ContentDefinition `json:"content,omitempty"` - // The creation time, in epoch seconds. - CreatedAt *int64 `json:"createdAt,omitempty"` - // The last updated time, in epoch seconds. - UpdatedAt *int64 `json:"updatedAt,omitempty"` - // Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. - UpdatedBy *UserReferenceDefinition `json:"updatedBy,omitempty"` -} - -func (o *CommentDefinition) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -func (o *CommentDefinition) GetAuthor() *UserReferenceDefinition { - if o == nil { - return nil - } - return o.Author -} - -func (o *CommentDefinition) GetContent() *ContentDefinition { - if o == nil { - return nil - } - return o.Content -} - -func (o *CommentDefinition) GetCreatedAt() *int64 { - if o == nil { - return nil - } - return o.CreatedAt -} - -func (o *CommentDefinition) GetUpdatedAt() *int64 { - if o == nil { - return nil - } - return o.UpdatedAt -} - -func (o *CommentDefinition) GetUpdatedBy() *UserReferenceDefinition { - if o == nil { - return nil - } - return o.UpdatedBy -} diff --git a/tests/mockserver/internal/sdk/models/components/communicationchannel.go b/tests/mockserver/internal/sdk/models/components/communicationchannel.go deleted file mode 100644 index 63f9dfdb..00000000 --- a/tests/mockserver/internal/sdk/models/components/communicationchannel.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type CommunicationChannel string - -const ( - CommunicationChannelCommunicationChannelEmail CommunicationChannel = "COMMUNICATION_CHANNEL_EMAIL" - CommunicationChannelCommunicationChannelSlack CommunicationChannel = "COMMUNICATION_CHANNEL_SLACK" -) - -func (e CommunicationChannel) ToPointer() *CommunicationChannel { - return &e -} -func (e *CommunicationChannel) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "COMMUNICATION_CHANNEL_EMAIL": - fallthrough - case "COMMUNICATION_CHANNEL_SLACK": - *e = CommunicationChannel(v) - return nil - default: - return fmt.Errorf("invalid value for CommunicationChannel: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/company.go b/tests/mockserver/internal/sdk/models/components/company.go deleted file mode 100644 index e92400cb..00000000 --- a/tests/mockserver/internal/sdk/models/components/company.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" -) - -type Company struct { - // User-friendly display name. - Name string `json:"name"` - // Link to internal company company profile. - ProfileURL *string `json:"profileUrl,omitempty"` - // Link to company's associated websites. - WebsiteUrls []string `json:"websiteUrls,omitempty"` - // The URL of the company's logo. Public, Glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). - LogoURL *string `json:"logoUrl,omitempty"` - // User facing string representing the company's location. - Location *string `json:"location,omitempty"` - // Phone number as a number string. - Phone *string `json:"phone,omitempty"` - // Fax number as a number string. - Fax *string `json:"fax,omitempty"` - // User facing string representing the company's industry. - Industry *string `json:"industry,omitempty"` - // Average company's annual revenue for reference. - AnnualRevenue *float64 `json:"annualRevenue,omitempty"` - // Average company's number of employees for reference. - NumberOfEmployees *int64 `json:"numberOfEmployees,omitempty"` - // Company's stock symbol if company is public. - StockSymbol *string `json:"stockSymbol,omitempty"` - // The date when the company was founded. - FoundedDate *types.Date `json:"foundedDate,omitempty"` - // User facing description of company. - About *string `json:"about,omitempty"` -} - -func (c Company) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *Company) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name"}); err != nil { - return err - } - return nil -} - -func (o *Company) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *Company) GetProfileURL() *string { - if o == nil { - return nil - } - return o.ProfileURL -} - -func (o *Company) GetWebsiteUrls() []string { - if o == nil { - return nil - } - return o.WebsiteUrls -} - -func (o *Company) GetLogoURL() *string { - if o == nil { - return nil - } - return o.LogoURL -} - -func (o *Company) GetLocation() *string { - if o == nil { - return nil - } - return o.Location -} - -func (o *Company) GetPhone() *string { - if o == nil { - return nil - } - return o.Phone -} - -func (o *Company) GetFax() *string { - if o == nil { - return nil - } - return o.Fax -} - -func (o *Company) GetIndustry() *string { - if o == nil { - return nil - } - return o.Industry -} - -func (o *Company) GetAnnualRevenue() *float64 { - if o == nil { - return nil - } - return o.AnnualRevenue -} - -func (o *Company) GetNumberOfEmployees() *int64 { - if o == nil { - return nil - } - return o.NumberOfEmployees -} - -func (o *Company) GetStockSymbol() *string { - if o == nil { - return nil - } - return o.StockSymbol -} - -func (o *Company) GetFoundedDate() *types.Date { - if o == nil { - return nil - } - return o.FoundedDate -} - -func (o *Company) GetAbout() *string { - if o == nil { - return nil - } - return o.About -} diff --git a/tests/mockserver/internal/sdk/models/components/conferencedata.go b/tests/mockserver/internal/sdk/models/components/conferencedata.go deleted file mode 100644 index 04b08de5..00000000 --- a/tests/mockserver/internal/sdk/models/components/conferencedata.go +++ /dev/null @@ -1,91 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type Provider string - -const ( - ProviderZoom Provider = "ZOOM" - ProviderHangouts Provider = "HANGOUTS" -) - -func (e Provider) ToPointer() *Provider { - return &e -} -func (e *Provider) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ZOOM": - fallthrough - case "HANGOUTS": - *e = Provider(v) - return nil - default: - return fmt.Errorf("invalid value for Provider: %v", v) - } -} - -type ConferenceDataSource string - -const ( - ConferenceDataSourceNativeConference ConferenceDataSource = "NATIVE_CONFERENCE" - ConferenceDataSourceLocation ConferenceDataSource = "LOCATION" - ConferenceDataSourceDescription ConferenceDataSource = "DESCRIPTION" -) - -func (e ConferenceDataSource) ToPointer() *ConferenceDataSource { - return &e -} -func (e *ConferenceDataSource) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "NATIVE_CONFERENCE": - fallthrough - case "LOCATION": - fallthrough - case "DESCRIPTION": - *e = ConferenceDataSource(v) - return nil - default: - return fmt.Errorf("invalid value for ConferenceDataSource: %v", v) - } -} - -type ConferenceData struct { - Provider Provider `json:"provider"` - // A permalink for the conference. - URI string `json:"uri"` - Source *ConferenceDataSource `json:"source,omitempty"` -} - -func (o *ConferenceData) GetProvider() Provider { - if o == nil { - return Provider("") - } - return o.Provider -} - -func (o *ConferenceData) GetURI() string { - if o == nil { - return "" - } - return o.URI -} - -func (o *ConferenceData) GetSource() *ConferenceDataSource { - if o == nil { - return nil - } - return o.Source -} diff --git a/tests/mockserver/internal/sdk/models/components/connectortype.go b/tests/mockserver/internal/sdk/models/components/connectortype.go deleted file mode 100644 index fcf165bb..00000000 --- a/tests/mockserver/internal/sdk/models/components/connectortype.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// ConnectorType - The source from which document content was pulled, e.g. an API crawl or browser history -type ConnectorType string - -const ( - ConnectorTypeAPICrawl ConnectorType = "API_CRAWL" - ConnectorTypeBrowserCrawl ConnectorType = "BROWSER_CRAWL" - ConnectorTypeBrowserHistory ConnectorType = "BROWSER_HISTORY" - ConnectorTypeBuiltin ConnectorType = "BUILTIN" - ConnectorTypeFederatedSearch ConnectorType = "FEDERATED_SEARCH" - ConnectorTypePushAPI ConnectorType = "PUSH_API" - ConnectorTypeWebCrawl ConnectorType = "WEB_CRAWL" - ConnectorTypeNativeHistory ConnectorType = "NATIVE_HISTORY" -) - -func (e ConnectorType) ToPointer() *ConnectorType { - return &e -} -func (e *ConnectorType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "API_CRAWL": - fallthrough - case "BROWSER_CRAWL": - fallthrough - case "BROWSER_HISTORY": - fallthrough - case "BUILTIN": - fallthrough - case "FEDERATED_SEARCH": - fallthrough - case "PUSH_API": - fallthrough - case "WEB_CRAWL": - fallthrough - case "NATIVE_HISTORY": - *e = ConnectorType(v) - return nil - default: - return fmt.Errorf("invalid value for ConnectorType: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/contentdefinition.go b/tests/mockserver/internal/sdk/models/components/contentdefinition.go deleted file mode 100644 index 7be15567..00000000 --- a/tests/mockserver/internal/sdk/models/components/contentdefinition.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ContentDefinition - Describes text content or base64 encoded binary content -type ContentDefinition struct { - MimeType string `json:"mimeType"` - // text content. Only one of textContent or binary content can be specified - TextContent *string `json:"textContent,omitempty"` - // base64 encoded binary content. Only one of textContent or binary content can be specified - BinaryContent *string `json:"binaryContent,omitempty"` -} - -func (o *ContentDefinition) GetMimeType() string { - if o == nil { - return "" - } - return o.MimeType -} - -func (o *ContentDefinition) GetTextContent() *string { - if o == nil { - return nil - } - return o.TextContent -} - -func (o *ContentDefinition) GetBinaryContent() *string { - if o == nil { - return nil - } - return o.BinaryContent -} diff --git a/tests/mockserver/internal/sdk/models/components/contentinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/contentinsightsresponse.go deleted file mode 100644 index e417efa7..00000000 --- a/tests/mockserver/internal/sdk/models/components/contentinsightsresponse.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ContentInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - // Insights for documents. - DocumentInsights []DocumentInsight `json:"documentInsights,omitempty"` - // list of departments applicable for contents tab. - Departments []string `json:"departments,omitempty"` - // Min threshold in size of departments while populating results, otherwise 0. - MinDepartmentSizeThreshold *int64 `json:"minDepartmentSizeThreshold,omitempty"` - // Minimum number of visitors to a document required to be included in insights. - MinVisitorThreshold *int64 `json:"minVisitorThreshold,omitempty"` -} - -func (o *ContentInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *ContentInsightsResponse) GetDocumentInsights() []DocumentInsight { - if o == nil { - return nil - } - return o.DocumentInsights -} - -func (o *ContentInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} - -func (o *ContentInsightsResponse) GetMinDepartmentSizeThreshold() *int64 { - if o == nil { - return nil - } - return o.MinDepartmentSizeThreshold -} - -func (o *ContentInsightsResponse) GetMinVisitorThreshold() *int64 { - if o == nil { - return nil - } - return o.MinVisitorThreshold -} diff --git a/tests/mockserver/internal/sdk/models/components/contenttype.go b/tests/mockserver/internal/sdk/models/components/contenttype.go deleted file mode 100644 index 6740b4e6..00000000 --- a/tests/mockserver/internal/sdk/models/components/contenttype.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type ContentType string - -const ( - ContentTypeText ContentType = "text" -) - -func (e ContentType) ToPointer() *ContentType { - return &e -} -func (e *ContentType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "text": - *e = ContentType(v) - return nil - default: - return fmt.Errorf("invalid value for ContentType: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/countinfo.go b/tests/mockserver/internal/sdk/models/components/countinfo.go deleted file mode 100644 index 6126f60c..00000000 --- a/tests/mockserver/internal/sdk/models/components/countinfo.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CountInfo struct { - // The counter value - Count int64 `json:"count"` - Period *Period `json:"period,omitempty"` - // The unit of organization over which we did the count aggregation, e.g. org (department) or company - Org *string `json:"org,omitempty"` -} - -func (c CountInfo) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CountInfo) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"count"}); err != nil { - return err - } - return nil -} - -func (o *CountInfo) GetCount() int64 { - if o == nil { - return 0 - } - return o.Count -} - -func (o *CountInfo) GetPeriod() *Period { - if o == nil { - return nil - } - return o.Period -} - -func (o *CountInfo) GetOrg() *string { - if o == nil { - return nil - } - return o.Org -} diff --git a/tests/mockserver/internal/sdk/models/components/createannouncementrequest.go b/tests/mockserver/internal/sdk/models/components/createannouncementrequest.go deleted file mode 100644 index 9a67d030..00000000 --- a/tests/mockserver/internal/sdk/models/components/createannouncementrequest.go +++ /dev/null @@ -1,201 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -// CreateAnnouncementRequestChannel - This determines whether this is a Social Feed post or a regular announcement. -type CreateAnnouncementRequestChannel string - -const ( - CreateAnnouncementRequestChannelMain CreateAnnouncementRequestChannel = "MAIN" - CreateAnnouncementRequestChannelSocialFeed CreateAnnouncementRequestChannel = "SOCIAL_FEED" -) - -func (e CreateAnnouncementRequestChannel) ToPointer() *CreateAnnouncementRequestChannel { - return &e -} -func (e *CreateAnnouncementRequestChannel) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "MAIN": - fallthrough - case "SOCIAL_FEED": - *e = CreateAnnouncementRequestChannel(v) - return nil - default: - return fmt.Errorf("invalid value for CreateAnnouncementRequestChannel: %v", v) - } -} - -// CreateAnnouncementRequestPostType - This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. -type CreateAnnouncementRequestPostType string - -const ( - CreateAnnouncementRequestPostTypeText CreateAnnouncementRequestPostType = "TEXT" - CreateAnnouncementRequestPostTypeLink CreateAnnouncementRequestPostType = "LINK" -) - -func (e CreateAnnouncementRequestPostType) ToPointer() *CreateAnnouncementRequestPostType { - return &e -} -func (e *CreateAnnouncementRequestPostType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "TEXT": - fallthrough - case "LINK": - *e = CreateAnnouncementRequestPostType(v) - return nil - default: - return fmt.Errorf("invalid value for CreateAnnouncementRequestPostType: %v", v) - } -} - -type CreateAnnouncementRequest struct { - // The date and time at which the announcement becomes active. - StartTime time.Time `json:"startTime"` - // The date and time at which the announcement expires. - EndTime time.Time `json:"endTime"` - // The headline of the announcement. - Title string `json:"title"` - Body *StructuredText `json:"body,omitempty"` - // An emoji used to indicate the nature of the announcement. - Emoji *string `json:"emoji,omitempty"` - Thumbnail *Thumbnail `json:"thumbnail,omitempty"` - Banner *Thumbnail `json:"banner,omitempty"` - // Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // The Glean Document ID of the source document this Announcement was created from (e.g. Slack thread). - SourceDocumentID *string `json:"sourceDocumentId,omitempty"` - // Whether or not to hide an author attribution. - HideAttribution *bool `json:"hideAttribution,omitempty"` - // This determines whether this is a Social Feed post or a regular announcement. - Channel *CreateAnnouncementRequestChannel `json:"channel,omitempty"` - // This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. - PostType *CreateAnnouncementRequestPostType `json:"postType,omitempty"` - // Used by the Social Feed to pin posts to the front of the feed. - IsPrioritized *bool `json:"isPrioritized,omitempty"` - // URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". - ViewURL *string `json:"viewUrl,omitempty"` -} - -func (c CreateAnnouncementRequest) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CreateAnnouncementRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"startTime", "endTime", "title"}); err != nil { - return err - } - return nil -} - -func (o *CreateAnnouncementRequest) GetStartTime() time.Time { - if o == nil { - return time.Time{} - } - return o.StartTime -} - -func (o *CreateAnnouncementRequest) GetEndTime() time.Time { - if o == nil { - return time.Time{} - } - return o.EndTime -} - -func (o *CreateAnnouncementRequest) GetTitle() string { - if o == nil { - return "" - } - return o.Title -} - -func (o *CreateAnnouncementRequest) GetBody() *StructuredText { - if o == nil { - return nil - } - return o.Body -} - -func (o *CreateAnnouncementRequest) GetEmoji() *string { - if o == nil { - return nil - } - return o.Emoji -} - -func (o *CreateAnnouncementRequest) GetThumbnail() *Thumbnail { - if o == nil { - return nil - } - return o.Thumbnail -} - -func (o *CreateAnnouncementRequest) GetBanner() *Thumbnail { - if o == nil { - return nil - } - return o.Banner -} - -func (o *CreateAnnouncementRequest) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *CreateAnnouncementRequest) GetSourceDocumentID() *string { - if o == nil { - return nil - } - return o.SourceDocumentID -} - -func (o *CreateAnnouncementRequest) GetHideAttribution() *bool { - if o == nil { - return nil - } - return o.HideAttribution -} - -func (o *CreateAnnouncementRequest) GetChannel() *CreateAnnouncementRequestChannel { - if o == nil { - return nil - } - return o.Channel -} - -func (o *CreateAnnouncementRequest) GetPostType() *CreateAnnouncementRequestPostType { - if o == nil { - return nil - } - return o.PostType -} - -func (o *CreateAnnouncementRequest) GetIsPrioritized() *bool { - if o == nil { - return nil - } - return o.IsPrioritized -} - -func (o *CreateAnnouncementRequest) GetViewURL() *string { - if o == nil { - return nil - } - return o.ViewURL -} diff --git a/tests/mockserver/internal/sdk/models/components/createanswerrequest.go b/tests/mockserver/internal/sdk/models/components/createanswerrequest.go deleted file mode 100644 index e15c5837..00000000 --- a/tests/mockserver/internal/sdk/models/components/createanswerrequest.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type CreateAnswerRequest struct { - Data AnswerCreationData `json:"data"` -} - -func (o *CreateAnswerRequest) GetData() AnswerCreationData { - if o == nil { - return AnswerCreationData{} - } - return o.Data -} diff --git a/tests/mockserver/internal/sdk/models/components/createauthtokenresponse.go b/tests/mockserver/internal/sdk/models/components/createauthtokenresponse.go deleted file mode 100644 index eaf8d515..00000000 --- a/tests/mockserver/internal/sdk/models/components/createauthtokenresponse.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type CreateAuthTokenResponse struct { - // An authentication token that can be passed to any endpoint via Bearer Authentication - Token string `json:"token"` - // Unix timestamp for when this token expires (in seconds since epoch UTC). - ExpirationTime int64 `json:"expirationTime"` -} - -func (o *CreateAuthTokenResponse) GetToken() string { - if o == nil { - return "" - } - return o.Token -} - -func (o *CreateAuthTokenResponse) GetExpirationTime() int64 { - if o == nil { - return 0 - } - return o.ExpirationTime -} diff --git a/tests/mockserver/internal/sdk/models/components/createcollectionrequest.go b/tests/mockserver/internal/sdk/models/components/createcollectionrequest.go deleted file mode 100644 index 0c58401f..00000000 --- a/tests/mockserver/internal/sdk/models/components/createcollectionrequest.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type CreateCollectionRequest struct { - // The unique name of the Collection. - Name string `json:"name"` - // A brief summary of the Collection's contents. - Description *string `json:"description,omitempty"` - // A list of added user roles for the Collection. - AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"` - // A list of removed user roles for the Collection. - RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"` - // Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // The emoji icon of this Collection. - Icon *string `json:"icon,omitempty"` - // Indicates whether edits are allowed for everyone or only admins. - AdminLocked *bool `json:"adminLocked,omitempty"` - // The parent of this Collection, or 0 if it's a top-level Collection. - ParentID *int64 `json:"parentId,omitempty"` - Thumbnail *Thumbnail `json:"thumbnail,omitempty"` - // The datasource type this Collection can hold. - AllowedDatasource *string `json:"allowedDatasource,omitempty"` - // The (optional) ItemId of the next CollectionItem in sequence. If omitted, will be added to the end of the Collection. Only used if parentId is specified. - NewNextItemID *string `json:"newNextItemId,omitempty"` -} - -func (o *CreateCollectionRequest) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *CreateCollectionRequest) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *CreateCollectionRequest) GetAddedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.AddedRoles -} - -func (o *CreateCollectionRequest) GetRemovedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.RemovedRoles -} - -func (o *CreateCollectionRequest) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *CreateCollectionRequest) GetIcon() *string { - if o == nil { - return nil - } - return o.Icon -} - -func (o *CreateCollectionRequest) GetAdminLocked() *bool { - if o == nil { - return nil - } - return o.AdminLocked -} - -func (o *CreateCollectionRequest) GetParentID() *int64 { - if o == nil { - return nil - } - return o.ParentID -} - -func (o *CreateCollectionRequest) GetThumbnail() *Thumbnail { - if o == nil { - return nil - } - return o.Thumbnail -} - -func (o *CreateCollectionRequest) GetAllowedDatasource() *string { - if o == nil { - return nil - } - return o.AllowedDatasource -} - -func (o *CreateCollectionRequest) GetNewNextItemID() *string { - if o == nil { - return nil - } - return o.NewNextItemID -} diff --git a/tests/mockserver/internal/sdk/models/components/createdlpreportrequest.go b/tests/mockserver/internal/sdk/models/components/createdlpreportrequest.go deleted file mode 100644 index 099d075e..00000000 --- a/tests/mockserver/internal/sdk/models/components/createdlpreportrequest.go +++ /dev/null @@ -1,42 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type CreateDlpReportRequest struct { - // Name of the policy being created. - Name *string `json:"name,omitempty"` - // Detailed configuration of what documents and sensitive content will be scanned. - Config *DlpConfig `json:"config,omitempty"` - // Interval between scans. DAILY is deprecated. - Frequency *DlpFrequency `json:"frequency,omitempty"` - // Controls whether the policy should hide documents with violations. - AutoHideDocs *bool `json:"autoHideDocs,omitempty"` -} - -func (o *CreateDlpReportRequest) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *CreateDlpReportRequest) GetConfig() *DlpConfig { - if o == nil { - return nil - } - return o.Config -} - -func (o *CreateDlpReportRequest) GetFrequency() *DlpFrequency { - if o == nil { - return nil - } - return o.Frequency -} - -func (o *CreateDlpReportRequest) GetAutoHideDocs() *bool { - if o == nil { - return nil - } - return o.AutoHideDocs -} diff --git a/tests/mockserver/internal/sdk/models/components/createdlpreportresponse.go b/tests/mockserver/internal/sdk/models/components/createdlpreportresponse.go deleted file mode 100644 index 9c9030bd..00000000 --- a/tests/mockserver/internal/sdk/models/components/createdlpreportresponse.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type CreateDlpReportResponse struct { - // Full policy information that will be used for scans. - Report *DlpReport `json:"report,omitempty"` -} - -func (o *CreateDlpReportResponse) GetReport() *DlpReport { - if o == nil { - return nil - } - return o.Report -} diff --git a/tests/mockserver/internal/sdk/models/components/createshortcutrequest.go b/tests/mockserver/internal/sdk/models/components/createshortcutrequest.go deleted file mode 100644 index f2502a18..00000000 --- a/tests/mockserver/internal/sdk/models/components/createshortcutrequest.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type CreateShortcutRequest struct { - Data ShortcutMutableProperties `json:"data"` -} - -func (o *CreateShortcutRequest) GetData() ShortcutMutableProperties { - if o == nil { - return ShortcutMutableProperties{} - } - return o.Data -} diff --git a/tests/mockserver/internal/sdk/models/components/createshortcutresponse.go b/tests/mockserver/internal/sdk/models/components/createshortcutresponse.go deleted file mode 100644 index df363e8a..00000000 --- a/tests/mockserver/internal/sdk/models/components/createshortcutresponse.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type CreateShortcutResponse struct { - Shortcut *Shortcut `json:"shortcut,omitempty"` - Error *ShortcutError `json:"error,omitempty"` -} - -func (o *CreateShortcutResponse) GetShortcut() *Shortcut { - if o == nil { - return nil - } - return o.Shortcut -} - -func (o *CreateShortcutResponse) GetError() *ShortcutError { - if o == nil { - return nil - } - return o.Error -} diff --git a/tests/mockserver/internal/sdk/models/components/customdatasourceconfig.go b/tests/mockserver/internal/sdk/models/components/customdatasourceconfig.go deleted file mode 100644 index 74d5523a..00000000 --- a/tests/mockserver/internal/sdk/models/components/customdatasourceconfig.go +++ /dev/null @@ -1,418 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -// DatasourceCategory - The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED. Please refer to [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. -type DatasourceCategory string - -const ( - DatasourceCategoryUncategorized DatasourceCategory = "UNCATEGORIZED" - DatasourceCategoryTickets DatasourceCategory = "TICKETS" - DatasourceCategoryCrm DatasourceCategory = "CRM" - DatasourceCategoryPublishedContent DatasourceCategory = "PUBLISHED_CONTENT" - DatasourceCategoryCollaborativeContent DatasourceCategory = "COLLABORATIVE_CONTENT" - DatasourceCategoryQuestionAnswer DatasourceCategory = "QUESTION_ANSWER" - DatasourceCategoryMessaging DatasourceCategory = "MESSAGING" - DatasourceCategoryCodeRepository DatasourceCategory = "CODE_REPOSITORY" - DatasourceCategoryChangeManagement DatasourceCategory = "CHANGE_MANAGEMENT" - DatasourceCategoryPeople DatasourceCategory = "PEOPLE" - DatasourceCategoryEmail DatasourceCategory = "EMAIL" - DatasourceCategorySso DatasourceCategory = "SSO" - DatasourceCategoryAts DatasourceCategory = "ATS" - DatasourceCategoryKnowledgeHub DatasourceCategory = "KNOWLEDGE_HUB" - DatasourceCategoryExternalShortcut DatasourceCategory = "EXTERNAL_SHORTCUT" - DatasourceCategoryEntity DatasourceCategory = "ENTITY" - DatasourceCategoryCalendar DatasourceCategory = "CALENDAR" - DatasourceCategoryAgents DatasourceCategory = "AGENTS" -) - -func (e DatasourceCategory) ToPointer() *DatasourceCategory { - return &e -} -func (e *DatasourceCategory) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "UNCATEGORIZED": - fallthrough - case "TICKETS": - fallthrough - case "CRM": - fallthrough - case "PUBLISHED_CONTENT": - fallthrough - case "COLLABORATIVE_CONTENT": - fallthrough - case "QUESTION_ANSWER": - fallthrough - case "MESSAGING": - fallthrough - case "CODE_REPOSITORY": - fallthrough - case "CHANGE_MANAGEMENT": - fallthrough - case "PEOPLE": - fallthrough - case "EMAIL": - fallthrough - case "SSO": - fallthrough - case "ATS": - fallthrough - case "KNOWLEDGE_HUB": - fallthrough - case "EXTERNAL_SHORTCUT": - fallthrough - case "ENTITY": - fallthrough - case "CALENDAR": - fallthrough - case "AGENTS": - *e = DatasourceCategory(v) - return nil - default: - return fmt.Errorf("invalid value for DatasourceCategory: %v", v) - } -} - -type HideBuiltInFacet string - -const ( - HideBuiltInFacetType HideBuiltInFacet = "TYPE" - HideBuiltInFacetTag HideBuiltInFacet = "TAG" - HideBuiltInFacetAuthor HideBuiltInFacet = "AUTHOR" - HideBuiltInFacetOwner HideBuiltInFacet = "OWNER" -) - -func (e HideBuiltInFacet) ToPointer() *HideBuiltInFacet { - return &e -} -func (e *HideBuiltInFacet) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "TYPE": - fallthrough - case "TAG": - fallthrough - case "AUTHOR": - fallthrough - case "OWNER": - *e = HideBuiltInFacet(v) - return nil - default: - return fmt.Errorf("invalid value for HideBuiltInFacet: %v", v) - } -} - -// CustomDatasourceConfigConnectorType - The source from which document content was pulled, e.g. an API crawl or browser history -type CustomDatasourceConfigConnectorType string - -const ( - CustomDatasourceConfigConnectorTypeAPICrawl CustomDatasourceConfigConnectorType = "API_CRAWL" - CustomDatasourceConfigConnectorTypeBrowserCrawl CustomDatasourceConfigConnectorType = "BROWSER_CRAWL" - CustomDatasourceConfigConnectorTypeBrowserHistory CustomDatasourceConfigConnectorType = "BROWSER_HISTORY" - CustomDatasourceConfigConnectorTypeBuiltin CustomDatasourceConfigConnectorType = "BUILTIN" - CustomDatasourceConfigConnectorTypeFederatedSearch CustomDatasourceConfigConnectorType = "FEDERATED_SEARCH" - CustomDatasourceConfigConnectorTypePushAPI CustomDatasourceConfigConnectorType = "PUSH_API" - CustomDatasourceConfigConnectorTypeWebCrawl CustomDatasourceConfigConnectorType = "WEB_CRAWL" - CustomDatasourceConfigConnectorTypeNativeHistory CustomDatasourceConfigConnectorType = "NATIVE_HISTORY" -) - -func (e CustomDatasourceConfigConnectorType) ToPointer() *CustomDatasourceConfigConnectorType { - return &e -} -func (e *CustomDatasourceConfigConnectorType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "API_CRAWL": - fallthrough - case "BROWSER_CRAWL": - fallthrough - case "BROWSER_HISTORY": - fallthrough - case "BUILTIN": - fallthrough - case "FEDERATED_SEARCH": - fallthrough - case "PUSH_API": - fallthrough - case "WEB_CRAWL": - fallthrough - case "NATIVE_HISTORY": - *e = CustomDatasourceConfigConnectorType(v) - return nil - default: - return fmt.Errorf("invalid value for CustomDatasourceConfigConnectorType: %v", v) - } -} - -// CustomDatasourceConfig - Structure describing config properties of a custom datasource -type CustomDatasourceConfig struct { - // Unique identifier of datasource instance to which this config applies. - Name string `json:"name"` - // The user-friendly instance label to display. If omitted, falls back to the title-cased `name`. - DisplayName *string `json:"displayName,omitempty"` - // The type of this datasource. It is an important signal for relevance and must be specified and cannot be UNCATEGORIZED. Please refer to [this](https://developers.glean.com/docs/indexing_api_datasource_category/) for more details. - DatasourceCategory *DatasourceCategory `default:"UNCATEGORIZED" json:"datasourceCategory"` - // Regular expression that matches URLs of documents of the datasource instance. The behavior for multiple matches is non-deterministic. **Note: `urlRegex` is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false). Please add a regex as specific as possible to this datasource instance.** - URLRegex *string `json:"urlRegex,omitempty"` - // The URL to an image to be displayed as an icon for this datasource instance. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). - IconURL *string `json:"iconUrl,omitempty"` - // The list of top-level `objectType`s for the datasource. - ObjectDefinitions []ObjectDefinition `json:"objectDefinitions,omitempty"` - // Example text for what to search for in this datasource - SuggestionText *string `json:"suggestionText,omitempty"` - // The URL of the landing page for this datasource instance. Should point to the most useful page for users, not the company marketing page. - HomeURL *string `json:"homeUrl,omitempty"` - // This only applies to WEB_CRAWL and BROWSER_CRAWL datasources. Defines the seed URLs for crawling. - CrawlerSeedUrls []string `json:"crawlerSeedUrls,omitempty"` - // The URL to an image to be displayed as an icon for this datasource instance in dark mode. Must have a transparency mask. SVG are recommended over PNG. Public, scio-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). - IconDarkURL *string `json:"iconDarkUrl,omitempty"` - // List of built-in facet types that should be hidden for the datasource. - HideBuiltInFacets []HideBuiltInFacet `json:"hideBuiltInFacets,omitempty"` - // A list of regular expressions to apply to an arbitrary URL to transform it into a canonical URL for this datasource instance. Regexes are to be applied in the order specified in this list. - CanonicalizingURLRegex []CanonicalizingRegexType `json:"canonicalizingURLRegex,omitempty"` - // A list of regular expressions to apply to an arbitrary title to transform it into a title that will be displayed in the search results - CanonicalizingTitleRegex []CanonicalizingRegexType `json:"canonicalizingTitleRegex,omitempty"` - // A regex that identifies titles that should not be indexed - RedlistTitleRegex *string `json:"redlistTitleRegex,omitempty"` - ConnectorType *CustomDatasourceConfigConnectorType `json:"connectorType,omitempty"` - // List of actions for this datasource instance that will show up in autocomplete and app card, e.g. "Create new issue" for jira - Quicklinks []Quicklink `json:"quicklinks,omitempty"` - // The name of a render config to use for displaying results from this datasource. Any well known datasource name may be used to render the same as that source, e.g. `web` or `gdrive`. Please refer to [this](https://developers.glean.com/docs/rendering_search_results/) for more details - RenderConfigPreset *string `json:"renderConfigPreset,omitempty"` - // Aliases that can be used as `app` operator-values. - Aliases []string `json:"aliases,omitempty"` - // Whether or not this datasource is hosted on-premise. - IsOnPrem *bool `json:"isOnPrem,omitempty"` - // True if browser activity is able to report the correct URL for VIEW events. Set this to true if the URLs reported by Chrome are constant throughout each page load. Set this to false if the page has Javascript that modifies the URL during or after the load. - TrustURLRegexForViewActivity *bool `default:"true" json:"trustUrlRegexForViewActivity"` - // If true, a utm_source query param will be added to outbound links to this datasource within Glean. - IncludeUtmSource *bool `json:"includeUtmSource,omitempty"` - // If true, the fragment part of the URL will be stripped when converting to a canonical url. - StripFragmentInCanonicalURL *bool `default:"true" json:"stripFragmentInCanonicalUrl"` - // If the datasource uses another datasource for identity info, then the name of the datasource. The identity datasource must exist already. - IdentityDatasourceName *string `json:"identityDatasourceName,omitempty"` - // If the datasource uses a specific product access group, then the name of that group. - ProductAccessGroup *string `json:"productAccessGroup,omitempty"` - // whether email is used to reference users in document ACLs and in group memberships. - IsUserReferencedByEmail *bool `json:"isUserReferencedByEmail,omitempty"` - // True if this datasource is used to push custom entities. - IsEntityDatasource *bool `default:"false" json:"isEntityDatasource"` - // True if this datasource will be used for testing purpose only. Documents from such a datasource wouldn't have any effect on search rankings. - IsTestDatasource *bool `default:"false" json:"isTestDatasource"` -} - -func (c CustomDatasourceConfig) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CustomDatasourceConfig) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"name"}); err != nil { - return err - } - return nil -} - -func (o *CustomDatasourceConfig) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *CustomDatasourceConfig) GetDisplayName() *string { - if o == nil { - return nil - } - return o.DisplayName -} - -func (o *CustomDatasourceConfig) GetDatasourceCategory() *DatasourceCategory { - if o == nil { - return nil - } - return o.DatasourceCategory -} - -func (o *CustomDatasourceConfig) GetURLRegex() *string { - if o == nil { - return nil - } - return o.URLRegex -} - -func (o *CustomDatasourceConfig) GetIconURL() *string { - if o == nil { - return nil - } - return o.IconURL -} - -func (o *CustomDatasourceConfig) GetObjectDefinitions() []ObjectDefinition { - if o == nil { - return nil - } - return o.ObjectDefinitions -} - -func (o *CustomDatasourceConfig) GetSuggestionText() *string { - if o == nil { - return nil - } - return o.SuggestionText -} - -func (o *CustomDatasourceConfig) GetHomeURL() *string { - if o == nil { - return nil - } - return o.HomeURL -} - -func (o *CustomDatasourceConfig) GetCrawlerSeedUrls() []string { - if o == nil { - return nil - } - return o.CrawlerSeedUrls -} - -func (o *CustomDatasourceConfig) GetIconDarkURL() *string { - if o == nil { - return nil - } - return o.IconDarkURL -} - -func (o *CustomDatasourceConfig) GetHideBuiltInFacets() []HideBuiltInFacet { - if o == nil { - return nil - } - return o.HideBuiltInFacets -} - -func (o *CustomDatasourceConfig) GetCanonicalizingURLRegex() []CanonicalizingRegexType { - if o == nil { - return nil - } - return o.CanonicalizingURLRegex -} - -func (o *CustomDatasourceConfig) GetCanonicalizingTitleRegex() []CanonicalizingRegexType { - if o == nil { - return nil - } - return o.CanonicalizingTitleRegex -} - -func (o *CustomDatasourceConfig) GetRedlistTitleRegex() *string { - if o == nil { - return nil - } - return o.RedlistTitleRegex -} - -func (o *CustomDatasourceConfig) GetConnectorType() *CustomDatasourceConfigConnectorType { - if o == nil { - return nil - } - return o.ConnectorType -} - -func (o *CustomDatasourceConfig) GetQuicklinks() []Quicklink { - if o == nil { - return nil - } - return o.Quicklinks -} - -func (o *CustomDatasourceConfig) GetRenderConfigPreset() *string { - if o == nil { - return nil - } - return o.RenderConfigPreset -} - -func (o *CustomDatasourceConfig) GetAliases() []string { - if o == nil { - return nil - } - return o.Aliases -} - -func (o *CustomDatasourceConfig) GetIsOnPrem() *bool { - if o == nil { - return nil - } - return o.IsOnPrem -} - -func (o *CustomDatasourceConfig) GetTrustURLRegexForViewActivity() *bool { - if o == nil { - return nil - } - return o.TrustURLRegexForViewActivity -} - -func (o *CustomDatasourceConfig) GetIncludeUtmSource() *bool { - if o == nil { - return nil - } - return o.IncludeUtmSource -} - -func (o *CustomDatasourceConfig) GetStripFragmentInCanonicalURL() *bool { - if o == nil { - return nil - } - return o.StripFragmentInCanonicalURL -} - -func (o *CustomDatasourceConfig) GetIdentityDatasourceName() *string { - if o == nil { - return nil - } - return o.IdentityDatasourceName -} - -func (o *CustomDatasourceConfig) GetProductAccessGroup() *string { - if o == nil { - return nil - } - return o.ProductAccessGroup -} - -func (o *CustomDatasourceConfig) GetIsUserReferencedByEmail() *bool { - if o == nil { - return nil - } - return o.IsUserReferencedByEmail -} - -func (o *CustomDatasourceConfig) GetIsEntityDatasource() *bool { - if o == nil { - return nil - } - return o.IsEntityDatasource -} - -func (o *CustomDatasourceConfig) GetIsTestDatasource() *bool { - if o == nil { - return nil - } - return o.IsTestDatasource -} diff --git a/tests/mockserver/internal/sdk/models/components/customdatavalue.go b/tests/mockserver/internal/sdk/models/components/customdatavalue.go deleted file mode 100644 index a039a04f..00000000 --- a/tests/mockserver/internal/sdk/models/components/customdatavalue.go +++ /dev/null @@ -1,62 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CustomDataValue struct { - DisplayLabel *string `json:"displayLabel,omitempty"` - StringValue *string `json:"stringValue,omitempty"` - // list of strings for multi-value properties - StringListValue []string `json:"stringListValue,omitempty"` - NumberValue *float64 `json:"numberValue,omitempty"` - BooleanValue *bool `json:"booleanValue,omitempty"` -} - -func (c CustomDataValue) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CustomDataValue) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *CustomDataValue) GetDisplayLabel() *string { - if o == nil { - return nil - } - return o.DisplayLabel -} - -func (o *CustomDataValue) GetStringValue() *string { - if o == nil { - return nil - } - return o.StringValue -} - -func (o *CustomDataValue) GetStringListValue() []string { - if o == nil { - return nil - } - return o.StringListValue -} - -func (o *CustomDataValue) GetNumberValue() *float64 { - if o == nil { - return nil - } - return o.NumberValue -} - -func (o *CustomDataValue) GetBooleanValue() *bool { - if o == nil { - return nil - } - return o.BooleanValue -} diff --git a/tests/mockserver/internal/sdk/models/components/customentity.go b/tests/mockserver/internal/sdk/models/components/customentity.go deleted file mode 100644 index d0095449..00000000 --- a/tests/mockserver/internal/sdk/models/components/customentity.go +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CustomEntity struct { - Permissions *ObjectPermissions `json:"permissions,omitempty"` - // Unique identifier. - ID *string `json:"id,omitempty"` - // Title or name of the custom entity. - Title *string `json:"title,omitempty"` - // The datasource the custom entity is from. - Datasource *string `json:"datasource,omitempty"` - // The type of the entity. Interpretation is specific to each datasource - ObjectType *string `json:"objectType,omitempty"` - Metadata *CustomEntityMetadata `json:"metadata,omitempty"` - // A list of user roles for the custom entity explicitly granted by the owner. - Roles []UserRoleSpecification `json:"roles,omitempty"` -} - -func (c CustomEntity) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CustomEntity) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *CustomEntity) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *CustomEntity) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *CustomEntity) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *CustomEntity) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *CustomEntity) GetObjectType() *string { - if o == nil { - return nil - } - return o.ObjectType -} - -func (o *CustomEntity) GetMetadata() *CustomEntityMetadata { - if o == nil { - return nil - } - return o.Metadata -} - -func (o *CustomEntity) GetRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.Roles -} diff --git a/tests/mockserver/internal/sdk/models/components/customentitymetadata.go b/tests/mockserver/internal/sdk/models/components/customentitymetadata.go deleted file mode 100644 index 53b7e48f..00000000 --- a/tests/mockserver/internal/sdk/models/components/customentitymetadata.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CustomEntityMetadata struct { - // Custom fields specific to individual datasources - CustomData map[string]CustomDataValue `json:"customData,omitempty"` -} - -func (c CustomEntityMetadata) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CustomEntityMetadata) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *CustomEntityMetadata) GetCustomData() map[string]CustomDataValue { - if o == nil { - return nil - } - return o.CustomData -} diff --git a/tests/mockserver/internal/sdk/models/components/customer.go b/tests/mockserver/internal/sdk/models/components/customer.go deleted file mode 100644 index ddea90ef..00000000 --- a/tests/mockserver/internal/sdk/models/components/customer.go +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" -) - -type Customer struct { - // Unique identifier. - ID string `json:"id"` - // Link to company's associated website domains. - Domains []string `json:"domains,omitempty"` - Company Company `json:"company"` - // A map of {string, int} pairs representing counts of each document type associated with this customer. - DocumentCounts map[string]int64 `json:"documentCounts,omitempty"` - // A list of POC for company. - Poc []Person `json:"poc,omitempty"` - Metadata *CustomerMetadata `json:"metadata,omitempty"` - // A list of Customers. - MergedCustomers []Customer `json:"mergedCustomers,omitempty"` - // The date when the interaction with customer started. - StartDate *types.Date `json:"startDate,omitempty"` - // Average contract annual revenue with that customer. - ContractAnnualRevenue *float64 `json:"contractAnnualRevenue,omitempty"` - // User facing (potentially generated) notes about company. - Notes *string `json:"notes,omitempty"` -} - -func (c Customer) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *Customer) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"id", "company"}); err != nil { - return err - } - return nil -} - -func (o *Customer) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -func (o *Customer) GetDomains() []string { - if o == nil { - return nil - } - return o.Domains -} - -func (o *Customer) GetCompany() Company { - if o == nil { - return Company{} - } - return o.Company -} - -func (o *Customer) GetDocumentCounts() map[string]int64 { - if o == nil { - return nil - } - return o.DocumentCounts -} - -func (o *Customer) GetPoc() []Person { - if o == nil { - return nil - } - return o.Poc -} - -func (o *Customer) GetMetadata() *CustomerMetadata { - if o == nil { - return nil - } - return o.Metadata -} - -func (o *Customer) GetMergedCustomers() []Customer { - if o == nil { - return nil - } - return o.MergedCustomers -} - -func (o *Customer) GetStartDate() *types.Date { - if o == nil { - return nil - } - return o.StartDate -} - -func (o *Customer) GetContractAnnualRevenue() *float64 { - if o == nil { - return nil - } - return o.ContractAnnualRevenue -} - -func (o *Customer) GetNotes() *string { - if o == nil { - return nil - } - return o.Notes -} diff --git a/tests/mockserver/internal/sdk/models/components/customermetadata.go b/tests/mockserver/internal/sdk/models/components/customermetadata.go deleted file mode 100644 index 3171f859..00000000 --- a/tests/mockserver/internal/sdk/models/components/customermetadata.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CustomerMetadata struct { - // The user visible id of the salesforce customer account. - DatasourceID *string `json:"datasourceId,omitempty"` - // Custom fields specific to individual datasources - CustomData map[string]CustomDataValue `json:"customData,omitempty"` -} - -func (c CustomerMetadata) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CustomerMetadata) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *CustomerMetadata) GetDatasourceID() *string { - if o == nil { - return nil - } - return o.DatasourceID -} - -func (o *CustomerMetadata) GetCustomData() map[string]CustomDataValue { - if o == nil { - return nil - } - return o.CustomData -} diff --git a/tests/mockserver/internal/sdk/models/components/customfielddata.go b/tests/mockserver/internal/sdk/models/components/customfielddata.go deleted file mode 100644 index af92ce30..00000000 --- a/tests/mockserver/internal/sdk/models/components/customfielddata.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CustomFieldData struct { - // A user-facing label for this field. - Label string `json:"label"` - Values []CustomFieldValue `json:"values"` - // Determines whether the client should display this custom field - Displayable *bool `default:"true" json:"displayable"` -} - -func (c CustomFieldData) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CustomFieldData) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, []string{"label", "values"}); err != nil { - return err - } - return nil -} - -func (o *CustomFieldData) GetLabel() string { - if o == nil { - return "" - } - return o.Label -} - -func (o *CustomFieldData) GetValues() []CustomFieldValue { - if o == nil { - return []CustomFieldValue{} - } - return o.Values -} - -func (o *CustomFieldData) GetDisplayable() *bool { - if o == nil { - return nil - } - return o.Displayable -} diff --git a/tests/mockserver/internal/sdk/models/components/customfieldvalue.go b/tests/mockserver/internal/sdk/models/components/customfieldvalue.go deleted file mode 100644 index cd251018..00000000 --- a/tests/mockserver/internal/sdk/models/components/customfieldvalue.go +++ /dev/null @@ -1,94 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "errors" - "fmt" - "mockserver/internal/sdk/utils" -) - -type CustomFieldValueType string - -const ( - CustomFieldValueTypeCustomFieldValueStr CustomFieldValueType = "CustomFieldValueStr" - CustomFieldValueTypeCustomFieldValueHyperlink CustomFieldValueType = "CustomFieldValueHyperlink" - CustomFieldValueTypeCustomFieldValuePerson CustomFieldValueType = "CustomFieldValuePerson" -) - -type CustomFieldValue struct { - CustomFieldValueStr *CustomFieldValueStr `queryParam:"inline"` - CustomFieldValueHyperlink *CustomFieldValueHyperlink `queryParam:"inline"` - CustomFieldValuePerson *CustomFieldValuePerson `queryParam:"inline"` - - Type CustomFieldValueType -} - -func CreateCustomFieldValueCustomFieldValueStr(customFieldValueStr CustomFieldValueStr) CustomFieldValue { - typ := CustomFieldValueTypeCustomFieldValueStr - - return CustomFieldValue{ - CustomFieldValueStr: &customFieldValueStr, - Type: typ, - } -} - -func CreateCustomFieldValueCustomFieldValueHyperlink(customFieldValueHyperlink CustomFieldValueHyperlink) CustomFieldValue { - typ := CustomFieldValueTypeCustomFieldValueHyperlink - - return CustomFieldValue{ - CustomFieldValueHyperlink: &customFieldValueHyperlink, - Type: typ, - } -} - -func CreateCustomFieldValueCustomFieldValuePerson(customFieldValuePerson CustomFieldValuePerson) CustomFieldValue { - typ := CustomFieldValueTypeCustomFieldValuePerson - - return CustomFieldValue{ - CustomFieldValuePerson: &customFieldValuePerson, - Type: typ, - } -} - -func (u *CustomFieldValue) UnmarshalJSON(data []byte) error { - - var customFieldValueStr CustomFieldValueStr = CustomFieldValueStr{} - if err := utils.UnmarshalJSON(data, &customFieldValueStr, "", true, nil); err == nil { - u.CustomFieldValueStr = &customFieldValueStr - u.Type = CustomFieldValueTypeCustomFieldValueStr - return nil - } - - var customFieldValueHyperlink CustomFieldValueHyperlink = CustomFieldValueHyperlink{} - if err := utils.UnmarshalJSON(data, &customFieldValueHyperlink, "", true, nil); err == nil { - u.CustomFieldValueHyperlink = &customFieldValueHyperlink - u.Type = CustomFieldValueTypeCustomFieldValueHyperlink - return nil - } - - var customFieldValuePerson CustomFieldValuePerson = CustomFieldValuePerson{} - if err := utils.UnmarshalJSON(data, &customFieldValuePerson, "", true, nil); err == nil { - u.CustomFieldValuePerson = &customFieldValuePerson - u.Type = CustomFieldValueTypeCustomFieldValuePerson - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for CustomFieldValue", string(data)) -} - -func (u CustomFieldValue) MarshalJSON() ([]byte, error) { - if u.CustomFieldValueStr != nil { - return utils.MarshalJSON(u.CustomFieldValueStr, "", true) - } - - if u.CustomFieldValueHyperlink != nil { - return utils.MarshalJSON(u.CustomFieldValueHyperlink, "", true) - } - - if u.CustomFieldValuePerson != nil { - return utils.MarshalJSON(u.CustomFieldValuePerson, "", true) - } - - return nil, errors.New("could not marshal union type CustomFieldValue: all fields are null") -} diff --git a/tests/mockserver/internal/sdk/models/components/customfieldvaluehyperlink.go b/tests/mockserver/internal/sdk/models/components/customfieldvaluehyperlink.go deleted file mode 100644 index 4771e963..00000000 --- a/tests/mockserver/internal/sdk/models/components/customfieldvaluehyperlink.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CustomFieldValueHyperlink struct { - // Anchor text for hyperlink. - URLAnchor *string `json:"urlAnchor,omitempty"` - // Link for this URL. - URLLink *string `json:"urlLink,omitempty"` -} - -func (c CustomFieldValueHyperlink) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CustomFieldValueHyperlink) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *CustomFieldValueHyperlink) GetURLAnchor() *string { - if o == nil { - return nil - } - return o.URLAnchor -} - -func (o *CustomFieldValueHyperlink) GetURLLink() *string { - if o == nil { - return nil - } - return o.URLLink -} diff --git a/tests/mockserver/internal/sdk/models/components/customfieldvalueperson.go b/tests/mockserver/internal/sdk/models/components/customfieldvalueperson.go deleted file mode 100644 index c912739a..00000000 --- a/tests/mockserver/internal/sdk/models/components/customfieldvalueperson.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CustomFieldValuePerson struct { - Person *Person `json:"person,omitempty"` -} - -func (c CustomFieldValuePerson) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CustomFieldValuePerson) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *CustomFieldValuePerson) GetPerson() *Person { - if o == nil { - return nil - } - return o.Person -} diff --git a/tests/mockserver/internal/sdk/models/components/customfieldvaluestr.go b/tests/mockserver/internal/sdk/models/components/customfieldvaluestr.go deleted file mode 100644 index e0b1416d..00000000 --- a/tests/mockserver/internal/sdk/models/components/customfieldvaluestr.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type CustomFieldValueStr struct { - // Text field for string value. - StrText *string `json:"strText,omitempty"` -} - -func (c CustomFieldValueStr) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(c, "", false) -} - -func (c *CustomFieldValueStr) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &c, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *CustomFieldValueStr) GetStrText() *string { - if o == nil { - return nil - } - return o.StrText -} diff --git a/tests/mockserver/internal/sdk/models/components/customproperty.go b/tests/mockserver/internal/sdk/models/components/customproperty.go deleted file mode 100644 index 8b4884e4..00000000 --- a/tests/mockserver/internal/sdk/models/components/customproperty.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// CustomProperty - Describes the custom properties of the object. -type CustomProperty struct { - Name *string `json:"name,omitempty"` - // Must either be a string or an array of strings. An integer, boolean, etc. is not valid. When OpenAPI Generator supports `oneOf`, we can semantically enforce this. - Value any `json:"value,omitempty"` -} - -func (o *CustomProperty) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *CustomProperty) GetValue() any { - if o == nil { - return nil - } - return o.Value -} diff --git a/tests/mockserver/internal/sdk/models/components/datasourcebulkmembershipdefinition.go b/tests/mockserver/internal/sdk/models/components/datasourcebulkmembershipdefinition.go deleted file mode 100644 index e7ccc6fd..00000000 --- a/tests/mockserver/internal/sdk/models/components/datasourcebulkmembershipdefinition.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DatasourceBulkMembershipDefinition - describes the membership row of a group in the bulk uploaded. Only one of memberUserId and memberGroupName can be specified. -type DatasourceBulkMembershipDefinition struct { - // If the member is a user, then the email or datasource id for the user - MemberUserID *string `json:"memberUserId,omitempty"` - // If the member is a group, then the name of the member group - MemberGroupName *string `json:"memberGroupName,omitempty"` -} - -func (o *DatasourceBulkMembershipDefinition) GetMemberUserID() *string { - if o == nil { - return nil - } - return o.MemberUserID -} - -func (o *DatasourceBulkMembershipDefinition) GetMemberGroupName() *string { - if o == nil { - return nil - } - return o.MemberGroupName -} diff --git a/tests/mockserver/internal/sdk/models/components/datasourcegroupdefinition.go b/tests/mockserver/internal/sdk/models/components/datasourcegroupdefinition.go deleted file mode 100644 index cb959e6e..00000000 --- a/tests/mockserver/internal/sdk/models/components/datasourcegroupdefinition.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DatasourceGroupDefinition - describes a group in the datasource -type DatasourceGroupDefinition struct { - // name of the group. Should be unique among all groups for the datasource, and cannot have spaces. - Name string `json:"name"` -} - -func (o *DatasourceGroupDefinition) GetName() string { - if o == nil { - return "" - } - return o.Name -} diff --git a/tests/mockserver/internal/sdk/models/components/datasourcemembershipdefinition.go b/tests/mockserver/internal/sdk/models/components/datasourcemembershipdefinition.go deleted file mode 100644 index 9965fe61..00000000 --- a/tests/mockserver/internal/sdk/models/components/datasourcemembershipdefinition.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DatasourceMembershipDefinition - describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. -type DatasourceMembershipDefinition struct { - // The group for which the membership is specified - GroupName string `json:"groupName"` - // If the member is a user, then the email or datasource id for the user - MemberUserID *string `json:"memberUserId,omitempty"` - // If the member is a group, then the name of the member group - MemberGroupName *string `json:"memberGroupName,omitempty"` -} - -func (o *DatasourceMembershipDefinition) GetGroupName() string { - if o == nil { - return "" - } - return o.GroupName -} - -func (o *DatasourceMembershipDefinition) GetMemberUserID() *string { - if o == nil { - return nil - } - return o.MemberUserID -} - -func (o *DatasourceMembershipDefinition) GetMemberGroupName() *string { - if o == nil { - return nil - } - return o.MemberGroupName -} diff --git a/tests/mockserver/internal/sdk/models/components/datasourceobjecttypedocumentcountentry.go b/tests/mockserver/internal/sdk/models/components/datasourceobjecttypedocumentcountentry.go deleted file mode 100644 index 19bdf977..00000000 --- a/tests/mockserver/internal/sdk/models/components/datasourceobjecttypedocumentcountentry.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DatasourceObjectTypeDocumentCountEntry struct { - // The object type of the document - ObjectType *string `json:"objectType,omitempty"` - // The number of documents of the corresponding objectType - Count *int64 `json:"count,omitempty"` -} - -func (o *DatasourceObjectTypeDocumentCountEntry) GetObjectType() *string { - if o == nil { - return nil - } - return o.ObjectType -} - -func (o *DatasourceObjectTypeDocumentCountEntry) GetCount() *int64 { - if o == nil { - return nil - } - return o.Count -} diff --git a/tests/mockserver/internal/sdk/models/components/datasourceprofile.go b/tests/mockserver/internal/sdk/models/components/datasourceprofile.go deleted file mode 100644 index bbc72cbc..00000000 --- a/tests/mockserver/internal/sdk/models/components/datasourceprofile.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type DatasourceProfile struct { - // The datasource the profile is of. - Datasource string `json:"datasource"` - // The display name of the entity in the given datasource. - Handle string `json:"handle"` - // URL to view the entity's profile. - URL *string `json:"url,omitempty"` - // A deep link, if available, into the datasource's native application for the entity's platform (i.e. slack://...). - NativeAppURL *string `json:"nativeAppUrl,omitempty"` - // For internal use only. True iff the data source profile was manually added by a user from within Glean (aka not from the original data source) - IsUserGenerated *bool `json:"isUserGenerated,omitempty"` -} - -func (d DatasourceProfile) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DatasourceProfile) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, []string{"datasource", "handle"}); err != nil { - return err - } - return nil -} - -func (o *DatasourceProfile) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *DatasourceProfile) GetHandle() string { - if o == nil { - return "" - } - return o.Handle -} - -func (o *DatasourceProfile) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *DatasourceProfile) GetNativeAppURL() *string { - if o == nil { - return nil - } - return o.NativeAppURL -} - -func (o *DatasourceProfile) GetIsUserGenerated() *bool { - if o == nil { - return nil - } - return o.IsUserGenerated -} diff --git a/tests/mockserver/internal/sdk/models/components/datasourceuserdefinition.go b/tests/mockserver/internal/sdk/models/components/datasourceuserdefinition.go deleted file mode 100644 index d1431db7..00000000 --- a/tests/mockserver/internal/sdk/models/components/datasourceuserdefinition.go +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DatasourceUserDefinition - describes a user in the datasource -type DatasourceUserDefinition struct { - Email string `json:"email"` - // To be supplied if the user id in the datasource is not the email - UserID *string `json:"userId,omitempty"` - Name string `json:"name"` - // set to false if the user is a former employee or a bot - IsActive *bool `json:"isActive,omitempty"` -} - -func (o *DatasourceUserDefinition) GetEmail() string { - if o == nil { - return "" - } - return o.Email -} - -func (o *DatasourceUserDefinition) GetUserID() *string { - if o == nil { - return nil - } - return o.UserID -} - -func (o *DatasourceUserDefinition) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *DatasourceUserDefinition) GetIsActive() *bool { - if o == nil { - return nil - } - return o.IsActive -} diff --git a/tests/mockserver/internal/sdk/models/components/debugdatasourcestatusidentityresponsecomponent.go b/tests/mockserver/internal/sdk/models/components/debugdatasourcestatusidentityresponsecomponent.go deleted file mode 100644 index 1eeda8b6..00000000 --- a/tests/mockserver/internal/sdk/models/components/debugdatasourcestatusidentityresponsecomponent.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DebugDatasourceStatusIdentityResponseComponentCounts struct { - // The number of users/groups/memberships uploaded - Uploaded *int64 `json:"uploaded,omitempty"` -} - -func (o *DebugDatasourceStatusIdentityResponseComponentCounts) GetUploaded() *int64 { - if o == nil { - return nil - } - return o.Uploaded -} - -type DebugDatasourceStatusIdentityResponseComponent struct { - // Information about active and recent successful uploads for the datasource - BulkUploadHistory []BulkUploadHistoryEvent `json:"bulkUploadHistory,omitempty"` - Counts *DebugDatasourceStatusIdentityResponseComponentCounts `json:"counts,omitempty"` -} - -func (o *DebugDatasourceStatusIdentityResponseComponent) GetBulkUploadHistory() []BulkUploadHistoryEvent { - if o == nil { - return nil - } - return o.BulkUploadHistory -} - -func (o *DebugDatasourceStatusIdentityResponseComponent) GetCounts() *DebugDatasourceStatusIdentityResponseComponentCounts { - if o == nil { - return nil - } - return o.Counts -} diff --git a/tests/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go b/tests/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go deleted file mode 100644 index fe777e9b..00000000 --- a/tests/mockserver/internal/sdk/models/components/debugdatasourcestatusresponse.go +++ /dev/null @@ -1,153 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type DebugDatasourceStatusResponseCounts struct { - // A list of object types and corresponding upload counts - Uploaded []DatasourceObjectTypeDocumentCountEntry `json:"uploaded,omitempty"` - // The number of documents indexed, grouped by objectType - Indexed []DatasourceObjectTypeDocumentCountEntry `json:"indexed,omitempty"` -} - -func (o *DebugDatasourceStatusResponseCounts) GetUploaded() []DatasourceObjectTypeDocumentCountEntry { - if o == nil { - return nil - } - return o.Uploaded -} - -func (o *DebugDatasourceStatusResponseCounts) GetIndexed() []DatasourceObjectTypeDocumentCountEntry { - if o == nil { - return nil - } - return o.Indexed -} - -type Documents struct { - // Information about active and recent successful uploads for the datasource - BulkUploadHistory []BulkUploadHistoryEvent `json:"bulkUploadHistory,omitempty"` - Counts *DebugDatasourceStatusResponseCounts `json:"counts,omitempty"` - // Information about processing history for the datasource - ProcessingHistory []ProcessingHistoryEvent `json:"processingHistory,omitempty"` -} - -func (o *Documents) GetBulkUploadHistory() []BulkUploadHistoryEvent { - if o == nil { - return nil - } - return o.BulkUploadHistory -} - -func (o *Documents) GetCounts() *DebugDatasourceStatusResponseCounts { - if o == nil { - return nil - } - return o.Counts -} - -func (o *Documents) GetProcessingHistory() []ProcessingHistoryEvent { - if o == nil { - return nil - } - return o.ProcessingHistory -} - -type Identity struct { - // Information about processing history for the datasource - ProcessingHistory []ProcessingHistoryEvent `json:"processingHistory,omitempty"` - Users *DebugDatasourceStatusIdentityResponseComponent `json:"users,omitempty"` - Groups *DebugDatasourceStatusIdentityResponseComponent `json:"groups,omitempty"` - Memberships *DebugDatasourceStatusIdentityResponseComponent `json:"memberships,omitempty"` -} - -func (o *Identity) GetProcessingHistory() []ProcessingHistoryEvent { - if o == nil { - return nil - } - return o.ProcessingHistory -} - -func (o *Identity) GetUsers() *DebugDatasourceStatusIdentityResponseComponent { - if o == nil { - return nil - } - return o.Users -} - -func (o *Identity) GetGroups() *DebugDatasourceStatusIdentityResponseComponent { - if o == nil { - return nil - } - return o.Groups -} - -func (o *Identity) GetMemberships() *DebugDatasourceStatusIdentityResponseComponent { - if o == nil { - return nil - } - return o.Memberships -} - -// DatasourceVisibility - The visibility of the datasource, an enum of VISIBLE_TO_ALL, VISIBLE_TO_TEST_GROUP, NOT_VISIBLE -type DatasourceVisibility string - -const ( - DatasourceVisibilityEnabledForAll DatasourceVisibility = "ENABLED_FOR_ALL" - DatasourceVisibilityEnabledForTestGroup DatasourceVisibility = "ENABLED_FOR_TEST_GROUP" - DatasourceVisibilityNotEnabled DatasourceVisibility = "NOT_ENABLED" -) - -func (e DatasourceVisibility) ToPointer() *DatasourceVisibility { - return &e -} -func (e *DatasourceVisibility) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ENABLED_FOR_ALL": - fallthrough - case "ENABLED_FOR_TEST_GROUP": - fallthrough - case "NOT_ENABLED": - *e = DatasourceVisibility(v) - return nil - default: - return fmt.Errorf("invalid value for DatasourceVisibility: %v", v) - } -} - -// DebugDatasourceStatusResponse - Describes the response body of the /debug/{datasource}/status API call -type DebugDatasourceStatusResponse struct { - Documents *Documents `json:"documents,omitempty"` - Identity *Identity `json:"identity,omitempty"` - // The visibility of the datasource, an enum of VISIBLE_TO_ALL, VISIBLE_TO_TEST_GROUP, NOT_VISIBLE - DatasourceVisibility *DatasourceVisibility `json:"datasourceVisibility,omitempty"` -} - -func (o *DebugDatasourceStatusResponse) GetDocuments() *Documents { - if o == nil { - return nil - } - return o.Documents -} - -func (o *DebugDatasourceStatusResponse) GetIdentity() *Identity { - if o == nil { - return nil - } - return o.Identity -} - -func (o *DebugDatasourceStatusResponse) GetDatasourceVisibility() *DatasourceVisibility { - if o == nil { - return nil - } - return o.DatasourceVisibility -} diff --git a/tests/mockserver/internal/sdk/models/components/debugdocumentrequest.go b/tests/mockserver/internal/sdk/models/components/debugdocumentrequest.go deleted file mode 100644 index 2ccad29a..00000000 --- a/tests/mockserver/internal/sdk/models/components/debugdocumentrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DebugDocumentRequest - Describes the request body of the /debug/{datasource}/document API call. -type DebugDocumentRequest struct { - // Object type of the document to get the status for. - ObjectType string `json:"objectType"` - // Glean Document ID within the datasource to get the status for. - DocID string `json:"docId"` -} - -func (o *DebugDocumentRequest) GetObjectType() string { - if o == nil { - return "" - } - return o.ObjectType -} - -func (o *DebugDocumentRequest) GetDocID() string { - if o == nil { - return "" - } - return o.DocID -} diff --git a/tests/mockserver/internal/sdk/models/components/debugdocumentresponse.go b/tests/mockserver/internal/sdk/models/components/debugdocumentresponse.go deleted file mode 100644 index 12fcd5cd..00000000 --- a/tests/mockserver/internal/sdk/models/components/debugdocumentresponse.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DebugDocumentResponse - Describes the response body of the /debug/{datasource}/document API call -type DebugDocumentResponse struct { - // Describes the document status response body - Status *DocumentStatusResponse `json:"status,omitempty"` - // describes the access control details of the document - UploadedPermissions *DocumentPermissionsDefinition `json:"uploadedPermissions,omitempty"` -} - -func (o *DebugDocumentResponse) GetStatus() *DocumentStatusResponse { - if o == nil { - return nil - } - return o.Status -} - -func (o *DebugDocumentResponse) GetUploadedPermissions() *DocumentPermissionsDefinition { - if o == nil { - return nil - } - return o.UploadedPermissions -} diff --git a/tests/mockserver/internal/sdk/models/components/debugdocumentsrequest.go b/tests/mockserver/internal/sdk/models/components/debugdocumentsrequest.go deleted file mode 100644 index 545ba853..00000000 --- a/tests/mockserver/internal/sdk/models/components/debugdocumentsrequest.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DebugDocumentsRequest - Describes the request body of the /debug/{datasource}/documents API call. -type DebugDocumentsRequest struct { - // Documents to fetch debug information for - DebugDocuments []DebugDocumentRequest `json:"debugDocuments"` -} - -func (o *DebugDocumentsRequest) GetDebugDocuments() []DebugDocumentRequest { - if o == nil { - return []DebugDocumentRequest{} - } - return o.DebugDocuments -} diff --git a/tests/mockserver/internal/sdk/models/components/debugdocumentsresponse.go b/tests/mockserver/internal/sdk/models/components/debugdocumentsresponse.go deleted file mode 100644 index b813fdd3..00000000 --- a/tests/mockserver/internal/sdk/models/components/debugdocumentsresponse.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DebugDocumentsResponse - Describes the response body of a single document in the /debug/{datasource}/documents API call -type DebugDocumentsResponse struct { - // List of document ids/urls and their debug information - DocumentStatuses []DebugDocumentsResponseItem `json:"documentStatuses,omitempty"` -} - -func (o *DebugDocumentsResponse) GetDocumentStatuses() []DebugDocumentsResponseItem { - if o == nil { - return nil - } - return o.DocumentStatuses -} diff --git a/tests/mockserver/internal/sdk/models/components/debugdocumentsresponseitem.go b/tests/mockserver/internal/sdk/models/components/debugdocumentsresponseitem.go deleted file mode 100644 index 47e26f94..00000000 --- a/tests/mockserver/internal/sdk/models/components/debugdocumentsresponseitem.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DebugDocumentsResponseItem - Describes the response body of a single document in the /debug/{datasource}/documents API call -type DebugDocumentsResponseItem struct { - // Id of the document - DocID *string `json:"docId,omitempty"` - // objectType of the document - ObjectType *string `json:"objectType,omitempty"` - // Describes the response body of the /debug/{datasource}/document API call - DebugInfo *DebugDocumentResponse `json:"debugInfo,omitempty"` -} - -func (o *DebugDocumentsResponseItem) GetDocID() *string { - if o == nil { - return nil - } - return o.DocID -} - -func (o *DebugDocumentsResponseItem) GetObjectType() *string { - if o == nil { - return nil - } - return o.ObjectType -} - -func (o *DebugDocumentsResponseItem) GetDebugInfo() *DebugDocumentResponse { - if o == nil { - return nil - } - return o.DebugInfo -} diff --git a/tests/mockserver/internal/sdk/models/components/debuguserrequest.go b/tests/mockserver/internal/sdk/models/components/debuguserrequest.go deleted file mode 100644 index fe3f914a..00000000 --- a/tests/mockserver/internal/sdk/models/components/debuguserrequest.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DebugUserRequest - Describes the request body of the /debug/{datasource}/user API call -type DebugUserRequest struct { - // Email ID of the user to get the status for - Email string `json:"email"` -} - -func (o *DebugUserRequest) GetEmail() string { - if o == nil { - return "" - } - return o.Email -} diff --git a/tests/mockserver/internal/sdk/models/components/debuguserresponse.go b/tests/mockserver/internal/sdk/models/components/debuguserresponse.go deleted file mode 100644 index 3f6cca7c..00000000 --- a/tests/mockserver/internal/sdk/models/components/debuguserresponse.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DebugUserResponse - Describes the response body of the /debug/{datasource}/user API call -type DebugUserResponse struct { - // Describes the user status response body - Status *UserStatusResponse `json:"status,omitempty"` - // List of groups the user is a member of, as uploaded via permissions API. - UploadedGroups []DatasourceGroupDefinition `json:"uploadedGroups,omitempty"` -} - -func (o *DebugUserResponse) GetStatus() *UserStatusResponse { - if o == nil { - return nil - } - return o.Status -} - -func (o *DebugUserResponse) GetUploadedGroups() []DatasourceGroupDefinition { - if o == nil { - return nil - } - return o.UploadedGroups -} diff --git a/tests/mockserver/internal/sdk/models/components/deleteannouncementrequest.go b/tests/mockserver/internal/sdk/models/components/deleteannouncementrequest.go deleted file mode 100644 index 15d931ea..00000000 --- a/tests/mockserver/internal/sdk/models/components/deleteannouncementrequest.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DeleteAnnouncementRequest struct { - // The opaque id of the announcement to be deleted. - ID int64 `json:"id"` -} - -func (o *DeleteAnnouncementRequest) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/deleteanswerrequest.go b/tests/mockserver/internal/sdk/models/components/deleteanswerrequest.go deleted file mode 100644 index 0ee5ee69..00000000 --- a/tests/mockserver/internal/sdk/models/components/deleteanswerrequest.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DeleteAnswerRequest struct { - // The opaque ID of the Answer. - ID int64 `json:"id"` - // Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. - DocID *string `json:"docId,omitempty"` -} - -func (o *DeleteAnswerRequest) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} - -func (o *DeleteAnswerRequest) GetDocID() *string { - if o == nil { - return nil - } - return o.DocID -} diff --git a/tests/mockserver/internal/sdk/models/components/deletechatfilesrequest.go b/tests/mockserver/internal/sdk/models/components/deletechatfilesrequest.go deleted file mode 100644 index e955ca76..00000000 --- a/tests/mockserver/internal/sdk/models/components/deletechatfilesrequest.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DeleteChatFilesRequest struct { - // IDs of files to delete. - FileIds []string `json:"fileIds"` -} - -func (o *DeleteChatFilesRequest) GetFileIds() []string { - if o == nil { - return []string{} - } - return o.FileIds -} diff --git a/tests/mockserver/internal/sdk/models/components/deletechatsrequest.go b/tests/mockserver/internal/sdk/models/components/deletechatsrequest.go deleted file mode 100644 index 2f0acbf3..00000000 --- a/tests/mockserver/internal/sdk/models/components/deletechatsrequest.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DeleteChatsRequest struct { - // A non-empty list of ids of the Chats to be deleted. - Ids []string `json:"ids"` -} - -func (o *DeleteChatsRequest) GetIds() []string { - if o == nil { - return []string{} - } - return o.Ids -} diff --git a/tests/mockserver/internal/sdk/models/components/deletecollectionitemrequest.go b/tests/mockserver/internal/sdk/models/components/deletecollectionitemrequest.go deleted file mode 100644 index 768919fc..00000000 --- a/tests/mockserver/internal/sdk/models/components/deletecollectionitemrequest.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DeleteCollectionItemRequest struct { - // The ID of the Collection to remove an item in. - CollectionID float64 `json:"collectionId"` - // The item ID of the CollectionItem to remove from this Collection. - ItemID string `json:"itemId"` - // The (optional) Glean Document ID of the CollectionItem to remove from this Collection if this is an indexed document. - DocumentID *string `json:"documentId,omitempty"` -} - -func (o *DeleteCollectionItemRequest) GetCollectionID() float64 { - if o == nil { - return 0.0 - } - return o.CollectionID -} - -func (o *DeleteCollectionItemRequest) GetItemID() string { - if o == nil { - return "" - } - return o.ItemID -} - -func (o *DeleteCollectionItemRequest) GetDocumentID() *string { - if o == nil { - return nil - } - return o.DocumentID -} diff --git a/tests/mockserver/internal/sdk/models/components/deletecollectionitemresponse.go b/tests/mockserver/internal/sdk/models/components/deletecollectionitemresponse.go deleted file mode 100644 index 94f10397..00000000 --- a/tests/mockserver/internal/sdk/models/components/deletecollectionitemresponse.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DeleteCollectionItemResponse struct { - Collection *Collection `json:"collection,omitempty"` -} - -func (o *DeleteCollectionItemResponse) GetCollection() *Collection { - if o == nil { - return nil - } - return o.Collection -} diff --git a/tests/mockserver/internal/sdk/models/components/deletecollectionrequest.go b/tests/mockserver/internal/sdk/models/components/deletecollectionrequest.go deleted file mode 100644 index a3460a0a..00000000 --- a/tests/mockserver/internal/sdk/models/components/deletecollectionrequest.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DeleteCollectionRequest struct { - // The IDs of the Collections to delete. - Ids []int64 `json:"ids"` - // The datasource allowed in the Collection to be deleted. - AllowedDatasource *string `json:"allowedDatasource,omitempty"` -} - -func (o *DeleteCollectionRequest) GetIds() []int64 { - if o == nil { - return []int64{} - } - return o.Ids -} - -func (o *DeleteCollectionRequest) GetAllowedDatasource() *string { - if o == nil { - return nil - } - return o.AllowedDatasource -} diff --git a/tests/mockserver/internal/sdk/models/components/deletedocumentrequest.go b/tests/mockserver/internal/sdk/models/components/deletedocumentrequest.go deleted file mode 100644 index e103c1c4..00000000 --- a/tests/mockserver/internal/sdk/models/components/deletedocumentrequest.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DeleteDocumentRequest - Describes the request body of the /deletedocument API call -type DeleteDocumentRequest struct { - // Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. - Version *int64 `json:"version,omitempty"` - // datasource of the document - Datasource string `json:"datasource"` - // object type of the document - ObjectType string `json:"objectType"` - // The id of the document - ID string `json:"id"` -} - -func (o *DeleteDocumentRequest) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} - -func (o *DeleteDocumentRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *DeleteDocumentRequest) GetObjectType() string { - if o == nil { - return "" - } - return o.ObjectType -} - -func (o *DeleteDocumentRequest) GetID() string { - if o == nil { - return "" - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/deleteemployeerequest.go b/tests/mockserver/internal/sdk/models/components/deleteemployeerequest.go deleted file mode 100644 index 0e582507..00000000 --- a/tests/mockserver/internal/sdk/models/components/deleteemployeerequest.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DeleteEmployeeRequest - Describes the request body of the /deleteemployee API call -type DeleteEmployeeRequest struct { - // Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. - Version *int64 `json:"version,omitempty"` - // The deleted employee's email - EmployeeEmail string `json:"employeeEmail"` -} - -func (o *DeleteEmployeeRequest) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} - -func (o *DeleteEmployeeRequest) GetEmployeeEmail() string { - if o == nil { - return "" - } - return o.EmployeeEmail -} diff --git a/tests/mockserver/internal/sdk/models/components/deletegrouprequest.go b/tests/mockserver/internal/sdk/models/components/deletegrouprequest.go deleted file mode 100644 index 4c6a7310..00000000 --- a/tests/mockserver/internal/sdk/models/components/deletegrouprequest.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DeleteGroupRequest - Describes the request body of the /deletegroup API call -type DeleteGroupRequest struct { - // Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. - Version *int64 `json:"version,omitempty"` - // The datasource for which the group is removed - Datasource string `json:"datasource"` - // the name of the group to be deleted - GroupName string `json:"groupName"` -} - -func (o *DeleteGroupRequest) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} - -func (o *DeleteGroupRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *DeleteGroupRequest) GetGroupName() string { - if o == nil { - return "" - } - return o.GroupName -} diff --git a/tests/mockserver/internal/sdk/models/components/deletemembershiprequest.go b/tests/mockserver/internal/sdk/models/components/deletemembershiprequest.go deleted file mode 100644 index ed2ab708..00000000 --- a/tests/mockserver/internal/sdk/models/components/deletemembershiprequest.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DeleteMembershipRequest - Describes the request body of the /deletemembership API call -type DeleteMembershipRequest struct { - // Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. - Version *int64 `json:"version,omitempty"` - // The datasource for which the membership is removed - Datasource string `json:"datasource"` - // describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. - Membership DatasourceMembershipDefinition `json:"membership"` -} - -func (o *DeleteMembershipRequest) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} - -func (o *DeleteMembershipRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *DeleteMembershipRequest) GetMembership() DatasourceMembershipDefinition { - if o == nil { - return DatasourceMembershipDefinition{} - } - return o.Membership -} diff --git a/tests/mockserver/internal/sdk/models/components/deleteshortcutrequest.go b/tests/mockserver/internal/sdk/models/components/deleteshortcutrequest.go deleted file mode 100644 index 440f2958..00000000 --- a/tests/mockserver/internal/sdk/models/components/deleteshortcutrequest.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DeleteShortcutRequest struct { - // The opaque id of the user generated content. - ID int64 `json:"id"` -} - -func (o *DeleteShortcutRequest) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/deleteteamrequest.go b/tests/mockserver/internal/sdk/models/components/deleteteamrequest.go deleted file mode 100644 index 7d877567..00000000 --- a/tests/mockserver/internal/sdk/models/components/deleteteamrequest.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DeleteTeamRequest - Describes the request body of the /deleteteam API call -type DeleteTeamRequest struct { - // The deleted team's id - ID string `json:"id"` -} - -func (o *DeleteTeamRequest) GetID() string { - if o == nil { - return "" - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/deleteuserrequest.go b/tests/mockserver/internal/sdk/models/components/deleteuserrequest.go deleted file mode 100644 index 9e434013..00000000 --- a/tests/mockserver/internal/sdk/models/components/deleteuserrequest.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DeleteUserRequest - Describes the request body of the /deleteuser API call -type DeleteUserRequest struct { - // Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. - Version *int64 `json:"version,omitempty"` - // The datasource for which the user is removed - Datasource string `json:"datasource"` - // The email of the user to be deleted - Email string `json:"email"` -} - -func (o *DeleteUserRequest) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} - -func (o *DeleteUserRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *DeleteUserRequest) GetEmail() string { - if o == nil { - return "" - } - return o.Email -} diff --git a/tests/mockserver/internal/sdk/models/components/digest.go b/tests/mockserver/internal/sdk/models/components/digest.go deleted file mode 100644 index 5cbcb560..00000000 --- a/tests/mockserver/internal/sdk/models/components/digest.go +++ /dev/null @@ -1,42 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type Digest struct { - // Identifier for the podcast file generated from this digest content. - PodcastFileID *string `json:"podcastFileId,omitempty"` - // Duration of the podcast file in seconds. - PodcastDuration *float32 `json:"podcastDuration,omitempty"` - // The date this digest covers, in YYYY-MM-DD format. Represents the specific day for which the digest content and updates were compiled. This can be empty if the digest is not yet available. - DigestDate *string `json:"digestDate,omitempty"` - // Array of digest sections from which the podcast was created. - Sections []DigestSection `json:"sections,omitempty"` -} - -func (o *Digest) GetPodcastFileID() *string { - if o == nil { - return nil - } - return o.PodcastFileID -} - -func (o *Digest) GetPodcastDuration() *float32 { - if o == nil { - return nil - } - return o.PodcastDuration -} - -func (o *Digest) GetDigestDate() *string { - if o == nil { - return nil - } - return o.DigestDate -} - -func (o *Digest) GetSections() []DigestSection { - if o == nil { - return nil - } - return o.Sections -} diff --git a/tests/mockserver/internal/sdk/models/components/digestsection.go b/tests/mockserver/internal/sdk/models/components/digestsection.go deleted file mode 100644 index e316597e..00000000 --- a/tests/mockserver/internal/sdk/models/components/digestsection.go +++ /dev/null @@ -1,80 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DigestSection struct { - // Unique identifier for the digest section. - ID string `json:"id"` - // Type of the section. This defines how the section should be interpreted and rendered in the digest. - Type SectionType `json:"type"` - // Human-readable name for the digest section. - DisplayName *string `json:"displayName,omitempty"` - // Name of the channel (applicable for CHANNEL type sections). Used to display in the frontend. - ChannelName *string `json:"channelName,omitempty"` - // Channel visibility/type for CHANNEL sections. For Slack this is typically one of - // PublicChannel, PrivateChannel. Omit if not applicable or unknown. - // - ChannelType *string `json:"channelType,omitempty"` - // Instance identifier for the channel or workspace. Used for constructing channel URLs to display in the frontend. - InstanceID *string `json:"instanceId,omitempty"` - // Optional URL for the digest section. Should be populated only if the section is a CHANNEL type section. - URL *string `json:"url,omitempty"` - // List of updates within this digest section. - Updates []DigestUpdate `json:"updates"` -} - -func (o *DigestSection) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -func (o *DigestSection) GetType() SectionType { - if o == nil { - return SectionType("") - } - return o.Type -} - -func (o *DigestSection) GetDisplayName() *string { - if o == nil { - return nil - } - return o.DisplayName -} - -func (o *DigestSection) GetChannelName() *string { - if o == nil { - return nil - } - return o.ChannelName -} - -func (o *DigestSection) GetChannelType() *string { - if o == nil { - return nil - } - return o.ChannelType -} - -func (o *DigestSection) GetInstanceID() *string { - if o == nil { - return nil - } - return o.InstanceID -} - -func (o *DigestSection) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *DigestSection) GetUpdates() []DigestUpdate { - if o == nil { - return []DigestUpdate{} - } - return o.Updates -} diff --git a/tests/mockserver/internal/sdk/models/components/digestupdate.go b/tests/mockserver/internal/sdk/models/components/digestupdate.go deleted file mode 100644 index 0f1dbc89..00000000 --- a/tests/mockserver/internal/sdk/models/components/digestupdate.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DigestUpdate struct { - // URL link to the content or document. - URL *string `json:"url,omitempty"` - // Title or headline of the update. - Title *string `json:"title,omitempty"` - // Name or identifier of the data source (e.g., slack, confluence, etc.). - Datasource *string `json:"datasource,omitempty"` - // Brief summary or description of the update content. - Summary *string `json:"summary,omitempty"` - // Optional type classification for the update. - Type *UpdateType `json:"type,omitempty"` -} - -func (o *DigestUpdate) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *DigestUpdate) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *DigestUpdate) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *DigestUpdate) GetSummary() *string { - if o == nil { - return nil - } - return o.Summary -} - -func (o *DigestUpdate) GetType() *UpdateType { - if o == nil { - return nil - } - return o.Type -} diff --git a/tests/mockserver/internal/sdk/models/components/disambiguation.go b/tests/mockserver/internal/sdk/models/components/disambiguation.go deleted file mode 100644 index 200e9abb..00000000 --- a/tests/mockserver/internal/sdk/models/components/disambiguation.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// Disambiguation - A disambiguation between multiple entities with the same name -type Disambiguation struct { - // Name of the ambiguous entity - Name *string `json:"name,omitempty"` - // The unique id of the entity in the knowledge graph - ID *string `json:"id,omitempty"` - // The type of entity. - Type *EntityType `json:"type,omitempty"` -} - -func (d Disambiguation) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *Disambiguation) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *Disambiguation) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *Disambiguation) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *Disambiguation) GetType() *EntityType { - if o == nil { - return nil - } - return o.Type -} diff --git a/tests/mockserver/internal/sdk/models/components/displayablelistitemuiconfig.go b/tests/mockserver/internal/sdk/models/components/displayablelistitemuiconfig.go deleted file mode 100644 index a0e60528..00000000 --- a/tests/mockserver/internal/sdk/models/components/displayablelistitemuiconfig.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DisplayableListItemUIConfig - UI configurations for each item of the list -type DisplayableListItemUIConfig struct { - // show a "New" pill next to the item - ShowNewIndicator *bool `json:"showNewIndicator,omitempty"` -} - -func (o *DisplayableListItemUIConfig) GetShowNewIndicator() *bool { - if o == nil { - return nil - } - return o.ShowNewIndicator -} diff --git a/tests/mockserver/internal/sdk/models/components/dlpconfig.go b/tests/mockserver/internal/sdk/models/components/dlpconfig.go deleted file mode 100644 index 3502af7b..00000000 --- a/tests/mockserver/internal/sdk/models/components/dlpconfig.go +++ /dev/null @@ -1,125 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DlpConfig - Detailed configuration of what documents and sensitive content will be scanned. -type DlpConfig struct { - // Synonymous with report/policy id. - Version *int64 `json:"version,omitempty"` - // DEPRECATED - use `sensitiveContentOptions` instead. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - SensitiveInfoTypes []SensitiveInfoType `json:"sensitiveInfoTypes,omitempty"` - // Controls which data-sources and what time-range to include in scans. - InputOptions *InputOptions `json:"inputOptions,omitempty"` - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - ExternalSharingOptions *ExternalSharingOptions `json:"externalSharingOptions,omitempty"` - // Controls how "shared" a document must be to get picked for scans. - BroadSharingOptions *SharingOptions `json:"broadSharingOptions,omitempty"` - // Options for defining sensitive content within scanned documents. - SensitiveContentOptions *SensitiveContentOptions `json:"sensitiveContentOptions,omitempty"` - ReportName *string `json:"reportName,omitempty"` - // Interval between scans. - Frequency *string `json:"frequency,omitempty"` - // Details about the person who created this report/policy. - CreatedBy *DlpPerson `json:"createdBy,omitempty"` - // Timestamp at which this configuration was created. - CreatedAt *string `json:"createdAt,omitempty"` - // redact quote in findings of the report - RedactQuote *bool `json:"redactQuote,omitempty"` - // auto hide documents with findings in the report - AutoHideDocs *bool `json:"autoHideDocs,omitempty"` - // Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term in the allow-list, it will not be counted as a violation. - AllowlistOptions *AllowlistOptions `json:"allowlistOptions,omitempty"` -} - -func (o *DlpConfig) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} - -func (o *DlpConfig) GetSensitiveInfoTypes() []SensitiveInfoType { - if o == nil { - return nil - } - return o.SensitiveInfoTypes -} - -func (o *DlpConfig) GetInputOptions() *InputOptions { - if o == nil { - return nil - } - return o.InputOptions -} - -func (o *DlpConfig) GetExternalSharingOptions() *ExternalSharingOptions { - if o == nil { - return nil - } - return o.ExternalSharingOptions -} - -func (o *DlpConfig) GetBroadSharingOptions() *SharingOptions { - if o == nil { - return nil - } - return o.BroadSharingOptions -} - -func (o *DlpConfig) GetSensitiveContentOptions() *SensitiveContentOptions { - if o == nil { - return nil - } - return o.SensitiveContentOptions -} - -func (o *DlpConfig) GetReportName() *string { - if o == nil { - return nil - } - return o.ReportName -} - -func (o *DlpConfig) GetFrequency() *string { - if o == nil { - return nil - } - return o.Frequency -} - -func (o *DlpConfig) GetCreatedBy() *DlpPerson { - if o == nil { - return nil - } - return o.CreatedBy -} - -func (o *DlpConfig) GetCreatedAt() *string { - if o == nil { - return nil - } - return o.CreatedAt -} - -func (o *DlpConfig) GetRedactQuote() *bool { - if o == nil { - return nil - } - return o.RedactQuote -} - -func (o *DlpConfig) GetAutoHideDocs() *bool { - if o == nil { - return nil - } - return o.AutoHideDocs -} - -func (o *DlpConfig) GetAllowlistOptions() *AllowlistOptions { - if o == nil { - return nil - } - return o.AllowlistOptions -} diff --git a/tests/mockserver/internal/sdk/models/components/dlpfrequency.go b/tests/mockserver/internal/sdk/models/components/dlpfrequency.go deleted file mode 100644 index 7c8f72b3..00000000 --- a/tests/mockserver/internal/sdk/models/components/dlpfrequency.go +++ /dev/null @@ -1,44 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// DlpFrequency - Interval between scans. DAILY is deprecated. -type DlpFrequency string - -const ( - DlpFrequencyOnce DlpFrequency = "ONCE" - DlpFrequencyDaily DlpFrequency = "DAILY" - DlpFrequencyWeekly DlpFrequency = "WEEKLY" - DlpFrequencyContinuous DlpFrequency = "CONTINUOUS" - DlpFrequencyNone DlpFrequency = "NONE" -) - -func (e DlpFrequency) ToPointer() *DlpFrequency { - return &e -} -func (e *DlpFrequency) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ONCE": - fallthrough - case "DAILY": - fallthrough - case "WEEKLY": - fallthrough - case "CONTINUOUS": - fallthrough - case "NONE": - *e = DlpFrequency(v) - return nil - default: - return fmt.Errorf("invalid value for DlpFrequency: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/dlpperson.go b/tests/mockserver/internal/sdk/models/components/dlpperson.go deleted file mode 100644 index 1bcd022f..00000000 --- a/tests/mockserver/internal/sdk/models/components/dlpperson.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DlpPerson - Details about the person who created this report/policy. -type DlpPerson struct { - // The display name. - Name string `json:"name"` - // An opaque identifier that can be used to request metadata for a Person. - ObfuscatedID string `json:"obfuscatedId"` - Metadata *DlpPersonMetadata `json:"metadata,omitempty"` -} - -func (o *DlpPerson) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *DlpPerson) GetObfuscatedID() string { - if o == nil { - return "" - } - return o.ObfuscatedID -} - -func (o *DlpPerson) GetMetadata() *DlpPersonMetadata { - if o == nil { - return nil - } - return o.Metadata -} diff --git a/tests/mockserver/internal/sdk/models/components/dlppersonmetadata.go b/tests/mockserver/internal/sdk/models/components/dlppersonmetadata.go deleted file mode 100644 index 5baf03bb..00000000 --- a/tests/mockserver/internal/sdk/models/components/dlppersonmetadata.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DlpPersonMetadata struct { - // The first name of the person - FirstName *string `json:"firstName,omitempty"` - // The user's primary email address - Email *string `json:"email,omitempty"` -} - -func (o *DlpPersonMetadata) GetFirstName() *string { - if o == nil { - return nil - } - return o.FirstName -} - -func (o *DlpPersonMetadata) GetEmail() *string { - if o == nil { - return nil - } - return o.Email -} diff --git a/tests/mockserver/internal/sdk/models/components/dlpreport.go b/tests/mockserver/internal/sdk/models/components/dlpreport.go deleted file mode 100644 index 8e6ccffc..00000000 --- a/tests/mockserver/internal/sdk/models/components/dlpreport.go +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type LastScanStatus string - -const ( - LastScanStatusPending LastScanStatus = "PENDING" - LastScanStatusSuccess LastScanStatus = "SUCCESS" - LastScanStatusFailure LastScanStatus = "FAILURE" - LastScanStatusCancelled LastScanStatus = "CANCELLED" - LastScanStatusCancelling LastScanStatus = "CANCELLING" - LastScanStatusActive LastScanStatus = "ACTIVE" -) - -func (e LastScanStatus) ToPointer() *LastScanStatus { - return &e -} -func (e *LastScanStatus) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "PENDING": - fallthrough - case "SUCCESS": - fallthrough - case "FAILURE": - fallthrough - case "CANCELLED": - fallthrough - case "CANCELLING": - fallthrough - case "ACTIVE": - *e = LastScanStatus(v) - return nil - default: - return fmt.Errorf("invalid value for LastScanStatus: %v", v) - } -} - -// DlpReport - Full policy information that will be used for scans. -type DlpReport struct { - ID *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` - // Detailed configuration of what documents and sensitive content will be scanned. - Config *DlpConfig `json:"config,omitempty"` - // Interval between scans. DAILY is deprecated. - Frequency *DlpFrequency `json:"frequency,omitempty"` - // The status of the policy/report. Only ACTIVE status will be picked for scans. - Status *DlpReportStatus `json:"status,omitempty"` - // Details about the person who created this report/policy. - CreatedBy *DlpPerson `json:"createdBy,omitempty"` - // Timestamp at which the policy was created. - CreatedAt *string `json:"createdAt,omitempty"` - // Timestamp at which the policy was last updated. - LastUpdatedAt *string `json:"lastUpdatedAt,omitempty"` - // Auto hide documents with findings in the policy. - AutoHideDocs *bool `json:"autoHideDocs,omitempty"` - LastScanStatus *LastScanStatus `json:"lastScanStatus,omitempty"` - // The timestamp at which the report's last run/scan began. - LastScanStartTime *string `json:"lastScanStartTime,omitempty"` - // Details about the person who created this report/policy. - UpdatedBy *DlpPerson `json:"updatedBy,omitempty"` -} - -func (o *DlpReport) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *DlpReport) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *DlpReport) GetConfig() *DlpConfig { - if o == nil { - return nil - } - return o.Config -} - -func (o *DlpReport) GetFrequency() *DlpFrequency { - if o == nil { - return nil - } - return o.Frequency -} - -func (o *DlpReport) GetStatus() *DlpReportStatus { - if o == nil { - return nil - } - return o.Status -} - -func (o *DlpReport) GetCreatedBy() *DlpPerson { - if o == nil { - return nil - } - return o.CreatedBy -} - -func (o *DlpReport) GetCreatedAt() *string { - if o == nil { - return nil - } - return o.CreatedAt -} - -func (o *DlpReport) GetLastUpdatedAt() *string { - if o == nil { - return nil - } - return o.LastUpdatedAt -} - -func (o *DlpReport) GetAutoHideDocs() *bool { - if o == nil { - return nil - } - return o.AutoHideDocs -} - -func (o *DlpReport) GetLastScanStatus() *LastScanStatus { - if o == nil { - return nil - } - return o.LastScanStatus -} - -func (o *DlpReport) GetLastScanStartTime() *string { - if o == nil { - return nil - } - return o.LastScanStartTime -} - -func (o *DlpReport) GetUpdatedBy() *DlpPerson { - if o == nil { - return nil - } - return o.UpdatedBy -} diff --git a/tests/mockserver/internal/sdk/models/components/dlpreportstatus.go b/tests/mockserver/internal/sdk/models/components/dlpreportstatus.go deleted file mode 100644 index 6c4ea46f..00000000 --- a/tests/mockserver/internal/sdk/models/components/dlpreportstatus.go +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// DlpReportStatus - The status of the policy/report. Only ACTIVE status will be picked for scans. -type DlpReportStatus string - -const ( - DlpReportStatusActive DlpReportStatus = "ACTIVE" - DlpReportStatusInactive DlpReportStatus = "INACTIVE" - DlpReportStatusCancelled DlpReportStatus = "CANCELLED" - DlpReportStatusNone DlpReportStatus = "NONE" -) - -func (e DlpReportStatus) ToPointer() *DlpReportStatus { - return &e -} -func (e *DlpReportStatus) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ACTIVE": - fallthrough - case "INACTIVE": - fallthrough - case "CANCELLED": - fallthrough - case "NONE": - *e = DlpReportStatus(v) - return nil - default: - return fmt.Errorf("invalid value for DlpReportStatus: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/dlpsimpleresult.go b/tests/mockserver/internal/sdk/models/components/dlpsimpleresult.go deleted file mode 100644 index f75e7454..00000000 --- a/tests/mockserver/internal/sdk/models/components/dlpsimpleresult.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type DlpSimpleResult string - -const ( - DlpSimpleResultSuccess DlpSimpleResult = "SUCCESS" - DlpSimpleResultFailure DlpSimpleResult = "FAILURE" -) - -func (e DlpSimpleResult) ToPointer() *DlpSimpleResult { - return &e -} -func (e *DlpSimpleResult) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "SUCCESS": - fallthrough - case "FAILURE": - *e = DlpSimpleResult(v) - return nil - default: - return fmt.Errorf("invalid value for DlpSimpleResult: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/document.go b/tests/mockserver/internal/sdk/models/components/document.go deleted file mode 100644 index e72ffed1..00000000 --- a/tests/mockserver/internal/sdk/models/components/document.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type Document struct { - // The Glean Document ID. - ID *string `json:"id,omitempty"` - // The app or other repository type from which the document was extracted - Datasource *string `json:"datasource,omitempty"` - // The source from which document content was pulled, e.g. an API crawl or browser history - ConnectorType *ConnectorType `json:"connectorType,omitempty"` - // The datasource-specific type of the document (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). - DocType *string `json:"docType,omitempty"` - Content *DocumentContent `json:"content,omitempty"` - ContainerDocument *Document `json:"containerDocument,omitempty"` - ParentDocument *Document `json:"parentDocument,omitempty"` - // The title of the document. - Title *string `json:"title,omitempty"` - // A permalink for the document. - URL *string `json:"url,omitempty"` - Metadata *DocumentMetadata `json:"metadata,omitempty"` - // A list of content sub-sections in the document, e.g. text blocks with different headings in a Drive doc or Confluence page. - Sections []DocumentSection `json:"sections,omitempty"` -} - -func (d Document) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *Document) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *Document) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *Document) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *Document) GetConnectorType() *ConnectorType { - if o == nil { - return nil - } - return o.ConnectorType -} - -func (o *Document) GetDocType() *string { - if o == nil { - return nil - } - return o.DocType -} - -func (o *Document) GetContent() *DocumentContent { - if o == nil { - return nil - } - return o.Content -} - -func (o *Document) GetContainerDocument() *Document { - if o == nil { - return nil - } - return o.ContainerDocument -} - -func (o *Document) GetParentDocument() *Document { - if o == nil { - return nil - } - return o.ParentDocument -} - -func (o *Document) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *Document) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *Document) GetMetadata() *DocumentMetadata { - if o == nil { - return nil - } - return o.Metadata -} - -func (o *Document) GetSections() []DocumentSection { - if o == nil { - return nil - } - return o.Sections -} diff --git a/tests/mockserver/internal/sdk/models/components/documentcontent.go b/tests/mockserver/internal/sdk/models/components/documentcontent.go deleted file mode 100644 index e2a735c9..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentcontent.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type DocumentContent struct { - // The plaintext content of the document. - FullTextList []string `json:"fullTextList,omitempty"` -} - -func (d DocumentContent) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DocumentContent) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *DocumentContent) GetFullTextList() []string { - if o == nil { - return nil - } - return o.FullTextList -} diff --git a/tests/mockserver/internal/sdk/models/components/documentdefinition.go b/tests/mockserver/internal/sdk/models/components/documentdefinition.go deleted file mode 100644 index b0bbd077..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentdefinition.go +++ /dev/null @@ -1,213 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DocumentDefinition - Indexable document structure -type DocumentDefinition struct { - // Document title, in plain text, if present. If not present, the title would be attempted to be extracted from the content. - Title *string `json:"title,omitempty"` - // Source filename, in plain text, for the document. May be used as a fallback title for the document, if the title is not provided and cannot be extracted from the content. Populate this if there is no explicit title for the document and the content is sourced from a file. - Filename *string `json:"filename,omitempty"` - // The container name for the content (Folder for example for file content). - Container *string `json:"container,omitempty"` - // This represents the datasource sepcific id of the container. - ContainerDatasourceID *string `json:"containerDatasourceId,omitempty"` - // This represents the object type of the container. It cannot have spaces or _ - ContainerObjectType *string `json:"containerObjectType,omitempty"` - Datasource string `json:"datasource"` - // The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ - ObjectType *string `json:"objectType,omitempty"` - // The permalink for viewing the document. **Note: viewURL is a required field for non-entity datasources, but not required if the datasource is used to push custom entities (ie. datasources where isEntityDatasource is false).**' - // - ViewURL *string `json:"viewURL,omitempty"` - // The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. - ID *string `json:"id,omitempty"` - // Describes text content or base64 encoded binary content - Summary *ContentDefinition `json:"summary,omitempty"` - // Describes text content or base64 encoded binary content - Body *ContentDefinition `json:"body,omitempty"` - // Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. - Author *UserReferenceDefinition `json:"author,omitempty"` - // Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. - Owner *UserReferenceDefinition `json:"owner,omitempty"` - // describes the access control details of the document - Permissions *DocumentPermissionsDefinition `json:"permissions,omitempty"` - // The creation time, in epoch seconds. - CreatedAt *int64 `json:"createdAt,omitempty"` - // The last update time, in epoch seconds. - UpdatedAt *int64 `json:"updatedAt,omitempty"` - // Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. - UpdatedBy *UserReferenceDefinition `json:"updatedBy,omitempty"` - // Labels associated with the document. - Tags []string `json:"tags,omitempty"` - // describes the interactions on the document - Interactions *DocumentInteractionsDefinition `json:"interactions,omitempty"` - Status *string `json:"status,omitempty"` - // Additional variations of the URL that this document points to. - AdditionalUrls []string `json:"additionalUrls,omitempty"` - // Comments associated with the document. - Comments []CommentDefinition `json:"comments,omitempty"` - // Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). - CustomProperties []CustomProperty `json:"customProperties,omitempty"` -} - -func (o *DocumentDefinition) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *DocumentDefinition) GetFilename() *string { - if o == nil { - return nil - } - return o.Filename -} - -func (o *DocumentDefinition) GetContainer() *string { - if o == nil { - return nil - } - return o.Container -} - -func (o *DocumentDefinition) GetContainerDatasourceID() *string { - if o == nil { - return nil - } - return o.ContainerDatasourceID -} - -func (o *DocumentDefinition) GetContainerObjectType() *string { - if o == nil { - return nil - } - return o.ContainerObjectType -} - -func (o *DocumentDefinition) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *DocumentDefinition) GetObjectType() *string { - if o == nil { - return nil - } - return o.ObjectType -} - -func (o *DocumentDefinition) GetViewURL() *string { - if o == nil { - return nil - } - return o.ViewURL -} - -func (o *DocumentDefinition) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *DocumentDefinition) GetSummary() *ContentDefinition { - if o == nil { - return nil - } - return o.Summary -} - -func (o *DocumentDefinition) GetBody() *ContentDefinition { - if o == nil { - return nil - } - return o.Body -} - -func (o *DocumentDefinition) GetAuthor() *UserReferenceDefinition { - if o == nil { - return nil - } - return o.Author -} - -func (o *DocumentDefinition) GetOwner() *UserReferenceDefinition { - if o == nil { - return nil - } - return o.Owner -} - -func (o *DocumentDefinition) GetPermissions() *DocumentPermissionsDefinition { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *DocumentDefinition) GetCreatedAt() *int64 { - if o == nil { - return nil - } - return o.CreatedAt -} - -func (o *DocumentDefinition) GetUpdatedAt() *int64 { - if o == nil { - return nil - } - return o.UpdatedAt -} - -func (o *DocumentDefinition) GetUpdatedBy() *UserReferenceDefinition { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *DocumentDefinition) GetTags() []string { - if o == nil { - return nil - } - return o.Tags -} - -func (o *DocumentDefinition) GetInteractions() *DocumentInteractionsDefinition { - if o == nil { - return nil - } - return o.Interactions -} - -func (o *DocumentDefinition) GetStatus() *string { - if o == nil { - return nil - } - return o.Status -} - -func (o *DocumentDefinition) GetAdditionalUrls() []string { - if o == nil { - return nil - } - return o.AdditionalUrls -} - -func (o *DocumentDefinition) GetComments() []CommentDefinition { - if o == nil { - return nil - } - return o.Comments -} - -func (o *DocumentDefinition) GetCustomProperties() []CustomProperty { - if o == nil { - return nil - } - return o.CustomProperties -} diff --git a/tests/mockserver/internal/sdk/models/components/documentinsight.go b/tests/mockserver/internal/sdk/models/components/documentinsight.go deleted file mode 100644 index 3b304aee..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentinsight.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type DocumentInsight struct { - Document Document `json:"document"` - ViewCount *CountInfo `json:"viewCount,omitempty"` - VisitorCount *CountInfo `json:"visitorCount,omitempty"` -} - -func (o *DocumentInsight) GetDocument() Document { - if o == nil { - return Document{} - } - return o.Document -} - -func (o *DocumentInsight) GetViewCount() *CountInfo { - if o == nil { - return nil - } - return o.ViewCount -} - -func (o *DocumentInsight) GetVisitorCount() *CountInfo { - if o == nil { - return nil - } - return o.VisitorCount -} diff --git a/tests/mockserver/internal/sdk/models/components/documentinteractions.go b/tests/mockserver/internal/sdk/models/components/documentinteractions.go deleted file mode 100644 index 28bb3af0..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentinteractions.go +++ /dev/null @@ -1,75 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type DocumentInteractions struct { - // The count of comments (thread replies in the case of slack). - NumComments *int64 `json:"numComments,omitempty"` - // The count of reactions on the document. - NumReactions *int64 `json:"numReactions,omitempty"` - // To be deprecated in favor of reacts. A (potentially non-exhaustive) list of reactions for the document. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Reactions []string `json:"reactions,omitempty"` - Reacts []Reaction `json:"reacts,omitempty"` - // Describes instances of someone posting a link to this document in one of our indexed datasources. - Shares []Share `json:"shares,omitempty"` - VisitorCount *CountInfo `json:"visitorCount,omitempty"` -} - -func (d DocumentInteractions) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DocumentInteractions) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *DocumentInteractions) GetNumComments() *int64 { - if o == nil { - return nil - } - return o.NumComments -} - -func (o *DocumentInteractions) GetNumReactions() *int64 { - if o == nil { - return nil - } - return o.NumReactions -} - -func (o *DocumentInteractions) GetReactions() []string { - if o == nil { - return nil - } - return o.Reactions -} - -func (o *DocumentInteractions) GetReacts() []Reaction { - if o == nil { - return nil - } - return o.Reacts -} - -func (o *DocumentInteractions) GetShares() []Share { - if o == nil { - return nil - } - return o.Shares -} - -func (o *DocumentInteractions) GetVisitorCount() *CountInfo { - if o == nil { - return nil - } - return o.VisitorCount -} diff --git a/tests/mockserver/internal/sdk/models/components/documentinteractionsdefinition.go b/tests/mockserver/internal/sdk/models/components/documentinteractionsdefinition.go deleted file mode 100644 index f49af722..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentinteractionsdefinition.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DocumentInteractionsDefinition - describes the interactions on the document -type DocumentInteractionsDefinition struct { - NumViews *int64 `json:"numViews,omitempty"` - NumLikes *int64 `json:"numLikes,omitempty"` - NumComments *int64 `json:"numComments,omitempty"` -} - -func (o *DocumentInteractionsDefinition) GetNumViews() *int64 { - if o == nil { - return nil - } - return o.NumViews -} - -func (o *DocumentInteractionsDefinition) GetNumLikes() *int64 { - if o == nil { - return nil - } - return o.NumLikes -} - -func (o *DocumentInteractionsDefinition) GetNumComments() *int64 { - if o == nil { - return nil - } - return o.NumComments -} diff --git a/tests/mockserver/internal/sdk/models/components/documentmetadata.go b/tests/mockserver/internal/sdk/models/components/documentmetadata.go deleted file mode 100644 index b4e0fd2e..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentmetadata.go +++ /dev/null @@ -1,366 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -type DocumentMetadata struct { - Datasource *string `json:"datasource,omitempty"` - // The datasource instance from which the document was extracted. - DatasourceInstance *string `json:"datasourceInstance,omitempty"` - // The type of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue type such as Bug or Feature Request). - ObjectType *string `json:"objectType,omitempty"` - // The name of the container (higher level parent, not direct parent) of the result. Interpretation is specific to each datasource (e.g. Channels for Slack, Project for Jira). cf. parentId - Container *string `json:"container,omitempty"` - // The Glean Document ID of the container. Uniquely identifies the container. - ContainerID *string `json:"containerId,omitempty"` - // The Glean Document ID of the super container. Super container represents a broader abstraction that contains many containers. For example, whereas container might refer to a folder, super container would refer to a drive. - SuperContainerID *string `json:"superContainerId,omitempty"` - // The id of the direct parent of the result. Interpretation is specific to each datasource (e.g. parent issue for Jira). cf. container - ParentID *string `json:"parentId,omitempty"` - MimeType *string `json:"mimeType,omitempty"` - // The index-wide unique identifier. - DocumentID *string `json:"documentId,omitempty"` - // A unique identifier used to represent the document in any logging or feedback requests in place of documentId. - LoggingID *string `json:"loggingId,omitempty"` - // Hash of the Glean Document ID. - DocumentIDHash *string `json:"documentIdHash,omitempty"` - CreateTime *time.Time `json:"createTime,omitempty"` - UpdateTime *time.Time `json:"updateTime,omitempty"` - Author *Person `json:"author,omitempty"` - Owner *Person `json:"owner,omitempty"` - // A list of people mentioned in the document. - MentionedPeople []Person `json:"mentionedPeople,omitempty"` - // The level of visibility of the document as understood by our system. - Visibility *DocumentVisibility `json:"visibility,omitempty"` - // A list of components this result is associated with. Interpretation is specific to each datasource. (e.g. for Jira issues, these are [components](https://confluence.atlassian.com/jirasoftwarecloud/organizing-work-with-components-764478279.html).) - Components []string `json:"components,omitempty"` - // The status or disposition of the result. Interpretation is specific to each datasource. (e.g. for Jira issues, this is the issue status such as Done, In Progress or Will Not Fix). - Status *string `json:"status,omitempty"` - // The status category of the result. Meant to be more general than status. Interpretation is specific to each datasource. - StatusCategory *string `json:"statusCategory,omitempty"` - // A list of stars associated with this result. "Pin" is an older name. - Pins []PinDocument `json:"pins,omitempty"` - // The document priority. Interpretation is datasource specific. - Priority *string `json:"priority,omitempty"` - AssignedTo *Person `json:"assignedTo,omitempty"` - UpdatedBy *Person `json:"updatedBy,omitempty"` - // A list of tags for the document. Interpretation is datasource specific. - Labels []string `json:"labels,omitempty"` - // A list of collections that the document belongs to. - Collections []Collection `json:"collections,omitempty"` - // The user-visible datasource specific id (e.g. Salesforce case number for example, GitHub PR number). - DatasourceID *string `json:"datasourceId,omitempty"` - Interactions *DocumentInteractions `json:"interactions,omitempty"` - Verification *Verification `json:"verification,omitempty"` - ViewerInfo *ViewerInfo `json:"viewerInfo,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` - VisitCount *CountInfo `json:"visitCount,omitempty"` - // A list of shortcuts of which destination URL is for the document. - Shortcuts []Shortcut `json:"shortcuts,omitempty"` - // For file datasources like onedrive/github etc this has the path to the file - Path *string `json:"path,omitempty"` - // Custom fields specific to individual datasources - CustomData map[string]CustomDataValue `json:"customData,omitempty"` - // The document's document_category(.proto). - DocumentCategory *string `json:"documentCategory,omitempty"` - ContactPerson *Person `json:"contactPerson,omitempty"` - Thumbnail *Thumbnail `json:"thumbnail,omitempty"` - IndexStatus *IndexStatus `json:"indexStatus,omitempty"` - // A list of documents that are ancestors of this document in the hierarchy of the document's datasource, for example parent folders or containers. Ancestors can be of different types and some may not be indexed. Higher level ancestors appear earlier in the list. - Ancestors []Document `json:"ancestors,omitempty"` -} - -func (d DocumentMetadata) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DocumentMetadata) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *DocumentMetadata) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *DocumentMetadata) GetDatasourceInstance() *string { - if o == nil { - return nil - } - return o.DatasourceInstance -} - -func (o *DocumentMetadata) GetObjectType() *string { - if o == nil { - return nil - } - return o.ObjectType -} - -func (o *DocumentMetadata) GetContainer() *string { - if o == nil { - return nil - } - return o.Container -} - -func (o *DocumentMetadata) GetContainerID() *string { - if o == nil { - return nil - } - return o.ContainerID -} - -func (o *DocumentMetadata) GetSuperContainerID() *string { - if o == nil { - return nil - } - return o.SuperContainerID -} - -func (o *DocumentMetadata) GetParentID() *string { - if o == nil { - return nil - } - return o.ParentID -} - -func (o *DocumentMetadata) GetMimeType() *string { - if o == nil { - return nil - } - return o.MimeType -} - -func (o *DocumentMetadata) GetDocumentID() *string { - if o == nil { - return nil - } - return o.DocumentID -} - -func (o *DocumentMetadata) GetLoggingID() *string { - if o == nil { - return nil - } - return o.LoggingID -} - -func (o *DocumentMetadata) GetDocumentIDHash() *string { - if o == nil { - return nil - } - return o.DocumentIDHash -} - -func (o *DocumentMetadata) GetCreateTime() *time.Time { - if o == nil { - return nil - } - return o.CreateTime -} - -func (o *DocumentMetadata) GetUpdateTime() *time.Time { - if o == nil { - return nil - } - return o.UpdateTime -} - -func (o *DocumentMetadata) GetAuthor() *Person { - if o == nil { - return nil - } - return o.Author -} - -func (o *DocumentMetadata) GetOwner() *Person { - if o == nil { - return nil - } - return o.Owner -} - -func (o *DocumentMetadata) GetMentionedPeople() []Person { - if o == nil { - return nil - } - return o.MentionedPeople -} - -func (o *DocumentMetadata) GetVisibility() *DocumentVisibility { - if o == nil { - return nil - } - return o.Visibility -} - -func (o *DocumentMetadata) GetComponents() []string { - if o == nil { - return nil - } - return o.Components -} - -func (o *DocumentMetadata) GetStatus() *string { - if o == nil { - return nil - } - return o.Status -} - -func (o *DocumentMetadata) GetStatusCategory() *string { - if o == nil { - return nil - } - return o.StatusCategory -} - -func (o *DocumentMetadata) GetPins() []PinDocument { - if o == nil { - return nil - } - return o.Pins -} - -func (o *DocumentMetadata) GetPriority() *string { - if o == nil { - return nil - } - return o.Priority -} - -func (o *DocumentMetadata) GetAssignedTo() *Person { - if o == nil { - return nil - } - return o.AssignedTo -} - -func (o *DocumentMetadata) GetUpdatedBy() *Person { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *DocumentMetadata) GetLabels() []string { - if o == nil { - return nil - } - return o.Labels -} - -func (o *DocumentMetadata) GetCollections() []Collection { - if o == nil { - return nil - } - return o.Collections -} - -func (o *DocumentMetadata) GetDatasourceID() *string { - if o == nil { - return nil - } - return o.DatasourceID -} - -func (o *DocumentMetadata) GetInteractions() *DocumentInteractions { - if o == nil { - return nil - } - return o.Interactions -} - -func (o *DocumentMetadata) GetVerification() *Verification { - if o == nil { - return nil - } - return o.Verification -} - -func (o *DocumentMetadata) GetViewerInfo() *ViewerInfo { - if o == nil { - return nil - } - return o.ViewerInfo -} - -func (o *DocumentMetadata) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *DocumentMetadata) GetVisitCount() *CountInfo { - if o == nil { - return nil - } - return o.VisitCount -} - -func (o *DocumentMetadata) GetShortcuts() []Shortcut { - if o == nil { - return nil - } - return o.Shortcuts -} - -func (o *DocumentMetadata) GetPath() *string { - if o == nil { - return nil - } - return o.Path -} - -func (o *DocumentMetadata) GetCustomData() map[string]CustomDataValue { - if o == nil { - return nil - } - return o.CustomData -} - -func (o *DocumentMetadata) GetDocumentCategory() *string { - if o == nil { - return nil - } - return o.DocumentCategory -} - -func (o *DocumentMetadata) GetContactPerson() *Person { - if o == nil { - return nil - } - return o.ContactPerson -} - -func (o *DocumentMetadata) GetThumbnail() *Thumbnail { - if o == nil { - return nil - } - return o.Thumbnail -} - -func (o *DocumentMetadata) GetIndexStatus() *IndexStatus { - if o == nil { - return nil - } - return o.IndexStatus -} - -func (o *DocumentMetadata) GetAncestors() []Document { - if o == nil { - return nil - } - return o.Ancestors -} diff --git a/tests/mockserver/internal/sdk/models/components/documentorerrorunion.go b/tests/mockserver/internal/sdk/models/components/documentorerrorunion.go deleted file mode 100644 index 6b476273..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentorerrorunion.go +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "errors" - "fmt" - "mockserver/internal/sdk/utils" -) - -type DocumentOrError struct { - // The text for error, reason. - Error *string `json:"error,omitempty"` -} - -func (d DocumentOrError) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DocumentOrError) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *DocumentOrError) GetError() *string { - if o == nil { - return nil - } - return o.Error -} - -type DocumentOrErrorUnionType string - -const ( - DocumentOrErrorUnionTypeDocument DocumentOrErrorUnionType = "Document" - DocumentOrErrorUnionTypeDocumentOrError DocumentOrErrorUnionType = "DocumentOrError" -) - -type DocumentOrErrorUnion struct { - Document *Document `queryParam:"inline"` - DocumentOrError *DocumentOrError `queryParam:"inline"` - - Type DocumentOrErrorUnionType -} - -func CreateDocumentOrErrorUnionDocument(document Document) DocumentOrErrorUnion { - typ := DocumentOrErrorUnionTypeDocument - - return DocumentOrErrorUnion{ - Document: &document, - Type: typ, - } -} - -func CreateDocumentOrErrorUnionDocumentOrError(documentOrError DocumentOrError) DocumentOrErrorUnion { - typ := DocumentOrErrorUnionTypeDocumentOrError - - return DocumentOrErrorUnion{ - DocumentOrError: &documentOrError, - Type: typ, - } -} - -func (u *DocumentOrErrorUnion) UnmarshalJSON(data []byte) error { - - var document Document = Document{} - if err := utils.UnmarshalJSON(data, &document, "", true, nil); err == nil { - u.Document = &document - u.Type = DocumentOrErrorUnionTypeDocument - return nil - } - - var documentOrError DocumentOrError = DocumentOrError{} - if err := utils.UnmarshalJSON(data, &documentOrError, "", true, nil); err == nil { - u.DocumentOrError = &documentOrError - u.Type = DocumentOrErrorUnionTypeDocumentOrError - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for DocumentOrErrorUnion", string(data)) -} - -func (u DocumentOrErrorUnion) MarshalJSON() ([]byte, error) { - if u.Document != nil { - return utils.MarshalJSON(u.Document, "", true) - } - - if u.DocumentOrError != nil { - return utils.MarshalJSON(u.DocumentOrError, "", true) - } - - return nil, errors.New("could not marshal union type DocumentOrErrorUnion: all fields are null") -} diff --git a/tests/mockserver/internal/sdk/models/components/documentpermissionsdefinition.go b/tests/mockserver/internal/sdk/models/components/documentpermissionsdefinition.go deleted file mode 100644 index 75459197..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentpermissionsdefinition.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DocumentPermissionsDefinition - describes the access control details of the document -type DocumentPermissionsDefinition struct { - // List of users who can view the document - AllowedUsers []UserReferenceDefinition `json:"allowedUsers,omitempty"` - // List of groups that can view the document - AllowedGroups []string `json:"allowedGroups,omitempty"` - // List of allowed group intersections. This describes a permissions constraint of the form ((GroupA AND GroupB AND GroupC) OR (GroupX AND GroupY) OR ... - AllowedGroupIntersections []PermissionsGroupIntersectionDefinition `json:"allowedGroupIntersections,omitempty"` - // If true, then any Glean user can view the document - AllowAnonymousAccess *bool `json:"allowAnonymousAccess,omitempty"` - // If true, then any user who has an account in the datasource can view the document. - AllowAllDatasourceUsersAccess *bool `json:"allowAllDatasourceUsersAccess,omitempty"` -} - -func (o *DocumentPermissionsDefinition) GetAllowedUsers() []UserReferenceDefinition { - if o == nil { - return nil - } - return o.AllowedUsers -} - -func (o *DocumentPermissionsDefinition) GetAllowedGroups() []string { - if o == nil { - return nil - } - return o.AllowedGroups -} - -func (o *DocumentPermissionsDefinition) GetAllowedGroupIntersections() []PermissionsGroupIntersectionDefinition { - if o == nil { - return nil - } - return o.AllowedGroupIntersections -} - -func (o *DocumentPermissionsDefinition) GetAllowAnonymousAccess() *bool { - if o == nil { - return nil - } - return o.AllowAnonymousAccess -} - -func (o *DocumentPermissionsDefinition) GetAllowAllDatasourceUsersAccess() *bool { - if o == nil { - return nil - } - return o.AllowAllDatasourceUsersAccess -} diff --git a/tests/mockserver/internal/sdk/models/components/documentsection.go b/tests/mockserver/internal/sdk/models/components/documentsection.go deleted file mode 100644 index ef97fcb4..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentsection.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type DocumentSection struct { - // The title of the document section (e.g. the section header). - Title *string `json:"title,omitempty"` - // The permalink of the document section. - URL *string `json:"url,omitempty"` -} - -func (d DocumentSection) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DocumentSection) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *DocumentSection) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *DocumentSection) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} diff --git a/tests/mockserver/internal/sdk/models/components/documentspecunion.go b/tests/mockserver/internal/sdk/models/components/documentspecunion.go deleted file mode 100644 index e6206deb..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentspecunion.go +++ /dev/null @@ -1,317 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "errors" - "fmt" - "mockserver/internal/sdk/utils" -) - -// DocumentSpecUgcType2 - The type of the user generated content (UGC datasource). -type DocumentSpecUgcType2 string - -const ( - DocumentSpecUgcType2Announcements DocumentSpecUgcType2 = "ANNOUNCEMENTS" - DocumentSpecUgcType2Answers DocumentSpecUgcType2 = "ANSWERS" - DocumentSpecUgcType2Collections DocumentSpecUgcType2 = "COLLECTIONS" - DocumentSpecUgcType2Shortcuts DocumentSpecUgcType2 = "SHORTCUTS" - DocumentSpecUgcType2Chats DocumentSpecUgcType2 = "CHATS" -) - -func (e DocumentSpecUgcType2) ToPointer() *DocumentSpecUgcType2 { - return &e -} -func (e *DocumentSpecUgcType2) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ANNOUNCEMENTS": - fallthrough - case "ANSWERS": - fallthrough - case "COLLECTIONS": - fallthrough - case "SHORTCUTS": - fallthrough - case "CHATS": - *e = DocumentSpecUgcType2(v) - return nil - default: - return fmt.Errorf("invalid value for DocumentSpecUgcType2: %v", v) - } -} - -type DocumentSpec4 struct { - // The type of the user generated content (UGC datasource). - UgcType DocumentSpecUgcType2 `json:"ugcType"` - // The string id for user generated content. Used for CHATS. - UgcID string `json:"ugcId"` - // The specific type of the user generated content type. - DocType *string `json:"docType,omitempty"` -} - -func (d DocumentSpec4) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DocumentSpec4) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, []string{"ugcType", "ugcId"}); err != nil { - return err - } - return nil -} - -func (o *DocumentSpec4) GetUgcType() DocumentSpecUgcType2 { - if o == nil { - return DocumentSpecUgcType2("") - } - return o.UgcType -} - -func (o *DocumentSpec4) GetUgcID() string { - if o == nil { - return "" - } - return o.UgcID -} - -func (o *DocumentSpec4) GetDocType() *string { - if o == nil { - return nil - } - return o.DocType -} - -// DocumentSpecUgcType1 - The type of the user generated content (UGC datasource). -type DocumentSpecUgcType1 string - -const ( - DocumentSpecUgcType1Announcements DocumentSpecUgcType1 = "ANNOUNCEMENTS" - DocumentSpecUgcType1Answers DocumentSpecUgcType1 = "ANSWERS" - DocumentSpecUgcType1Collections DocumentSpecUgcType1 = "COLLECTIONS" - DocumentSpecUgcType1Shortcuts DocumentSpecUgcType1 = "SHORTCUTS" - DocumentSpecUgcType1Chats DocumentSpecUgcType1 = "CHATS" -) - -func (e DocumentSpecUgcType1) ToPointer() *DocumentSpecUgcType1 { - return &e -} -func (e *DocumentSpecUgcType1) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ANNOUNCEMENTS": - fallthrough - case "ANSWERS": - fallthrough - case "COLLECTIONS": - fallthrough - case "SHORTCUTS": - fallthrough - case "CHATS": - *e = DocumentSpecUgcType1(v) - return nil - default: - return fmt.Errorf("invalid value for DocumentSpecUgcType1: %v", v) - } -} - -type DocumentSpec3 struct { - // The type of the user generated content (UGC datasource). - UgcType DocumentSpecUgcType1 `json:"ugcType"` - // The numeric id for user generated content. Used for ANNOUNCEMENTS, ANSWERS, COLLECTIONS, SHORTCUTS. - ContentID int64 `json:"contentId"` - // The specific type of the user generated content type. - DocType *string `json:"docType,omitempty"` -} - -func (d DocumentSpec3) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DocumentSpec3) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, []string{"ugcType", "contentId"}); err != nil { - return err - } - return nil -} - -func (o *DocumentSpec3) GetUgcType() DocumentSpecUgcType1 { - if o == nil { - return DocumentSpecUgcType1("") - } - return o.UgcType -} - -func (o *DocumentSpec3) GetContentID() int64 { - if o == nil { - return 0 - } - return o.ContentID -} - -func (o *DocumentSpec3) GetDocType() *string { - if o == nil { - return nil - } - return o.DocType -} - -type DocumentSpec2 struct { - // The ID of the document. - ID string `json:"id"` -} - -func (d DocumentSpec2) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DocumentSpec2) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, []string{"id"}); err != nil { - return err - } - return nil -} - -func (o *DocumentSpec2) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -type DocumentSpec1 struct { - // The URL of the document. - URL string `json:"url"` -} - -func (d DocumentSpec1) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(d, "", false) -} - -func (d *DocumentSpec1) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &d, "", false, []string{"url"}); err != nil { - return err - } - return nil -} - -func (o *DocumentSpec1) GetURL() string { - if o == nil { - return "" - } - return o.URL -} - -type DocumentSpecUnionType string - -const ( - DocumentSpecUnionTypeDocumentSpec1 DocumentSpecUnionType = "DocumentSpec_1" - DocumentSpecUnionTypeDocumentSpec2 DocumentSpecUnionType = "DocumentSpec_2" - DocumentSpecUnionTypeDocumentSpec3 DocumentSpecUnionType = "DocumentSpec_3" - DocumentSpecUnionTypeDocumentSpec4 DocumentSpecUnionType = "DocumentSpec_4" -) - -type DocumentSpecUnion struct { - DocumentSpec1 *DocumentSpec1 `queryParam:"inline"` - DocumentSpec2 *DocumentSpec2 `queryParam:"inline"` - DocumentSpec3 *DocumentSpec3 `queryParam:"inline"` - DocumentSpec4 *DocumentSpec4 `queryParam:"inline"` - - Type DocumentSpecUnionType -} - -func CreateDocumentSpecUnionDocumentSpec1(documentSpec1 DocumentSpec1) DocumentSpecUnion { - typ := DocumentSpecUnionTypeDocumentSpec1 - - return DocumentSpecUnion{ - DocumentSpec1: &documentSpec1, - Type: typ, - } -} - -func CreateDocumentSpecUnionDocumentSpec2(documentSpec2 DocumentSpec2) DocumentSpecUnion { - typ := DocumentSpecUnionTypeDocumentSpec2 - - return DocumentSpecUnion{ - DocumentSpec2: &documentSpec2, - Type: typ, - } -} - -func CreateDocumentSpecUnionDocumentSpec3(documentSpec3 DocumentSpec3) DocumentSpecUnion { - typ := DocumentSpecUnionTypeDocumentSpec3 - - return DocumentSpecUnion{ - DocumentSpec3: &documentSpec3, - Type: typ, - } -} - -func CreateDocumentSpecUnionDocumentSpec4(documentSpec4 DocumentSpec4) DocumentSpecUnion { - typ := DocumentSpecUnionTypeDocumentSpec4 - - return DocumentSpecUnion{ - DocumentSpec4: &documentSpec4, - Type: typ, - } -} - -func (u *DocumentSpecUnion) UnmarshalJSON(data []byte) error { - - var documentSpec3 DocumentSpec3 = DocumentSpec3{} - if err := utils.UnmarshalJSON(data, &documentSpec3, "", true, nil); err == nil { - u.DocumentSpec3 = &documentSpec3 - u.Type = DocumentSpecUnionTypeDocumentSpec3 - return nil - } - - var documentSpec4 DocumentSpec4 = DocumentSpec4{} - if err := utils.UnmarshalJSON(data, &documentSpec4, "", true, nil); err == nil { - u.DocumentSpec4 = &documentSpec4 - u.Type = DocumentSpecUnionTypeDocumentSpec4 - return nil - } - - var documentSpec1 DocumentSpec1 = DocumentSpec1{} - if err := utils.UnmarshalJSON(data, &documentSpec1, "", true, nil); err == nil { - u.DocumentSpec1 = &documentSpec1 - u.Type = DocumentSpecUnionTypeDocumentSpec1 - return nil - } - - var documentSpec2 DocumentSpec2 = DocumentSpec2{} - if err := utils.UnmarshalJSON(data, &documentSpec2, "", true, nil); err == nil { - u.DocumentSpec2 = &documentSpec2 - u.Type = DocumentSpecUnionTypeDocumentSpec2 - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for DocumentSpecUnion", string(data)) -} - -func (u DocumentSpecUnion) MarshalJSON() ([]byte, error) { - if u.DocumentSpec1 != nil { - return utils.MarshalJSON(u.DocumentSpec1, "", true) - } - - if u.DocumentSpec2 != nil { - return utils.MarshalJSON(u.DocumentSpec2, "", true) - } - - if u.DocumentSpec3 != nil { - return utils.MarshalJSON(u.DocumentSpec3, "", true) - } - - if u.DocumentSpec4 != nil { - return utils.MarshalJSON(u.DocumentSpec4, "", true) - } - - return nil, errors.New("could not marshal union type DocumentSpecUnion: all fields are null") -} diff --git a/tests/mockserver/internal/sdk/models/components/documentstatusresponse.go b/tests/mockserver/internal/sdk/models/components/documentstatusresponse.go deleted file mode 100644 index 72007844..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentstatusresponse.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// DocumentStatusResponse - Describes the document status response body -type DocumentStatusResponse struct { - // Upload status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN - UploadStatus *string `json:"uploadStatus,omitempty"` - // Time of last successful upload for the document, in ISO 8601 format - LastUploadedAt *string `json:"lastUploadedAt,omitempty"` - // Indexing status, enum of NOT_INDEXED, INDEXED, STATUS_UNKNOWN - IndexingStatus *string `json:"indexingStatus,omitempty"` - // Time of last successful indexing for the document, in ISO 8601 format - LastIndexedAt *string `json:"lastIndexedAt,omitempty"` - // Permission identity status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN (Always unknown if `identityDatasourceName` is set). Document visibility may be affected status is `NOT_UPLOADED`. - PermissionIdentityStatus *string `json:"permissionIdentityStatus,omitempty"` -} - -func (o *DocumentStatusResponse) GetUploadStatus() *string { - if o == nil { - return nil - } - return o.UploadStatus -} - -func (o *DocumentStatusResponse) GetLastUploadedAt() *string { - if o == nil { - return nil - } - return o.LastUploadedAt -} - -func (o *DocumentStatusResponse) GetIndexingStatus() *string { - if o == nil { - return nil - } - return o.IndexingStatus -} - -func (o *DocumentStatusResponse) GetLastIndexedAt() *string { - if o == nil { - return nil - } - return o.LastIndexedAt -} - -func (o *DocumentStatusResponse) GetPermissionIdentityStatus() *string { - if o == nil { - return nil - } - return o.PermissionIdentityStatus -} diff --git a/tests/mockserver/internal/sdk/models/components/documentvisibility.go b/tests/mockserver/internal/sdk/models/components/documentvisibility.go deleted file mode 100644 index 3d7e72b7..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentvisibility.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// DocumentVisibility - The level of visibility of the document as understood by our system. -type DocumentVisibility string - -const ( - DocumentVisibilityPrivate DocumentVisibility = "PRIVATE" - DocumentVisibilitySpecificPeopleAndGroups DocumentVisibility = "SPECIFIC_PEOPLE_AND_GROUPS" - DocumentVisibilityDomainLink DocumentVisibility = "DOMAIN_LINK" - DocumentVisibilityDomainVisible DocumentVisibility = "DOMAIN_VISIBLE" - DocumentVisibilityPublicLink DocumentVisibility = "PUBLIC_LINK" - DocumentVisibilityPublicVisible DocumentVisibility = "PUBLIC_VISIBLE" -) - -func (e DocumentVisibility) ToPointer() *DocumentVisibility { - return &e -} -func (e *DocumentVisibility) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "PRIVATE": - fallthrough - case "SPECIFIC_PEOPLE_AND_GROUPS": - fallthrough - case "DOMAIN_LINK": - fallthrough - case "DOMAIN_VISIBLE": - fallthrough - case "PUBLIC_LINK": - fallthrough - case "PUBLIC_VISIBLE": - *e = DocumentVisibility(v) - return nil - default: - return fmt.Errorf("invalid value for DocumentVisibility: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/documentvisibilityoverride.go b/tests/mockserver/internal/sdk/models/components/documentvisibilityoverride.go deleted file mode 100644 index 5d424357..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentvisibilityoverride.go +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// DocumentVisibilityOverrideOverride - The visibility-override state of the document. -type DocumentVisibilityOverrideOverride string - -const ( - DocumentVisibilityOverrideOverrideNone DocumentVisibilityOverrideOverride = "NONE" - DocumentVisibilityOverrideOverrideHideFromAll DocumentVisibilityOverrideOverride = "HIDE_FROM_ALL" - DocumentVisibilityOverrideOverrideHideFromGroups DocumentVisibilityOverrideOverride = "HIDE_FROM_GROUPS" - DocumentVisibilityOverrideOverrideHideFromAllExceptOwner DocumentVisibilityOverrideOverride = "HIDE_FROM_ALL_EXCEPT_OWNER" -) - -func (e DocumentVisibilityOverrideOverride) ToPointer() *DocumentVisibilityOverrideOverride { - return &e -} -func (e *DocumentVisibilityOverrideOverride) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "NONE": - fallthrough - case "HIDE_FROM_ALL": - fallthrough - case "HIDE_FROM_GROUPS": - fallthrough - case "HIDE_FROM_ALL_EXCEPT_OWNER": - *e = DocumentVisibilityOverrideOverride(v) - return nil - default: - return fmt.Errorf("invalid value for DocumentVisibilityOverrideOverride: %v", v) - } -} - -type DocumentVisibilityOverride struct { - DocID *string `json:"docId,omitempty"` - // The visibility-override state of the document. - Override *DocumentVisibilityOverrideOverride `json:"override,omitempty"` -} - -func (o *DocumentVisibilityOverride) GetDocID() *string { - if o == nil { - return nil - } - return o.DocID -} - -func (o *DocumentVisibilityOverride) GetOverride() *DocumentVisibilityOverrideOverride { - if o == nil { - return nil - } - return o.Override -} diff --git a/tests/mockserver/internal/sdk/models/components/documentvisibilityupdateresult.go b/tests/mockserver/internal/sdk/models/components/documentvisibilityupdateresult.go deleted file mode 100644 index 5b76ae89..00000000 --- a/tests/mockserver/internal/sdk/models/components/documentvisibilityupdateresult.go +++ /dev/null @@ -1,70 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// DocumentVisibilityUpdateResultOverride - The visibility-override state of the document. -type DocumentVisibilityUpdateResultOverride string - -const ( - DocumentVisibilityUpdateResultOverrideNone DocumentVisibilityUpdateResultOverride = "NONE" - DocumentVisibilityUpdateResultOverrideHideFromAll DocumentVisibilityUpdateResultOverride = "HIDE_FROM_ALL" - DocumentVisibilityUpdateResultOverrideHideFromGroups DocumentVisibilityUpdateResultOverride = "HIDE_FROM_GROUPS" - DocumentVisibilityUpdateResultOverrideHideFromAllExceptOwner DocumentVisibilityUpdateResultOverride = "HIDE_FROM_ALL_EXCEPT_OWNER" -) - -func (e DocumentVisibilityUpdateResultOverride) ToPointer() *DocumentVisibilityUpdateResultOverride { - return &e -} -func (e *DocumentVisibilityUpdateResultOverride) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "NONE": - fallthrough - case "HIDE_FROM_ALL": - fallthrough - case "HIDE_FROM_GROUPS": - fallthrough - case "HIDE_FROM_ALL_EXCEPT_OWNER": - *e = DocumentVisibilityUpdateResultOverride(v) - return nil - default: - return fmt.Errorf("invalid value for DocumentVisibilityUpdateResultOverride: %v", v) - } -} - -type DocumentVisibilityUpdateResult struct { - DocID *string `json:"docId,omitempty"` - // The visibility-override state of the document. - Override *DocumentVisibilityUpdateResultOverride `json:"override,omitempty"` - // Whether this document was successfully set to its desired visibility state. - Success *bool `json:"success,omitempty"` -} - -func (o *DocumentVisibilityUpdateResult) GetDocID() *string { - if o == nil { - return nil - } - return o.DocID -} - -func (o *DocumentVisibilityUpdateResult) GetOverride() *DocumentVisibilityUpdateResultOverride { - if o == nil { - return nil - } - return o.Override -} - -func (o *DocumentVisibilityUpdateResult) GetSuccess() *bool { - if o == nil { - return nil - } - return o.Success -} diff --git a/tests/mockserver/internal/sdk/models/components/editanswerrequest.go b/tests/mockserver/internal/sdk/models/components/editanswerrequest.go deleted file mode 100644 index cf5732f1..00000000 --- a/tests/mockserver/internal/sdk/models/components/editanswerrequest.go +++ /dev/null @@ -1,170 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type EditAnswerRequestSourceType string - -const ( - EditAnswerRequestSourceTypeDocument EditAnswerRequestSourceType = "DOCUMENT" - EditAnswerRequestSourceTypeAssistant EditAnswerRequestSourceType = "ASSISTANT" -) - -func (e EditAnswerRequestSourceType) ToPointer() *EditAnswerRequestSourceType { - return &e -} -func (e *EditAnswerRequestSourceType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "DOCUMENT": - fallthrough - case "ASSISTANT": - *e = EditAnswerRequestSourceType(v) - return nil - default: - return fmt.Errorf("invalid value for EditAnswerRequestSourceType: %v", v) - } -} - -type EditAnswerRequest struct { - // The opaque ID of the Answer. - ID int64 `json:"id"` - // Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. - DocID *string `json:"docId,omitempty"` - Question *string `json:"question,omitempty"` - // Additional ways of phrasing this question. - QuestionVariations []string `json:"questionVariations,omitempty"` - // The plain text answer to the question. - BodyText *string `json:"bodyText,omitempty"` - // The parent board ID of this Answer, or 0 if it's a floating Answer. Adding Answers to Answer Boards is no longer permitted. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - BoardID *int64 `json:"boardId,omitempty"` - // Filters which restrict who should see the answer. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // A list of user roles for the answer added by the owner. - AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"` - // A list of user roles for the answer removed by the owner. - RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"` - // A list of roles for this answer explicitly granted by an owner, editor, or admin. - Roles []UserRoleSpecification `json:"roles,omitempty"` - SourceDocumentSpec *DocumentSpecUnion `json:"sourceDocumentSpec,omitempty"` - SourceType *EditAnswerRequestSourceType `json:"sourceType,omitempty"` - // IDs of Collections to which a document is added. - AddedCollections []int64 `json:"addedCollections,omitempty"` - // IDs of Collections from which a document is removed. - RemovedCollections []int64 `json:"removedCollections,omitempty"` - CombinedAnswerText *StructuredTextMutableProperties `json:"combinedAnswerText,omitempty"` -} - -func (o *EditAnswerRequest) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} - -func (o *EditAnswerRequest) GetDocID() *string { - if o == nil { - return nil - } - return o.DocID -} - -func (o *EditAnswerRequest) GetQuestion() *string { - if o == nil { - return nil - } - return o.Question -} - -func (o *EditAnswerRequest) GetQuestionVariations() []string { - if o == nil { - return nil - } - return o.QuestionVariations -} - -func (o *EditAnswerRequest) GetBodyText() *string { - if o == nil { - return nil - } - return o.BodyText -} - -func (o *EditAnswerRequest) GetBoardID() *int64 { - if o == nil { - return nil - } - return o.BoardID -} - -func (o *EditAnswerRequest) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *EditAnswerRequest) GetAddedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.AddedRoles -} - -func (o *EditAnswerRequest) GetRemovedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.RemovedRoles -} - -func (o *EditAnswerRequest) GetRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.Roles -} - -func (o *EditAnswerRequest) GetSourceDocumentSpec() *DocumentSpecUnion { - if o == nil { - return nil - } - return o.SourceDocumentSpec -} - -func (o *EditAnswerRequest) GetSourceType() *EditAnswerRequestSourceType { - if o == nil { - return nil - } - return o.SourceType -} - -func (o *EditAnswerRequest) GetAddedCollections() []int64 { - if o == nil { - return nil - } - return o.AddedCollections -} - -func (o *EditAnswerRequest) GetRemovedCollections() []int64 { - if o == nil { - return nil - } - return o.RemovedCollections -} - -func (o *EditAnswerRequest) GetCombinedAnswerText() *StructuredTextMutableProperties { - if o == nil { - return nil - } - return o.CombinedAnswerText -} diff --git a/tests/mockserver/internal/sdk/models/components/editcollectionitemrequest.go b/tests/mockserver/internal/sdk/models/components/editcollectionitemrequest.go deleted file mode 100644 index d43b56a7..00000000 --- a/tests/mockserver/internal/sdk/models/components/editcollectionitemrequest.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type EditCollectionItemRequest struct { - // The optional name of the Collection item. - Name *string `json:"name,omitempty"` - // A helpful description of why this CollectionItem is in the Collection that it's in. - Description *string `json:"description,omitempty"` - // The emoji icon for this CollectionItem. Only used for Text type items. - Icon *string `json:"icon,omitempty"` - // The ID of the Collection to edit CollectionItems in. - CollectionID int64 `json:"collectionId"` - // The ID of the CollectionItem to edit. - ItemID string `json:"itemId"` -} - -func (o *EditCollectionItemRequest) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *EditCollectionItemRequest) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *EditCollectionItemRequest) GetIcon() *string { - if o == nil { - return nil - } - return o.Icon -} - -func (o *EditCollectionItemRequest) GetCollectionID() int64 { - if o == nil { - return 0 - } - return o.CollectionID -} - -func (o *EditCollectionItemRequest) GetItemID() string { - if o == nil { - return "" - } - return o.ItemID -} diff --git a/tests/mockserver/internal/sdk/models/components/editcollectionitemresponse.go b/tests/mockserver/internal/sdk/models/components/editcollectionitemresponse.go deleted file mode 100644 index 2d6a42bf..00000000 --- a/tests/mockserver/internal/sdk/models/components/editcollectionitemresponse.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type EditCollectionItemResponse struct { - Collection *Collection `json:"collection,omitempty"` -} - -func (o *EditCollectionItemResponse) GetCollection() *Collection { - if o == nil { - return nil - } - return o.Collection -} diff --git a/tests/mockserver/internal/sdk/models/components/editcollectionrequest.go b/tests/mockserver/internal/sdk/models/components/editcollectionrequest.go deleted file mode 100644 index ed60e373..00000000 --- a/tests/mockserver/internal/sdk/models/components/editcollectionrequest.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type EditCollectionRequest struct { - // The unique name of the Collection. - Name string `json:"name"` - // A brief summary of the Collection's contents. - Description *string `json:"description,omitempty"` - // A list of added user roles for the Collection. - AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"` - // A list of removed user roles for the Collection. - RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"` - // Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // The emoji icon of this Collection. - Icon *string `json:"icon,omitempty"` - // Indicates whether edits are allowed for everyone or only admins. - AdminLocked *bool `json:"adminLocked,omitempty"` - // The parent of this Collection, or 0 if it's a top-level Collection. - ParentID *int64 `json:"parentId,omitempty"` - Thumbnail *Thumbnail `json:"thumbnail,omitempty"` - // The datasource type this Collection can hold. - AllowedDatasource *string `json:"allowedDatasource,omitempty"` - // The ID of the Collection to modify. - ID int64 `json:"id"` -} - -func (o *EditCollectionRequest) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *EditCollectionRequest) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *EditCollectionRequest) GetAddedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.AddedRoles -} - -func (o *EditCollectionRequest) GetRemovedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.RemovedRoles -} - -func (o *EditCollectionRequest) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *EditCollectionRequest) GetIcon() *string { - if o == nil { - return nil - } - return o.Icon -} - -func (o *EditCollectionRequest) GetAdminLocked() *bool { - if o == nil { - return nil - } - return o.AdminLocked -} - -func (o *EditCollectionRequest) GetParentID() *int64 { - if o == nil { - return nil - } - return o.ParentID -} - -func (o *EditCollectionRequest) GetThumbnail() *Thumbnail { - if o == nil { - return nil - } - return o.Thumbnail -} - -func (o *EditCollectionRequest) GetAllowedDatasource() *string { - if o == nil { - return nil - } - return o.AllowedDatasource -} - -func (o *EditCollectionRequest) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/editcollectionresponse.go b/tests/mockserver/internal/sdk/models/components/editcollectionresponse.go deleted file mode 100644 index ba96dfa1..00000000 --- a/tests/mockserver/internal/sdk/models/components/editcollectionresponse.go +++ /dev/null @@ -1,289 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -type EditCollectionResponseErrorCode string - -const ( - EditCollectionResponseErrorCodeNameExists EditCollectionResponseErrorCode = "NAME_EXISTS" - EditCollectionResponseErrorCodeNotFound EditCollectionResponseErrorCode = "NOT_FOUND" - EditCollectionResponseErrorCodeCollectionPinned EditCollectionResponseErrorCode = "COLLECTION_PINNED" - EditCollectionResponseErrorCodeConcurrentHierarchyEdit EditCollectionResponseErrorCode = "CONCURRENT_HIERARCHY_EDIT" - EditCollectionResponseErrorCodeHeightViolation EditCollectionResponseErrorCode = "HEIGHT_VIOLATION" - EditCollectionResponseErrorCodeWidthViolation EditCollectionResponseErrorCode = "WIDTH_VIOLATION" - EditCollectionResponseErrorCodeNoPermissions EditCollectionResponseErrorCode = "NO_PERMISSIONS" -) - -func (e EditCollectionResponseErrorCode) ToPointer() *EditCollectionResponseErrorCode { - return &e -} -func (e *EditCollectionResponseErrorCode) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "NAME_EXISTS": - fallthrough - case "NOT_FOUND": - fallthrough - case "COLLECTION_PINNED": - fallthrough - case "CONCURRENT_HIERARCHY_EDIT": - fallthrough - case "HEIGHT_VIOLATION": - fallthrough - case "WIDTH_VIOLATION": - fallthrough - case "NO_PERMISSIONS": - *e = EditCollectionResponseErrorCode(v) - return nil - default: - return fmt.Errorf("invalid value for EditCollectionResponseErrorCode: %v", v) - } -} - -type EditCollectionResponse struct { - // The unique name of the Collection. - Name string `json:"name"` - // A brief summary of the Collection's contents. - Description string `json:"description"` - // A list of added user roles for the Collection. - AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"` - // A list of removed user roles for the Collection. - RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"` - // Filters which restrict who should see this Collection. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // The emoji icon of this Collection. - Icon *string `json:"icon,omitempty"` - // Indicates whether edits are allowed for everyone or only admins. - AdminLocked *bool `json:"adminLocked,omitempty"` - // The parent of this Collection, or 0 if it's a top-level Collection. - ParentID *int64 `json:"parentId,omitempty"` - Thumbnail *Thumbnail `json:"thumbnail,omitempty"` - // The datasource type this Collection can hold. - AllowedDatasource *string `json:"allowedDatasource,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` - // The unique ID of the Collection. - ID int64 `json:"id"` - CreateTime *time.Time `json:"createTime,omitempty"` - UpdateTime *time.Time `json:"updateTime,omitempty"` - Creator *Person `json:"creator,omitempty"` - UpdatedBy *Person `json:"updatedBy,omitempty"` - // The number of items currently in the Collection. Separated from the actual items so we can grab the count without items. - ItemCount *int64 `json:"itemCount,omitempty"` - // The number of children Collections. Separated from the actual children so we can grab the count without children. - ChildCount *int64 `json:"childCount,omitempty"` - // The items in this Collection. - Items []CollectionItem `json:"items,omitempty"` - PinMetadata *CollectionPinnedMetadata `json:"pinMetadata,omitempty"` - // The names of the shortcuts (Go Links) that point to this Collection. - Shortcuts []string `json:"shortcuts,omitempty"` - // The children Collections of this Collection. - Children []Collection `json:"children,omitempty"` - // A list of user roles for the Collection. - Roles []UserRoleSpecification `json:"roles,omitempty"` - ErrorCode EditCollectionResponseErrorCode `json:"errorCode"` - Collection *Collection `json:"collection,omitempty"` - Error *CollectionError `json:"error,omitempty"` -} - -func (e EditCollectionResponse) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) -} - -func (e *EditCollectionResponse) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, []string{"name", "description", "id", "errorCode"}); err != nil { - return err - } - return nil -} - -func (o *EditCollectionResponse) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *EditCollectionResponse) GetDescription() string { - if o == nil { - return "" - } - return o.Description -} - -func (o *EditCollectionResponse) GetAddedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.AddedRoles -} - -func (o *EditCollectionResponse) GetRemovedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.RemovedRoles -} - -func (o *EditCollectionResponse) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *EditCollectionResponse) GetIcon() *string { - if o == nil { - return nil - } - return o.Icon -} - -func (o *EditCollectionResponse) GetAdminLocked() *bool { - if o == nil { - return nil - } - return o.AdminLocked -} - -func (o *EditCollectionResponse) GetParentID() *int64 { - if o == nil { - return nil - } - return o.ParentID -} - -func (o *EditCollectionResponse) GetThumbnail() *Thumbnail { - if o == nil { - return nil - } - return o.Thumbnail -} - -func (o *EditCollectionResponse) GetAllowedDatasource() *string { - if o == nil { - return nil - } - return o.AllowedDatasource -} - -func (o *EditCollectionResponse) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *EditCollectionResponse) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} - -func (o *EditCollectionResponse) GetCreateTime() *time.Time { - if o == nil { - return nil - } - return o.CreateTime -} - -func (o *EditCollectionResponse) GetUpdateTime() *time.Time { - if o == nil { - return nil - } - return o.UpdateTime -} - -func (o *EditCollectionResponse) GetCreator() *Person { - if o == nil { - return nil - } - return o.Creator -} - -func (o *EditCollectionResponse) GetUpdatedBy() *Person { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *EditCollectionResponse) GetItemCount() *int64 { - if o == nil { - return nil - } - return o.ItemCount -} - -func (o *EditCollectionResponse) GetChildCount() *int64 { - if o == nil { - return nil - } - return o.ChildCount -} - -func (o *EditCollectionResponse) GetItems() []CollectionItem { - if o == nil { - return nil - } - return o.Items -} - -func (o *EditCollectionResponse) GetPinMetadata() *CollectionPinnedMetadata { - if o == nil { - return nil - } - return o.PinMetadata -} - -func (o *EditCollectionResponse) GetShortcuts() []string { - if o == nil { - return nil - } - return o.Shortcuts -} - -func (o *EditCollectionResponse) GetChildren() []Collection { - if o == nil { - return nil - } - return o.Children -} - -func (o *EditCollectionResponse) GetRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.Roles -} - -func (o *EditCollectionResponse) GetErrorCode() EditCollectionResponseErrorCode { - if o == nil { - return EditCollectionResponseErrorCode("") - } - return o.ErrorCode -} - -func (o *EditCollectionResponse) GetCollection() *Collection { - if o == nil { - return nil - } - return o.Collection -} - -func (o *EditCollectionResponse) GetError() *CollectionError { - if o == nil { - return nil - } - return o.Error -} diff --git a/tests/mockserver/internal/sdk/models/components/editpinrequest.go b/tests/mockserver/internal/sdk/models/components/editpinrequest.go deleted file mode 100644 index ab648e15..00000000 --- a/tests/mockserver/internal/sdk/models/components/editpinrequest.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type EditPinRequest struct { - // The query strings for which the pinned result will show. - Queries []string `json:"queries,omitempty"` - // Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // The opaque id of the pin to be edited. - ID *string `json:"id,omitempty"` -} - -func (o *EditPinRequest) GetQueries() []string { - if o == nil { - return nil - } - return o.Queries -} - -func (o *EditPinRequest) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *EditPinRequest) GetID() *string { - if o == nil { - return nil - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/employeeinfodefinition.go b/tests/mockserver/internal/sdk/models/components/employeeinfodefinition.go deleted file mode 100644 index d74dd36f..00000000 --- a/tests/mockserver/internal/sdk/models/components/employeeinfodefinition.go +++ /dev/null @@ -1,272 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" -) - -// EmployeeInfoDefinition - Describes employee info -type EmployeeInfoDefinition struct { - // The employee's email - Email string `json:"email"` - // The first name of the employee. **Note**: The value cannot be empty - // - FirstName *string `json:"firstName,omitempty"` - // The last name of the employee. **Note**: The value cannot be empty - // - LastName *string `json:"lastName,omitempty"` - // The preferred name or nickname of the employee - PreferredName *string `json:"preferredName,omitempty"` - // **[Advanced]** A unique universal internal identifier for the employee. This is solely used for understanding manager relationships along with `managerId`. - // - ID *string `json:"id,omitempty"` - // The employee's phone number. - PhoneNumber *string `json:"phoneNumber,omitempty"` - // The employee's location (city/office name etc). - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Location *string `json:"location,omitempty"` - // Detailed location with information about country, state, city etc. - StructuredLocation *StructuredLocation `json:"structuredLocation,omitempty"` - // The employee's role title. - Title *string `json:"title,omitempty"` - // The employee's profile pic - PhotoURL *string `json:"photoUrl,omitempty"` - // Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. - BusinessUnit *string `json:"businessUnit,omitempty"` - // An organizational unit where everyone has a similar task, e.g. `Engineering`. - Department string `json:"department"` - // The datasource profiles of the employee, e.g. `Slack`,`Github`. - DatasourceProfiles []DatasourceProfile `json:"datasourceProfiles,omitempty"` - // Info about the employee's team(s) - Teams []EmployeeTeamInfo `json:"teams,omitempty"` - // The date when the employee started - StartDate *types.Date `json:"startDate,omitempty"` - // If a former employee, the last date of employment. - EndDate *types.Date `json:"endDate,omitempty"` - // Short biography or mission statement of the employee. - Bio *string `json:"bio,omitempty"` - // She/her, He/his or other pronoun. - Pronoun *string `json:"pronoun,omitempty"` - // Other names associated with the employee. - AlsoKnownAs []string `json:"alsoKnownAs,omitempty"` - // Link to internal company person profile. - ProfileURL *string `json:"profileUrl,omitempty"` - // List of social network profiles. - SocialNetworks []SocialNetworkDefinition `json:"socialNetworks,omitempty"` - // The email of the employee's manager - ManagerEmail *string `json:"managerEmail,omitempty"` - // **[Advanced]** A unique universal internal identifier for the employee's manager. This is solely used in conjunction with `id`. - // - ManagerID *string `json:"managerId,omitempty"` - // The type of the employee, an enum of `FULL_TIME`, `CONTRACTOR`, `NON_EMPLOYEE` - Type *string `default:"FULL_TIME" json:"type"` - // List of unidirectional relationships with other employees. E.g. this employee (`A`) is a CHIEF_OF_STAFF to another employee (`B`); or this employee (`A`) is an EXECUTIVE_ASSISTANT of another employee (`C`). The mapping should be attached to `A`'s profile. - Relationships []EntityRelationship `json:"relationships,omitempty"` - // The status of the employee, an enum of `CURRENT`, `FUTURE`, `EX` - Status *string `default:"CURRENT" json:"status"` - // List of additional fields with more information about the employee. - AdditionalFields []AdditionalFieldDefinition `json:"additionalFields,omitempty"` -} - -func (e EmployeeInfoDefinition) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) -} - -func (e *EmployeeInfoDefinition) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, []string{"email", "department"}); err != nil { - return err - } - return nil -} - -func (o *EmployeeInfoDefinition) GetEmail() string { - if o == nil { - return "" - } - return o.Email -} - -func (o *EmployeeInfoDefinition) GetFirstName() *string { - if o == nil { - return nil - } - return o.FirstName -} - -func (o *EmployeeInfoDefinition) GetLastName() *string { - if o == nil { - return nil - } - return o.LastName -} - -func (o *EmployeeInfoDefinition) GetPreferredName() *string { - if o == nil { - return nil - } - return o.PreferredName -} - -func (o *EmployeeInfoDefinition) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *EmployeeInfoDefinition) GetPhoneNumber() *string { - if o == nil { - return nil - } - return o.PhoneNumber -} - -func (o *EmployeeInfoDefinition) GetLocation() *string { - if o == nil { - return nil - } - return o.Location -} - -func (o *EmployeeInfoDefinition) GetStructuredLocation() *StructuredLocation { - if o == nil { - return nil - } - return o.StructuredLocation -} - -func (o *EmployeeInfoDefinition) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *EmployeeInfoDefinition) GetPhotoURL() *string { - if o == nil { - return nil - } - return o.PhotoURL -} - -func (o *EmployeeInfoDefinition) GetBusinessUnit() *string { - if o == nil { - return nil - } - return o.BusinessUnit -} - -func (o *EmployeeInfoDefinition) GetDepartment() string { - if o == nil { - return "" - } - return o.Department -} - -func (o *EmployeeInfoDefinition) GetDatasourceProfiles() []DatasourceProfile { - if o == nil { - return nil - } - return o.DatasourceProfiles -} - -func (o *EmployeeInfoDefinition) GetTeams() []EmployeeTeamInfo { - if o == nil { - return nil - } - return o.Teams -} - -func (o *EmployeeInfoDefinition) GetStartDate() *types.Date { - if o == nil { - return nil - } - return o.StartDate -} - -func (o *EmployeeInfoDefinition) GetEndDate() *types.Date { - if o == nil { - return nil - } - return o.EndDate -} - -func (o *EmployeeInfoDefinition) GetBio() *string { - if o == nil { - return nil - } - return o.Bio -} - -func (o *EmployeeInfoDefinition) GetPronoun() *string { - if o == nil { - return nil - } - return o.Pronoun -} - -func (o *EmployeeInfoDefinition) GetAlsoKnownAs() []string { - if o == nil { - return nil - } - return o.AlsoKnownAs -} - -func (o *EmployeeInfoDefinition) GetProfileURL() *string { - if o == nil { - return nil - } - return o.ProfileURL -} - -func (o *EmployeeInfoDefinition) GetSocialNetworks() []SocialNetworkDefinition { - if o == nil { - return nil - } - return o.SocialNetworks -} - -func (o *EmployeeInfoDefinition) GetManagerEmail() *string { - if o == nil { - return nil - } - return o.ManagerEmail -} - -func (o *EmployeeInfoDefinition) GetManagerID() *string { - if o == nil { - return nil - } - return o.ManagerID -} - -func (o *EmployeeInfoDefinition) GetType() *string { - if o == nil { - return nil - } - return o.Type -} - -func (o *EmployeeInfoDefinition) GetRelationships() []EntityRelationship { - if o == nil { - return nil - } - return o.Relationships -} - -func (o *EmployeeInfoDefinition) GetStatus() *string { - if o == nil { - return nil - } - return o.Status -} - -func (o *EmployeeInfoDefinition) GetAdditionalFields() []AdditionalFieldDefinition { - if o == nil { - return nil - } - return o.AdditionalFields -} diff --git a/tests/mockserver/internal/sdk/models/components/employeeteaminfo.go b/tests/mockserver/internal/sdk/models/components/employeeteaminfo.go deleted file mode 100644 index dd50fe0e..00000000 --- a/tests/mockserver/internal/sdk/models/components/employeeteaminfo.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// EmployeeTeamInfo - Information about which team an employee belongs to -type EmployeeTeamInfo struct { - // unique identifier for this team - ID *string `json:"id,omitempty"` - // Team name - Name *string `json:"name,omitempty"` - // Link to internal company team page - URL *string `json:"url,omitempty"` -} - -func (o *EmployeeTeamInfo) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *EmployeeTeamInfo) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *EmployeeTeamInfo) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} diff --git a/tests/mockserver/internal/sdk/models/components/entitiessortorder.go b/tests/mockserver/internal/sdk/models/components/entitiessortorder.go deleted file mode 100644 index 6888c129..00000000 --- a/tests/mockserver/internal/sdk/models/components/entitiessortorder.go +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// EntitiesSortOrder - Different ways of sorting entities -type EntitiesSortOrder string - -const ( - EntitiesSortOrderEntityName EntitiesSortOrder = "ENTITY_NAME" - EntitiesSortOrderFirstName EntitiesSortOrder = "FIRST_NAME" - EntitiesSortOrderLastName EntitiesSortOrder = "LAST_NAME" - EntitiesSortOrderOrgSizeCount EntitiesSortOrder = "ORG_SIZE_COUNT" - EntitiesSortOrderStartDate EntitiesSortOrder = "START_DATE" - EntitiesSortOrderTeamSize EntitiesSortOrder = "TEAM_SIZE" - EntitiesSortOrderRelevance EntitiesSortOrder = "RELEVANCE" -) - -func (e EntitiesSortOrder) ToPointer() *EntitiesSortOrder { - return &e -} -func (e *EntitiesSortOrder) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ENTITY_NAME": - fallthrough - case "FIRST_NAME": - fallthrough - case "LAST_NAME": - fallthrough - case "ORG_SIZE_COUNT": - fallthrough - case "START_DATE": - fallthrough - case "TEAM_SIZE": - fallthrough - case "RELEVANCE": - *e = EntitiesSortOrder(v) - return nil - default: - return fmt.Errorf("invalid value for EntitiesSortOrder: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/entityrelationship.go b/tests/mockserver/internal/sdk/models/components/entityrelationship.go deleted file mode 100644 index fee77670..00000000 --- a/tests/mockserver/internal/sdk/models/components/entityrelationship.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// EntityRelationship - Describes a relationship edge between a source and destination entity -type EntityRelationship struct { - // The title or type of relationship. Currently an enum of `CHIEF_OF_STAFF`, `EXECUTIVE_ASSISTANT` - Name string `json:"name"` - // Email of the person with whom the relationship exists. Per the example above, either `B` or `C`'s email depending on the relationship. - Email string `json:"email"` -} - -func (o *EntityRelationship) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *EntityRelationship) GetEmail() string { - if o == nil { - return "" - } - return o.Email -} diff --git a/tests/mockserver/internal/sdk/models/components/entitytype.go b/tests/mockserver/internal/sdk/models/components/entitytype.go deleted file mode 100644 index 18fae8c8..00000000 --- a/tests/mockserver/internal/sdk/models/components/entitytype.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// EntityType - The type of entity. -type EntityType string - -const ( - EntityTypePerson EntityType = "PERSON" - EntityTypeProject EntityType = "PROJECT" - EntityTypeCustomer EntityType = "CUSTOMER" -) - -func (e EntityType) ToPointer() *EntityType { - return &e -} -func (e *EntityType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "PERSON": - fallthrough - case "PROJECT": - fallthrough - case "CUSTOMER": - *e = EntityType(v) - return nil - default: - return fmt.Errorf("invalid value for EntityType: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/errormessage.go b/tests/mockserver/internal/sdk/models/components/errormessage.go deleted file mode 100644 index 053c085d..00000000 --- a/tests/mockserver/internal/sdk/models/components/errormessage.go +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ErrorMessage struct { - // The datasource this message relates to. - Source *string `json:"source,omitempty"` - ErrorMessage *string `json:"errorMessage,omitempty"` -} - -func (o *ErrorMessage) GetSource() *string { - if o == nil { - return nil - } - return o.Source -} - -func (o *ErrorMessage) GetErrorMessage() *string { - if o == nil { - return nil - } - return o.ErrorMessage -} diff --git a/tests/mockserver/internal/sdk/models/components/eventclassification.go b/tests/mockserver/internal/sdk/models/components/eventclassification.go deleted file mode 100644 index 99367087..00000000 --- a/tests/mockserver/internal/sdk/models/components/eventclassification.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// EventClassification - A generated classification of a given event. -type EventClassification struct { - // The name for a generated classification of an event. - Name *EventClassificationName `json:"name,omitempty"` - Strategies []EventStrategyName `json:"strategies,omitempty"` -} - -func (o *EventClassification) GetName() *EventClassificationName { - if o == nil { - return nil - } - return o.Name -} - -func (o *EventClassification) GetStrategies() []EventStrategyName { - if o == nil { - return nil - } - return o.Strategies -} diff --git a/tests/mockserver/internal/sdk/models/components/eventclassificationname.go b/tests/mockserver/internal/sdk/models/components/eventclassificationname.go deleted file mode 100644 index 2971f669..00000000 --- a/tests/mockserver/internal/sdk/models/components/eventclassificationname.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// EventClassificationName - The name for a generated classification of an event. -type EventClassificationName string - -const ( - EventClassificationNameExternalEvent EventClassificationName = "External Event" -) - -func (e EventClassificationName) ToPointer() *EventClassificationName { - return &e -} -func (e *EventClassificationName) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "External Event": - *e = EventClassificationName(v) - return nil - default: - return fmt.Errorf("invalid value for EventClassificationName: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/eventstrategyname.go b/tests/mockserver/internal/sdk/models/components/eventstrategyname.go deleted file mode 100644 index fbbce772..00000000 --- a/tests/mockserver/internal/sdk/models/components/eventstrategyname.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// EventStrategyName - The name of method used to surface relevant data for a given calendar event. -type EventStrategyName string - -const ( - EventStrategyNameCustomerCard EventStrategyName = "customerCard" - EventStrategyNameNews EventStrategyName = "news" - EventStrategyNameCall EventStrategyName = "call" - EventStrategyNameEmail EventStrategyName = "email" - EventStrategyNameMeetingNotes EventStrategyName = "meetingNotes" - EventStrategyNameLinkedIn EventStrategyName = "linkedIn" - EventStrategyNameRelevantDocuments EventStrategyName = "relevantDocuments" - EventStrategyNameChatFollowUps EventStrategyName = "chatFollowUps" - EventStrategyNameConversations EventStrategyName = "conversations" -) - -func (e EventStrategyName) ToPointer() *EventStrategyName { - return &e -} -func (e *EventStrategyName) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "customerCard": - fallthrough - case "news": - fallthrough - case "call": - fallthrough - case "email": - fallthrough - case "meetingNotes": - fallthrough - case "linkedIn": - fallthrough - case "relevantDocuments": - fallthrough - case "chatFollowUps": - fallthrough - case "conversations": - *e = EventStrategyName(v) - return nil - default: - return fmt.Errorf("invalid value for EventStrategyName: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/externalsharingoptions.go b/tests/mockserver/internal/sdk/models/components/externalsharingoptions.go deleted file mode 100644 index 0d0a7b9c..00000000 --- a/tests/mockserver/internal/sdk/models/components/externalsharingoptions.go +++ /dev/null @@ -1,89 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ExternalSharingOptions - Controls how "shared" a document must be to get picked for scans. -// -// Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. -type ExternalSharingOptions struct { - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Enabled *bool `json:"enabled,omitempty"` - // The minimum number of users the document is shared with. - Threshold *int64 `json:"threshold,omitempty"` - // Documents will be filtered based on how many people have access to it. - ThresholdEnabled *bool `json:"thresholdEnabled,omitempty"` - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - AnyoneWithLinkEnabled *bool `json:"anyoneWithLinkEnabled,omitempty"` - // Only users within the organization can access the document. - AnyoneInternalEnabled *bool `json:"anyoneInternalEnabled,omitempty"` - // Anyone on the internet can access the document. - AnonymousAccessEnabled *bool `json:"anonymousAccessEnabled,omitempty"` - // Enable user access check - UserAccessEnabled *bool `json:"userAccessEnabled,omitempty"` - // Any one of the specified users can access the document. - UserIds []string `json:"userIds,omitempty"` - DomainAccessEnabled *bool `json:"domainAccessEnabled,omitempty"` -} - -func (o *ExternalSharingOptions) GetEnabled() *bool { - if o == nil { - return nil - } - return o.Enabled -} - -func (o *ExternalSharingOptions) GetThreshold() *int64 { - if o == nil { - return nil - } - return o.Threshold -} - -func (o *ExternalSharingOptions) GetThresholdEnabled() *bool { - if o == nil { - return nil - } - return o.ThresholdEnabled -} - -func (o *ExternalSharingOptions) GetAnyoneWithLinkEnabled() *bool { - if o == nil { - return nil - } - return o.AnyoneWithLinkEnabled -} - -func (o *ExternalSharingOptions) GetAnyoneInternalEnabled() *bool { - if o == nil { - return nil - } - return o.AnyoneInternalEnabled -} - -func (o *ExternalSharingOptions) GetAnonymousAccessEnabled() *bool { - if o == nil { - return nil - } - return o.AnonymousAccessEnabled -} - -func (o *ExternalSharingOptions) GetUserAccessEnabled() *bool { - if o == nil { - return nil - } - return o.UserAccessEnabled -} - -func (o *ExternalSharingOptions) GetUserIds() []string { - if o == nil { - return nil - } - return o.UserIds -} - -func (o *ExternalSharingOptions) GetDomainAccessEnabled() *bool { - if o == nil { - return nil - } - return o.DomainAccessEnabled -} diff --git a/tests/mockserver/internal/sdk/models/components/externalshortcut.go b/tests/mockserver/internal/sdk/models/components/externalshortcut.go deleted file mode 100644 index 24eee619..00000000 --- a/tests/mockserver/internal/sdk/models/components/externalshortcut.go +++ /dev/null @@ -1,105 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ExternalShortcut struct { - // link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` and the shortened URL is `go/abc`, then `abc` is the inputAlias. - InputAlias string `json:"inputAlias"` - // A short, plain text blurb to help people understand the intent of the shortcut. - Description *string `json:"description,omitempty"` - // destination URL for the shortcut. - DestinationURL string `json:"destinationUrl"` - // Email of the user who created this shortcut. - CreatedBy string `json:"createdBy"` - // The time the shortcut was created in epoch seconds. - CreateTime *int64 `json:"createTime,omitempty"` - // Email of the user who last updated this shortcut. - UpdatedBy *string `json:"updatedBy,omitempty"` - // The time the shortcut was updated in epoch seconds. - UpdateTime *int64 `json:"updateTime,omitempty"` - // Title of the golink - Title *string `json:"title,omitempty"` - // The URL from which the user is then redirected to the destination URL. - IntermediateURL string `json:"intermediateUrl"` - // decayed visits score for ranking - DecayedVisitScore *float64 `json:"decayedVisitScore,omitempty"` - // The URL using which the user can access the edit page of the shortcut. - EditURL *string `json:"editUrl,omitempty"` -} - -func (o *ExternalShortcut) GetInputAlias() string { - if o == nil { - return "" - } - return o.InputAlias -} - -func (o *ExternalShortcut) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *ExternalShortcut) GetDestinationURL() string { - if o == nil { - return "" - } - return o.DestinationURL -} - -func (o *ExternalShortcut) GetCreatedBy() string { - if o == nil { - return "" - } - return o.CreatedBy -} - -func (o *ExternalShortcut) GetCreateTime() *int64 { - if o == nil { - return nil - } - return o.CreateTime -} - -func (o *ExternalShortcut) GetUpdatedBy() *string { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *ExternalShortcut) GetUpdateTime() *int64 { - if o == nil { - return nil - } - return o.UpdateTime -} - -func (o *ExternalShortcut) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *ExternalShortcut) GetIntermediateURL() string { - if o == nil { - return "" - } - return o.IntermediateURL -} - -func (o *ExternalShortcut) GetDecayedVisitScore() *float64 { - if o == nil { - return nil - } - return o.DecayedVisitScore -} - -func (o *ExternalShortcut) GetEditURL() *string { - if o == nil { - return nil - } - return o.EditURL -} diff --git a/tests/mockserver/internal/sdk/models/components/extractedqna.go b/tests/mockserver/internal/sdk/models/components/extractedqna.go deleted file mode 100644 index 6de2c2b3..00000000 --- a/tests/mockserver/internal/sdk/models/components/extractedqna.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type ExtractedQnA struct { - // Heading text that was matched to produce this result. - Heading *string `json:"heading,omitempty"` - // Question text that was matched to produce this result. - Question *string `json:"question,omitempty"` - QuestionResult *SearchResult `json:"questionResult,omitempty"` -} - -func (e ExtractedQnA) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(e, "", false) -} - -func (e *ExtractedQnA) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &e, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *ExtractedQnA) GetHeading() *string { - if o == nil { - return nil - } - return o.Heading -} - -func (o *ExtractedQnA) GetQuestion() *string { - if o == nil { - return nil - } - return o.Question -} - -func (o *ExtractedQnA) GetQuestionResult() *SearchResult { - if o == nil { - return nil - } - return o.QuestionResult -} diff --git a/tests/mockserver/internal/sdk/models/components/facetbucket.go b/tests/mockserver/internal/sdk/models/components/facetbucket.go deleted file mode 100644 index bc1861d2..00000000 --- a/tests/mockserver/internal/sdk/models/components/facetbucket.go +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type FacetBucket struct { - // Estimated number of results in this facet. - Count *int64 `json:"count,omitempty"` - // The datasource the value belongs to. This will be used by the all tab to show types across all datasources. - Datasource *string `json:"datasource,omitempty"` - // Estimated percentage of results in this facet. - Percentage *int64 `json:"percentage,omitempty"` - Value *FacetValue `json:"value,omitempty"` -} - -func (o *FacetBucket) GetCount() *int64 { - if o == nil { - return nil - } - return o.Count -} - -func (o *FacetBucket) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *FacetBucket) GetPercentage() *int64 { - if o == nil { - return nil - } - return o.Percentage -} - -func (o *FacetBucket) GetValue() *FacetValue { - if o == nil { - return nil - } - return o.Value -} diff --git a/tests/mockserver/internal/sdk/models/components/facetbucketfilter.go b/tests/mockserver/internal/sdk/models/components/facetbucketfilter.go deleted file mode 100644 index eafb07db..00000000 --- a/tests/mockserver/internal/sdk/models/components/facetbucketfilter.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type FacetBucketFilter struct { - // The facet whose buckets should be filtered. - Facet *string `json:"facet,omitempty"` - // The per-term prefix that facet buckets should be filtered on. - Prefix *string `json:"prefix,omitempty"` -} - -func (f FacetBucketFilter) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(f, "", false) -} - -func (f *FacetBucketFilter) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *FacetBucketFilter) GetFacet() *string { - if o == nil { - return nil - } - return o.Facet -} - -func (o *FacetBucketFilter) GetPrefix() *string { - if o == nil { - return nil - } - return o.Prefix -} diff --git a/tests/mockserver/internal/sdk/models/components/facetfilter.go b/tests/mockserver/internal/sdk/models/components/facetfilter.go deleted file mode 100644 index 2d9764bf..00000000 --- a/tests/mockserver/internal/sdk/models/components/facetfilter.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type FacetFilter struct { - FieldName *string `json:"fieldName,omitempty"` - // Within a single FacetFilter, the values are to be treated like an OR. For example, fieldName type with values [EQUALS Presentation, EQUALS Spreadsheet] means we want to show a document if it's a Presentation OR a Spreadsheet. - Values []FacetFilterValue `json:"values,omitempty"` - // Indicates the value of a facet, if any, that the given facet is grouped under. This is only used for nested facets, for example, fieldName could be owner and groupName would be Spreadsheet if showing all owners for spreadsheets as a nested facet. - GroupName *string `json:"groupName,omitempty"` -} - -func (f FacetFilter) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(f, "", false) -} - -func (f *FacetFilter) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *FacetFilter) GetFieldName() *string { - if o == nil { - return nil - } - return o.FieldName -} - -func (o *FacetFilter) GetValues() []FacetFilterValue { - if o == nil { - return nil - } - return o.Values -} - -func (o *FacetFilter) GetGroupName() *string { - if o == nil { - return nil - } - return o.GroupName -} diff --git a/tests/mockserver/internal/sdk/models/components/facetfilterset.go b/tests/mockserver/internal/sdk/models/components/facetfilterset.go deleted file mode 100644 index d6433435..00000000 --- a/tests/mockserver/internal/sdk/models/components/facetfilterset.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// FacetFilterSet - Within a single FacetFilterSet, the filters are treated as AND. For example, owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. -type FacetFilterSet struct { - Filters []FacetFilter `json:"filters,omitempty"` -} - -func (f FacetFilterSet) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(f, "", false) -} - -func (f *FacetFilterSet) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *FacetFilterSet) GetFilters() []FacetFilter { - if o == nil { - return nil - } - return o.Filters -} diff --git a/tests/mockserver/internal/sdk/models/components/facetfiltervalue.go b/tests/mockserver/internal/sdk/models/components/facetfiltervalue.go deleted file mode 100644 index 68ba77de..00000000 --- a/tests/mockserver/internal/sdk/models/components/facetfiltervalue.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -type RelationType string - -const ( - RelationTypeEquals RelationType = "EQUALS" - RelationTypeIDEquals RelationType = "ID_EQUALS" - RelationTypeLt RelationType = "LT" - RelationTypeGt RelationType = "GT" - RelationTypeNotEquals RelationType = "NOT_EQUALS" -) - -func (e RelationType) ToPointer() *RelationType { - return &e -} -func (e *RelationType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "EQUALS": - fallthrough - case "ID_EQUALS": - fallthrough - case "LT": - fallthrough - case "GT": - fallthrough - case "NOT_EQUALS": - *e = RelationType(v) - return nil - default: - return fmt.Errorf("invalid value for RelationType: %v", v) - } -} - -type FacetFilterValue struct { - Value *string `json:"value,omitempty"` - RelationType *RelationType `json:"relationType,omitempty"` - // DEPRECATED - please use relationType instead - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - IsNegated *bool `json:"isNegated,omitempty"` -} - -func (f FacetFilterValue) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(f, "", false) -} - -func (f *FacetFilterValue) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *FacetFilterValue) GetValue() *string { - if o == nil { - return nil - } - return o.Value -} - -func (o *FacetFilterValue) GetRelationType() *RelationType { - if o == nil { - return nil - } - return o.RelationType -} - -func (o *FacetFilterValue) GetIsNegated() *bool { - if o == nil { - return nil - } - return o.IsNegated -} diff --git a/tests/mockserver/internal/sdk/models/components/facetresult.go b/tests/mockserver/internal/sdk/models/components/facetresult.go deleted file mode 100644 index a9ad79ba..00000000 --- a/tests/mockserver/internal/sdk/models/components/facetresult.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type FacetResult struct { - // The source of this facet (e.g. container_name, type, last_updated_at). - SourceName *string `json:"sourceName,omitempty"` - // How to display this facet. Currently supportes 'SelectSingle' and 'SelectMultiple'. - OperatorName *string `json:"operatorName,omitempty"` - // A list of unique buckets that exist within this result set. - Buckets []FacetBucket `json:"buckets,omitempty"` - // Returns true if more buckets exist than those returned. Additional buckets can be retrieve by requesting again with a higher facetBucketSize. - HasMoreBuckets *bool `json:"hasMoreBuckets,omitempty"` - // For most facets this will be the empty string, meaning the facet is high-level and applies to all documents for the datasource. When non-empty, this is used to group facets together (i.e. group facets for each doctype for a certain datasource) - GroupName *string `json:"groupName,omitempty"` -} - -func (o *FacetResult) GetSourceName() *string { - if o == nil { - return nil - } - return o.SourceName -} - -func (o *FacetResult) GetOperatorName() *string { - if o == nil { - return nil - } - return o.OperatorName -} - -func (o *FacetResult) GetBuckets() []FacetBucket { - if o == nil { - return nil - } - return o.Buckets -} - -func (o *FacetResult) GetHasMoreBuckets() *bool { - if o == nil { - return nil - } - return o.HasMoreBuckets -} - -func (o *FacetResult) GetGroupName() *string { - if o == nil { - return nil - } - return o.GroupName -} diff --git a/tests/mockserver/internal/sdk/models/components/facetvalue.go b/tests/mockserver/internal/sdk/models/components/facetvalue.go deleted file mode 100644 index e720e4a7..00000000 --- a/tests/mockserver/internal/sdk/models/components/facetvalue.go +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type FacetValue struct { - // The value that should be set in the FacetFilter when applying this filter to a search request. - StringValue *string `json:"stringValue,omitempty"` - IntegerValue *int64 `json:"integerValue,omitempty"` - // An optional user-friendly label to display in place of the facet value. - DisplayLabel *string `json:"displayLabel,omitempty"` - // Defines how to render an icon - IconConfig *IconConfig `json:"iconConfig,omitempty"` -} - -func (o *FacetValue) GetStringValue() *string { - if o == nil { - return nil - } - return o.StringValue -} - -func (o *FacetValue) GetIntegerValue() *int64 { - if o == nil { - return nil - } - return o.IntegerValue -} - -func (o *FacetValue) GetDisplayLabel() *string { - if o == nil { - return nil - } - return o.DisplayLabel -} - -func (o *FacetValue) GetIconConfig() *IconConfig { - if o == nil { - return nil - } - return o.IconConfig -} diff --git a/tests/mockserver/internal/sdk/models/components/favoriteinfo.go b/tests/mockserver/internal/sdk/models/components/favoriteinfo.go deleted file mode 100644 index 7e46f018..00000000 --- a/tests/mockserver/internal/sdk/models/components/favoriteinfo.go +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type FavoriteInfo struct { - UgcType *UgcType `json:"ugcType,omitempty"` - // Opaque id of the UGC. - ID *string `json:"id,omitempty"` - // Number of users this object has been favorited by. - Count *int64 `json:"count,omitempty"` - // If the requesting user has favorited this object. - FavoritedByUser *bool `json:"favoritedByUser,omitempty"` -} - -func (o *FavoriteInfo) GetUgcType() *UgcType { - if o == nil { - return nil - } - return o.UgcType -} - -func (o *FavoriteInfo) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *FavoriteInfo) GetCount() *int64 { - if o == nil { - return nil - } - return o.Count -} - -func (o *FavoriteInfo) GetFavoritedByUser() *bool { - if o == nil { - return nil - } - return o.FavoritedByUser -} diff --git a/tests/mockserver/internal/sdk/models/components/feedback.go b/tests/mockserver/internal/sdk/models/components/feedback.go deleted file mode 100644 index f2e84e7b..00000000 --- a/tests/mockserver/internal/sdk/models/components/feedback.go +++ /dev/null @@ -1,397 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -// FeedbackCategory - The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. -type FeedbackCategory string - -const ( - FeedbackCategoryAnnouncement FeedbackCategory = "ANNOUNCEMENT" - FeedbackCategoryAutocomplete FeedbackCategory = "AUTOCOMPLETE" - FeedbackCategoryCollections FeedbackCategory = "COLLECTIONS" - FeedbackCategoryFeed FeedbackCategory = "FEED" - FeedbackCategorySearch FeedbackCategory = "SEARCH" - FeedbackCategoryChat FeedbackCategory = "CHAT" - FeedbackCategoryNtp FeedbackCategory = "NTP" - FeedbackCategoryWorkflows FeedbackCategory = "WORKFLOWS" - FeedbackCategorySummary FeedbackCategory = "SUMMARY" - FeedbackCategoryGeneral FeedbackCategory = "GENERAL" - FeedbackCategoryPrompts FeedbackCategory = "PROMPTS" -) - -func (e FeedbackCategory) ToPointer() *FeedbackCategory { - return &e -} -func (e *FeedbackCategory) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ANNOUNCEMENT": - fallthrough - case "AUTOCOMPLETE": - fallthrough - case "COLLECTIONS": - fallthrough - case "FEED": - fallthrough - case "SEARCH": - fallthrough - case "CHAT": - fallthrough - case "NTP": - fallthrough - case "WORKFLOWS": - fallthrough - case "SUMMARY": - fallthrough - case "GENERAL": - fallthrough - case "PROMPTS": - *e = FeedbackCategory(v) - return nil - default: - return fmt.Errorf("invalid value for FeedbackCategory: %v", v) - } -} - -// Event - The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. -type Event string - -const ( - EventClick Event = "CLICK" - EventContainerClick Event = "CONTAINER_CLICK" - EventCopyLink Event = "COPY_LINK" - EventCreate Event = "CREATE" - EventDismiss Event = "DISMISS" - EventDownvote Event = "DOWNVOTE" - EventEmail Event = "EMAIL" - EventExecute Event = "EXECUTE" - EventFilter Event = "FILTER" - EventFirstToken Event = "FIRST_TOKEN" - EventFocusIn Event = "FOCUS_IN" - EventLastToken Event = "LAST_TOKEN" - EventManualFeedback Event = "MANUAL_FEEDBACK" - EventManualFeedbackSideBySide Event = "MANUAL_FEEDBACK_SIDE_BY_SIDE" - EventMarkAsRead Event = "MARK_AS_READ" - EventMessage Event = "MESSAGE" - EventMiddleClick Event = "MIDDLE_CLICK" - EventPageBlur Event = "PAGE_BLUR" - EventPageFocus Event = "PAGE_FOCUS" - EventPageLeave Event = "PAGE_LEAVE" - EventPreview Event = "PREVIEW" - EventRelatedClick Event = "RELATED_CLICK" - EventRightClick Event = "RIGHT_CLICK" - EventSectionClick Event = "SECTION_CLICK" - EventSeen Event = "SEEN" - EventShare Event = "SHARE" - EventShowMore Event = "SHOW_MORE" - EventUpvote Event = "UPVOTE" - EventView Event = "VIEW" - EventVisible Event = "VISIBLE" -) - -func (e Event) ToPointer() *Event { - return &e -} -func (e *Event) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "CLICK": - fallthrough - case "CONTAINER_CLICK": - fallthrough - case "COPY_LINK": - fallthrough - case "CREATE": - fallthrough - case "DISMISS": - fallthrough - case "DOWNVOTE": - fallthrough - case "EMAIL": - fallthrough - case "EXECUTE": - fallthrough - case "FILTER": - fallthrough - case "FIRST_TOKEN": - fallthrough - case "FOCUS_IN": - fallthrough - case "LAST_TOKEN": - fallthrough - case "MANUAL_FEEDBACK": - fallthrough - case "MANUAL_FEEDBACK_SIDE_BY_SIDE": - fallthrough - case "MARK_AS_READ": - fallthrough - case "MESSAGE": - fallthrough - case "MIDDLE_CLICK": - fallthrough - case "PAGE_BLUR": - fallthrough - case "PAGE_FOCUS": - fallthrough - case "PAGE_LEAVE": - fallthrough - case "PREVIEW": - fallthrough - case "RELATED_CLICK": - fallthrough - case "RIGHT_CLICK": - fallthrough - case "SECTION_CLICK": - fallthrough - case "SEEN": - fallthrough - case "SHARE": - fallthrough - case "SHOW_MORE": - fallthrough - case "UPVOTE": - fallthrough - case "VIEW": - fallthrough - case "VISIBLE": - *e = Event(v) - return nil - default: - return fmt.Errorf("invalid value for Event: %v", v) - } -} - -type FeedbackChannel string - -const ( - FeedbackChannelCompany FeedbackChannel = "COMPANY" - FeedbackChannelGlean FeedbackChannel = "GLEAN" -) - -func (e FeedbackChannel) ToPointer() *FeedbackChannel { - return &e -} -func (e *FeedbackChannel) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "COMPANY": - fallthrough - case "GLEAN": - *e = FeedbackChannel(v) - return nil - default: - return fmt.Errorf("invalid value for FeedbackChannel: %v", v) - } -} - -type Feedback struct { - // Universally unique identifier of the event. To allow for reliable retransmission, only the earliest received event of a given UUID is considered valid by the server and subsequent are ignored. - ID *string `json:"id,omitempty"` - // The feature category to which the feedback applies. These should be broad product areas such as Announcements, Answers, Search, etc. rather than specific components or UI treatments within those areas. - Category *FeedbackCategory `json:"category,omitempty"` - // A list of server-generated trackingTokens to which this event applies. - TrackingTokens []string `json:"trackingTokens"` - // The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. - Event Event `json:"event"` - // Position of the element in the case that the client controls order (such as feed and autocomplete). - Position *int64 `json:"position,omitempty"` - // For type MANUAL_FEEDBACK, contains string of user feedback. For autocomplete, partial query string. For feed, string of user feedback in addition to manual feedback signals extracted from all suggested content. - Payload *string `json:"payload,omitempty"` - SessionInfo *SessionInfo `json:"sessionInfo,omitempty"` - // The ISO 8601 timestamp when the event occured. - Timestamp *time.Time `json:"timestamp,omitempty"` - User *User `json:"user,omitempty"` - // The path the client was at when the feedback event triggered. - Pathname *string `json:"pathname,omitempty"` - // Where the feedback will be sent, e.g. to Glean, the user's company, or both. If no channels are specified, feedback will go only to Glean. - Channels []FeedbackChannel `json:"channels,omitempty"` - // The URL the client was at when the feedback event triggered. - URL *string `json:"url,omitempty"` - // The UI element tree associated with the event, if any. - UITree []string `json:"uiTree,omitempty"` - // The UI element associated with the event, if any. - UIElement *string `json:"uiElement,omitempty"` - ManualFeedbackInfo *ManualFeedbackInfo `json:"manualFeedbackInfo,omitempty"` - ManualFeedbackSideBySideInfo *ManualFeedbackSideBySideInfo `json:"manualFeedbackSideBySideInfo,omitempty"` - SeenFeedbackInfo *SeenFeedbackInfo `json:"seenFeedbackInfo,omitempty"` - UserViewInfo *UserViewInfo `json:"userViewInfo,omitempty"` - WorkflowFeedbackInfo *WorkflowFeedbackInfo `json:"workflowFeedbackInfo,omitempty"` - // The application ID of the client that sent the feedback event. - ApplicationID *string `json:"applicationId,omitempty"` - // The agent ID of the client that sent the feedback event. - AgentID *string `json:"agentId,omitempty"` -} - -func (f Feedback) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(f, "", false) -} - -func (f *Feedback) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, []string{"trackingTokens", "event"}); err != nil { - return err - } - return nil -} - -func (o *Feedback) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *Feedback) GetCategory() *FeedbackCategory { - if o == nil { - return nil - } - return o.Category -} - -func (o *Feedback) GetTrackingTokens() []string { - if o == nil { - return []string{} - } - return o.TrackingTokens -} - -func (o *Feedback) GetEvent() Event { - if o == nil { - return Event("") - } - return o.Event -} - -func (o *Feedback) GetPosition() *int64 { - if o == nil { - return nil - } - return o.Position -} - -func (o *Feedback) GetPayload() *string { - if o == nil { - return nil - } - return o.Payload -} - -func (o *Feedback) GetSessionInfo() *SessionInfo { - if o == nil { - return nil - } - return o.SessionInfo -} - -func (o *Feedback) GetTimestamp() *time.Time { - if o == nil { - return nil - } - return o.Timestamp -} - -func (o *Feedback) GetUser() *User { - if o == nil { - return nil - } - return o.User -} - -func (o *Feedback) GetPathname() *string { - if o == nil { - return nil - } - return o.Pathname -} - -func (o *Feedback) GetChannels() []FeedbackChannel { - if o == nil { - return nil - } - return o.Channels -} - -func (o *Feedback) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *Feedback) GetUITree() []string { - if o == nil { - return nil - } - return o.UITree -} - -func (o *Feedback) GetUIElement() *string { - if o == nil { - return nil - } - return o.UIElement -} - -func (o *Feedback) GetManualFeedbackInfo() *ManualFeedbackInfo { - if o == nil { - return nil - } - return o.ManualFeedbackInfo -} - -func (o *Feedback) GetManualFeedbackSideBySideInfo() *ManualFeedbackSideBySideInfo { - if o == nil { - return nil - } - return o.ManualFeedbackSideBySideInfo -} - -func (o *Feedback) GetSeenFeedbackInfo() *SeenFeedbackInfo { - if o == nil { - return nil - } - return o.SeenFeedbackInfo -} - -func (o *Feedback) GetUserViewInfo() *UserViewInfo { - if o == nil { - return nil - } - return o.UserViewInfo -} - -func (o *Feedback) GetWorkflowFeedbackInfo() *WorkflowFeedbackInfo { - if o == nil { - return nil - } - return o.WorkflowFeedbackInfo -} - -func (o *Feedback) GetApplicationID() *string { - if o == nil { - return nil - } - return o.ApplicationID -} - -func (o *Feedback) GetAgentID() *string { - if o == nil { - return nil - } - return o.AgentID -} diff --git a/tests/mockserver/internal/sdk/models/components/feedbackchatexchange.go b/tests/mockserver/internal/sdk/models/components/feedbackchatexchange.go deleted file mode 100644 index 04cc3a93..00000000 --- a/tests/mockserver/internal/sdk/models/components/feedbackchatexchange.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ResultDocument struct { - Title *string `json:"title,omitempty"` - URL *string `json:"url,omitempty"` -} - -func (o *ResultDocument) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *ResultDocument) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -type FeedbackChatExchange struct { - // Unix timestamp in millis for the chat request. - Timestamp *int64 `json:"timestamp,omitempty"` - // Either DEFAULT (company knowledge) or GPT (world knowledge). - Agent *string `json:"agent,omitempty"` - // Initial query entered by the user. - UserQuery *string `json:"userQuery,omitempty"` - // Search query performed by the agent. - SearchQuery *string `json:"searchQuery,omitempty"` - // List of documents read by the agent. - ResultDocuments []ResultDocument `json:"resultDocuments,omitempty"` - Response *string `json:"response,omitempty"` -} - -func (o *FeedbackChatExchange) GetTimestamp() *int64 { - if o == nil { - return nil - } - return o.Timestamp -} - -func (o *FeedbackChatExchange) GetAgent() *string { - if o == nil { - return nil - } - return o.Agent -} - -func (o *FeedbackChatExchange) GetUserQuery() *string { - if o == nil { - return nil - } - return o.UserQuery -} - -func (o *FeedbackChatExchange) GetSearchQuery() *string { - if o == nil { - return nil - } - return o.SearchQuery -} - -func (o *FeedbackChatExchange) GetResultDocuments() []ResultDocument { - if o == nil { - return nil - } - return o.ResultDocuments -} - -func (o *FeedbackChatExchange) GetResponse() *string { - if o == nil { - return nil - } - return o.Response -} diff --git a/tests/mockserver/internal/sdk/models/components/feedentry.go b/tests/mockserver/internal/sdk/models/components/feedentry.go deleted file mode 100644 index 930d5c91..00000000 --- a/tests/mockserver/internal/sdk/models/components/feedentry.go +++ /dev/null @@ -1,362 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// Format - defines how to render this particular displayable list card -type Format string - -const ( - FormatList Format = "LIST" -) - -func (e Format) ToPointer() *Format { - return &e -} -func (e *Format) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "LIST": - *e = Format(v) - return nil - default: - return fmt.Errorf("invalid value for Format: %v", v) - } -} - -type UIConfig struct { - // defines how to render this particular displayable list card - Format *Format `json:"format,omitempty"` - // UI configurations for each item of the list - AdditionalFlags *DisplayableListItemUIConfig `json:"additionalFlags,omitempty"` -} - -func (o *UIConfig) GetFormat() *Format { - if o == nil { - return nil - } - return o.Format -} - -func (o *UIConfig) GetAdditionalFlags() *DisplayableListItemUIConfig { - if o == nil { - return nil - } - return o.AdditionalFlags -} - -// JustificationType - Type of the justification. -type JustificationType string - -const ( - JustificationTypeFrequentlyAccessed JustificationType = "FREQUENTLY_ACCESSED" - JustificationTypeRecentlyAccessed JustificationType = "RECENTLY_ACCESSED" - JustificationTypeTrendingDocument JustificationType = "TRENDING_DOCUMENT" - JustificationTypeVerificationReminder JustificationType = "VERIFICATION_REMINDER" - JustificationTypeSuggestedDocument JustificationType = "SUGGESTED_DOCUMENT" - JustificationTypeEmptyStateSuggestion JustificationType = "EMPTY_STATE_SUGGESTION" - JustificationTypeFrecencyScored JustificationType = "FRECENCY_SCORED" - JustificationTypeServerGenerated JustificationType = "SERVER_GENERATED" - JustificationTypeUseCase JustificationType = "USE_CASE" - JustificationTypeUpdateSinceLastView JustificationType = "UPDATE_SINCE_LAST_VIEW" - JustificationTypeRecentlyStarted JustificationType = "RECENTLY_STARTED" - JustificationTypeEvent JustificationType = "EVENT" - JustificationTypeUserMention JustificationType = "USER_MENTION" - JustificationTypeAnnouncement JustificationType = "ANNOUNCEMENT" - JustificationTypeExternalAnnouncement JustificationType = "EXTERNAL_ANNOUNCEMENT" - JustificationTypePopularityBasedTrending JustificationType = "POPULARITY_BASED_TRENDING" - JustificationTypeCompanyResource JustificationType = "COMPANY_RESOURCE" - JustificationTypeEventDocumentFromContent JustificationType = "EVENT_DOCUMENT_FROM_CONTENT" - JustificationTypeEventDocumentFromSearch JustificationType = "EVENT_DOCUMENT_FROM_SEARCH" - JustificationTypeVisitAffinityScored JustificationType = "VISIT_AFFINITY_SCORED" - JustificationTypeSuggestedApp JustificationType = "SUGGESTED_APP" - JustificationTypeSuggestedPerson JustificationType = "SUGGESTED_PERSON" - JustificationTypeActivityHighlight JustificationType = "ACTIVITY_HIGHLIGHT" - JustificationTypeSavedSearch JustificationType = "SAVED_SEARCH" - JustificationTypeSuggestedChannel JustificationType = "SUGGESTED_CHANNEL" - JustificationTypePeopleCelebrations JustificationType = "PEOPLE_CELEBRATIONS" - JustificationTypeSocialLink JustificationType = "SOCIAL_LINK" - JustificationTypeZeroStateChatSuggestion JustificationType = "ZERO_STATE_CHAT_SUGGESTION" - JustificationTypeZeroStateChatToolSuggestion JustificationType = "ZERO_STATE_CHAT_TOOL_SUGGESTION" - JustificationTypeZeroStatePromptTemplateSuggestion JustificationType = "ZERO_STATE_PROMPT_TEMPLATE_SUGGESTION" - JustificationTypeZeroStateStaticWorkflowSuggestion JustificationType = "ZERO_STATE_STATIC_WORKFLOW_SUGGESTION" - JustificationTypeZeroStateAgentSuggestion JustificationType = "ZERO_STATE_AGENT_SUGGESTION" - JustificationTypePersonalizedChatSuggestion JustificationType = "PERSONALIZED_CHAT_SUGGESTION" - JustificationTypeDailyDigest JustificationType = "DAILY_DIGEST" -) - -func (e JustificationType) ToPointer() *JustificationType { - return &e -} -func (e *JustificationType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "FREQUENTLY_ACCESSED": - fallthrough - case "RECENTLY_ACCESSED": - fallthrough - case "TRENDING_DOCUMENT": - fallthrough - case "VERIFICATION_REMINDER": - fallthrough - case "SUGGESTED_DOCUMENT": - fallthrough - case "EMPTY_STATE_SUGGESTION": - fallthrough - case "FRECENCY_SCORED": - fallthrough - case "SERVER_GENERATED": - fallthrough - case "USE_CASE": - fallthrough - case "UPDATE_SINCE_LAST_VIEW": - fallthrough - case "RECENTLY_STARTED": - fallthrough - case "EVENT": - fallthrough - case "USER_MENTION": - fallthrough - case "ANNOUNCEMENT": - fallthrough - case "EXTERNAL_ANNOUNCEMENT": - fallthrough - case "POPULARITY_BASED_TRENDING": - fallthrough - case "COMPANY_RESOURCE": - fallthrough - case "EVENT_DOCUMENT_FROM_CONTENT": - fallthrough - case "EVENT_DOCUMENT_FROM_SEARCH": - fallthrough - case "VISIT_AFFINITY_SCORED": - fallthrough - case "SUGGESTED_APP": - fallthrough - case "SUGGESTED_PERSON": - fallthrough - case "ACTIVITY_HIGHLIGHT": - fallthrough - case "SAVED_SEARCH": - fallthrough - case "SUGGESTED_CHANNEL": - fallthrough - case "PEOPLE_CELEBRATIONS": - fallthrough - case "SOCIAL_LINK": - fallthrough - case "ZERO_STATE_CHAT_SUGGESTION": - fallthrough - case "ZERO_STATE_CHAT_TOOL_SUGGESTION": - fallthrough - case "ZERO_STATE_PROMPT_TEMPLATE_SUGGESTION": - fallthrough - case "ZERO_STATE_STATIC_WORKFLOW_SUGGESTION": - fallthrough - case "ZERO_STATE_AGENT_SUGGESTION": - fallthrough - case "PERSONALIZED_CHAT_SUGGESTION": - fallthrough - case "DAILY_DIGEST": - *e = JustificationType(v) - return nil - default: - return fmt.Errorf("invalid value for JustificationType: %v", v) - } -} - -type FeedEntry struct { - // optional ID associated with a single feed entry (displayable_list_id) - EntryID *string `json:"entryId,omitempty"` - // Title for the result. Can be document title, event title and so on. - Title string `json:"title"` - Thumbnail *Thumbnail `json:"thumbnail,omitempty"` - CreatedBy *Person `json:"createdBy,omitempty"` - UIConfig *UIConfig `json:"uiConfig,omitempty"` - // Type of the justification. - JustificationType *JustificationType `json:"justificationType,omitempty"` - // Server side generated justification string if server provides one. - Justification *string `json:"justification,omitempty"` - // An opaque token that represents this particular feed entry in this particular response. To be used for /feedback reporting. - TrackingToken *string `json:"trackingToken,omitempty"` - // View URL for the entry if based on links that are not documents in Glean. - ViewURL *string `json:"viewUrl,omitempty"` - Document *Document `json:"document,omitempty"` - Event *CalendarEvent `json:"event,omitempty"` - Announcement *Announcement `json:"announcement,omitempty"` - Digest *Digest `json:"digest,omitempty"` - Collection *Collection `json:"collection,omitempty"` - CollectionItem *CollectionItem `json:"collectionItem,omitempty"` - Person *Person `json:"person,omitempty"` - App *AppResult `json:"app,omitempty"` - ChatSuggestion *ChatSuggestion `json:"chatSuggestion,omitempty"` - PromptTemplate *PromptTemplateResult `json:"promptTemplate,omitempty"` - Workflow *WorkflowResult `json:"workflow,omitempty"` - // List of activity where each activity has user, action, timestamp. - Activities []UserActivity `json:"activities,omitempty"` - DocumentVisitorCount *CountInfo `json:"documentVisitorCount,omitempty"` -} - -func (o *FeedEntry) GetEntryID() *string { - if o == nil { - return nil - } - return o.EntryID -} - -func (o *FeedEntry) GetTitle() string { - if o == nil { - return "" - } - return o.Title -} - -func (o *FeedEntry) GetThumbnail() *Thumbnail { - if o == nil { - return nil - } - return o.Thumbnail -} - -func (o *FeedEntry) GetCreatedBy() *Person { - if o == nil { - return nil - } - return o.CreatedBy -} - -func (o *FeedEntry) GetUIConfig() *UIConfig { - if o == nil { - return nil - } - return o.UIConfig -} - -func (o *FeedEntry) GetJustificationType() *JustificationType { - if o == nil { - return nil - } - return o.JustificationType -} - -func (o *FeedEntry) GetJustification() *string { - if o == nil { - return nil - } - return o.Justification -} - -func (o *FeedEntry) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *FeedEntry) GetViewURL() *string { - if o == nil { - return nil - } - return o.ViewURL -} - -func (o *FeedEntry) GetDocument() *Document { - if o == nil { - return nil - } - return o.Document -} - -func (o *FeedEntry) GetEvent() *CalendarEvent { - if o == nil { - return nil - } - return o.Event -} - -func (o *FeedEntry) GetAnnouncement() *Announcement { - if o == nil { - return nil - } - return o.Announcement -} - -func (o *FeedEntry) GetDigest() *Digest { - if o == nil { - return nil - } - return o.Digest -} - -func (o *FeedEntry) GetCollection() *Collection { - if o == nil { - return nil - } - return o.Collection -} - -func (o *FeedEntry) GetCollectionItem() *CollectionItem { - if o == nil { - return nil - } - return o.CollectionItem -} - -func (o *FeedEntry) GetPerson() *Person { - if o == nil { - return nil - } - return o.Person -} - -func (o *FeedEntry) GetApp() *AppResult { - if o == nil { - return nil - } - return o.App -} - -func (o *FeedEntry) GetChatSuggestion() *ChatSuggestion { - if o == nil { - return nil - } - return o.ChatSuggestion -} - -func (o *FeedEntry) GetPromptTemplate() *PromptTemplateResult { - if o == nil { - return nil - } - return o.PromptTemplate -} - -func (o *FeedEntry) GetWorkflow() *WorkflowResult { - if o == nil { - return nil - } - return o.Workflow -} - -func (o *FeedEntry) GetActivities() []UserActivity { - if o == nil { - return nil - } - return o.Activities -} - -func (o *FeedEntry) GetDocumentVisitorCount() *CountInfo { - if o == nil { - return nil - } - return o.DocumentVisitorCount -} diff --git a/tests/mockserver/internal/sdk/models/components/feedrequest.go b/tests/mockserver/internal/sdk/models/components/feedrequest.go deleted file mode 100644 index 385cfb4e..00000000 --- a/tests/mockserver/internal/sdk/models/components/feedrequest.go +++ /dev/null @@ -1,137 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type FeedRequestCategory string - -const ( - FeedRequestCategoryDocumentSuggestion FeedRequestCategory = "DOCUMENT_SUGGESTION" - FeedRequestCategoryDocumentSuggestionScenario FeedRequestCategory = "DOCUMENT_SUGGESTION_SCENARIO" - FeedRequestCategoryTrendingDocument FeedRequestCategory = "TRENDING_DOCUMENT" - FeedRequestCategoryVerificationReminder FeedRequestCategory = "VERIFICATION_REMINDER" - FeedRequestCategoryEvent FeedRequestCategory = "EVENT" - FeedRequestCategoryAnnouncement FeedRequestCategory = "ANNOUNCEMENT" - FeedRequestCategoryMention FeedRequestCategory = "MENTION" - FeedRequestCategoryDatasourceAffinity FeedRequestCategory = "DATASOURCE_AFFINITY" - FeedRequestCategoryRecent FeedRequestCategory = "RECENT" - FeedRequestCategoryCompanyResource FeedRequestCategory = "COMPANY_RESOURCE" - FeedRequestCategoryExperimental FeedRequestCategory = "EXPERIMENTAL" - FeedRequestCategoryPeopleCelebrations FeedRequestCategory = "PEOPLE_CELEBRATIONS" - FeedRequestCategoryDisplayableList FeedRequestCategory = "DISPLAYABLE_LIST" - FeedRequestCategorySocialLink FeedRequestCategory = "SOCIAL_LINK" - FeedRequestCategoryExternalTasks FeedRequestCategory = "EXTERNAL_TASKS" - FeedRequestCategoryWorkflowCollections FeedRequestCategory = "WORKFLOW_COLLECTIONS" - FeedRequestCategoryZeroStateChatSuggestion FeedRequestCategory = "ZERO_STATE_CHAT_SUGGESTION" - FeedRequestCategoryZeroStateChatToolSuggestion FeedRequestCategory = "ZERO_STATE_CHAT_TOOL_SUGGESTION" - FeedRequestCategoryZeroStateWorkflowCreatedByMe FeedRequestCategory = "ZERO_STATE_WORKFLOW_CREATED_BY_ME" - FeedRequestCategoryZeroStateWorkflowFavorites FeedRequestCategory = "ZERO_STATE_WORKFLOW_FAVORITES" - FeedRequestCategoryZeroStateWorkflowPopular FeedRequestCategory = "ZERO_STATE_WORKFLOW_POPULAR" - FeedRequestCategoryZeroStateWorkflowSuggestion FeedRequestCategory = "ZERO_STATE_WORKFLOW_SUGGESTION" - FeedRequestCategoryPersonalizedChatSuggestion FeedRequestCategory = "PERSONALIZED_CHAT_SUGGESTION" - FeedRequestCategoryDailyDigest FeedRequestCategory = "DAILY_DIGEST" -) - -func (e FeedRequestCategory) ToPointer() *FeedRequestCategory { - return &e -} -func (e *FeedRequestCategory) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "DOCUMENT_SUGGESTION": - fallthrough - case "DOCUMENT_SUGGESTION_SCENARIO": - fallthrough - case "TRENDING_DOCUMENT": - fallthrough - case "VERIFICATION_REMINDER": - fallthrough - case "EVENT": - fallthrough - case "ANNOUNCEMENT": - fallthrough - case "MENTION": - fallthrough - case "DATASOURCE_AFFINITY": - fallthrough - case "RECENT": - fallthrough - case "COMPANY_RESOURCE": - fallthrough - case "EXPERIMENTAL": - fallthrough - case "PEOPLE_CELEBRATIONS": - fallthrough - case "DISPLAYABLE_LIST": - fallthrough - case "SOCIAL_LINK": - fallthrough - case "EXTERNAL_TASKS": - fallthrough - case "WORKFLOW_COLLECTIONS": - fallthrough - case "ZERO_STATE_CHAT_SUGGESTION": - fallthrough - case "ZERO_STATE_CHAT_TOOL_SUGGESTION": - fallthrough - case "ZERO_STATE_WORKFLOW_CREATED_BY_ME": - fallthrough - case "ZERO_STATE_WORKFLOW_FAVORITES": - fallthrough - case "ZERO_STATE_WORKFLOW_POPULAR": - fallthrough - case "ZERO_STATE_WORKFLOW_SUGGESTION": - fallthrough - case "PERSONALIZED_CHAT_SUGGESTION": - fallthrough - case "DAILY_DIGEST": - *e = FeedRequestCategory(v) - return nil - default: - return fmt.Errorf("invalid value for FeedRequestCategory: %v", v) - } -} - -type FeedRequest struct { - // Categories of content requested. An allowlist gives flexibility to request content separately or together. - Categories []FeedRequestCategory `json:"categories,omitempty"` - RequestOptions *FeedRequestOptions `json:"requestOptions,omitempty"` - // Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. - TimeoutMillis *int64 `json:"timeoutMillis,omitempty"` - SessionInfo *SessionInfo `json:"sessionInfo,omitempty"` -} - -func (o *FeedRequest) GetCategories() []FeedRequestCategory { - if o == nil { - return nil - } - return o.Categories -} - -func (o *FeedRequest) GetRequestOptions() *FeedRequestOptions { - if o == nil { - return nil - } - return o.RequestOptions -} - -func (o *FeedRequest) GetTimeoutMillis() *int64 { - if o == nil { - return nil - } - return o.TimeoutMillis -} - -func (o *FeedRequest) GetSessionInfo() *SessionInfo { - if o == nil { - return nil - } - return o.SessionInfo -} diff --git a/tests/mockserver/internal/sdk/models/components/feedrequestoptions.go b/tests/mockserver/internal/sdk/models/components/feedrequestoptions.go deleted file mode 100644 index 7a1d1f2e..00000000 --- a/tests/mockserver/internal/sdk/models/components/feedrequestoptions.go +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type CategoryToResultSize struct { - ResultSize *int64 `json:"resultSize,omitempty"` -} - -func (o *CategoryToResultSize) GetResultSize() *int64 { - if o == nil { - return nil - } - return o.ResultSize -} - -type FeedRequestOptions struct { - // Number of results asked in response. If a result is a collection, counts as one. - ResultSize int64 `json:"resultSize"` - // 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 `json:"timezoneOffset,omitempty"` - // Mapping from category to number of results asked for the category. - CategoryToResultSize map[string]CategoryToResultSize `json:"categoryToResultSize,omitempty"` - // Datasources for which content should be included. Empty is for all. - DatasourceFilter []string `json:"datasourceFilter,omitempty"` - ChatZeroStateSuggestionOptions *ChatZeroStateSuggestionOptions `json:"chatZeroStateSuggestionOptions,omitempty"` -} - -func (o *FeedRequestOptions) GetResultSize() int64 { - if o == nil { - return 0 - } - return o.ResultSize -} - -func (o *FeedRequestOptions) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *FeedRequestOptions) GetCategoryToResultSize() map[string]CategoryToResultSize { - if o == nil { - return nil - } - return o.CategoryToResultSize -} - -func (o *FeedRequestOptions) GetDatasourceFilter() []string { - if o == nil { - return nil - } - return o.DatasourceFilter -} - -func (o *FeedRequestOptions) GetChatZeroStateSuggestionOptions() *ChatZeroStateSuggestionOptions { - if o == nil { - return nil - } - return o.ChatZeroStateSuggestionOptions -} diff --git a/tests/mockserver/internal/sdk/models/components/feedresponse.go b/tests/mockserver/internal/sdk/models/components/feedresponse.go deleted file mode 100644 index 54f9d1a8..00000000 --- a/tests/mockserver/internal/sdk/models/components/feedresponse.go +++ /dev/null @@ -1,59 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type FeedResponse struct { - // List of experiment ids for the corresponding request. - ExperimentIds []int64 `json:"experimentIds,omitempty"` - // An opaque token that represents this particular feed response. - TrackingToken *string `json:"trackingToken,omitempty"` - // Server unix timestamp (in seconds since epoch UTC). - ServerTimestamp int64 `json:"serverTimestamp"` - Results []FeedResult `json:"results,omitempty"` - // Map from category to the list of facets that can be used to filter the entry's content. - FacetResults map[string][]FacetResult `json:"facetResults,omitempty"` - // The time window (in hours) used for generating user mentions. - MentionsTimeWindowInHours *int64 `json:"mentionsTimeWindowInHours,omitempty"` -} - -func (o *FeedResponse) GetExperimentIds() []int64 { - if o == nil { - return nil - } - return o.ExperimentIds -} - -func (o *FeedResponse) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *FeedResponse) GetServerTimestamp() int64 { - if o == nil { - return 0 - } - return o.ServerTimestamp -} - -func (o *FeedResponse) GetResults() []FeedResult { - if o == nil { - return nil - } - return o.Results -} - -func (o *FeedResponse) GetFacetResults() map[string][]FacetResult { - if o == nil { - return nil - } - return o.FacetResults -} - -func (o *FeedResponse) GetMentionsTimeWindowInHours() *int64 { - if o == nil { - return nil - } - return o.MentionsTimeWindowInHours -} diff --git a/tests/mockserver/internal/sdk/models/components/feedresult.go b/tests/mockserver/internal/sdk/models/components/feedresult.go deleted file mode 100644 index 300d9e7c..00000000 --- a/tests/mockserver/internal/sdk/models/components/feedresult.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// FeedResultCategory - Category of the result, one of the requested categories in incoming request. -type FeedResultCategory string - -const ( - FeedResultCategoryDocumentSuggestion FeedResultCategory = "DOCUMENT_SUGGESTION" - FeedResultCategoryDocumentSuggestionScenario FeedResultCategory = "DOCUMENT_SUGGESTION_SCENARIO" - FeedResultCategoryTrendingDocument FeedResultCategory = "TRENDING_DOCUMENT" - FeedResultCategoryUseCase FeedResultCategory = "USE_CASE" - FeedResultCategoryVerificationReminder FeedResultCategory = "VERIFICATION_REMINDER" - FeedResultCategoryEvent FeedResultCategory = "EVENT" - FeedResultCategoryAnnouncement FeedResultCategory = "ANNOUNCEMENT" - FeedResultCategoryMention FeedResultCategory = "MENTION" - FeedResultCategoryDatasourceAffinity FeedResultCategory = "DATASOURCE_AFFINITY" - FeedResultCategoryRecent FeedResultCategory = "RECENT" - FeedResultCategoryCompanyResource FeedResultCategory = "COMPANY_RESOURCE" - FeedResultCategoryExperimental FeedResultCategory = "EXPERIMENTAL" - FeedResultCategoryPeopleCelebrations FeedResultCategory = "PEOPLE_CELEBRATIONS" - FeedResultCategorySocialLink FeedResultCategory = "SOCIAL_LINK" - FeedResultCategoryExternalTasks FeedResultCategory = "EXTERNAL_TASKS" - FeedResultCategoryDisplayableList FeedResultCategory = "DISPLAYABLE_LIST" - FeedResultCategoryZeroStateChatSuggestion FeedResultCategory = "ZERO_STATE_CHAT_SUGGESTION" - FeedResultCategoryZeroStateChatToolSuggestion FeedResultCategory = "ZERO_STATE_CHAT_TOOL_SUGGESTION" - FeedResultCategoryZeroStateWorkflowCreatedByMe FeedResultCategory = "ZERO_STATE_WORKFLOW_CREATED_BY_ME" - FeedResultCategoryZeroStateWorkflowFavorites FeedResultCategory = "ZERO_STATE_WORKFLOW_FAVORITES" - FeedResultCategoryZeroStateWorkflowPopular FeedResultCategory = "ZERO_STATE_WORKFLOW_POPULAR" - FeedResultCategoryZeroStateWorkflowSuggestion FeedResultCategory = "ZERO_STATE_WORKFLOW_SUGGESTION" - FeedResultCategoryPersonalizedChatSuggestion FeedResultCategory = "PERSONALIZED_CHAT_SUGGESTION" - FeedResultCategoryDailyDigest FeedResultCategory = "DAILY_DIGEST" -) - -func (e FeedResultCategory) ToPointer() *FeedResultCategory { - return &e -} -func (e *FeedResultCategory) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "DOCUMENT_SUGGESTION": - fallthrough - case "DOCUMENT_SUGGESTION_SCENARIO": - fallthrough - case "TRENDING_DOCUMENT": - fallthrough - case "USE_CASE": - fallthrough - case "VERIFICATION_REMINDER": - fallthrough - case "EVENT": - fallthrough - case "ANNOUNCEMENT": - fallthrough - case "MENTION": - fallthrough - case "DATASOURCE_AFFINITY": - fallthrough - case "RECENT": - fallthrough - case "COMPANY_RESOURCE": - fallthrough - case "EXPERIMENTAL": - fallthrough - case "PEOPLE_CELEBRATIONS": - fallthrough - case "SOCIAL_LINK": - fallthrough - case "EXTERNAL_TASKS": - fallthrough - case "DISPLAYABLE_LIST": - fallthrough - case "ZERO_STATE_CHAT_SUGGESTION": - fallthrough - case "ZERO_STATE_CHAT_TOOL_SUGGESTION": - fallthrough - case "ZERO_STATE_WORKFLOW_CREATED_BY_ME": - fallthrough - case "ZERO_STATE_WORKFLOW_FAVORITES": - fallthrough - case "ZERO_STATE_WORKFLOW_POPULAR": - fallthrough - case "ZERO_STATE_WORKFLOW_SUGGESTION": - fallthrough - case "PERSONALIZED_CHAT_SUGGESTION": - fallthrough - case "DAILY_DIGEST": - *e = FeedResultCategory(v) - return nil - default: - return fmt.Errorf("invalid value for FeedResultCategory: %v", v) - } -} - -type FeedResult struct { - // Category of the result, one of the requested categories in incoming request. - Category FeedResultCategory `json:"category"` - PrimaryEntry FeedEntry `json:"primaryEntry"` - // Secondary entries for the result e.g. suggested docs for the calendar, carousel. - SecondaryEntries []FeedEntry `json:"secondaryEntries,omitempty"` - // Rank of the result. Rank is suggested by server. Client side rank may differ. - Rank *int64 `json:"rank,omitempty"` -} - -func (o *FeedResult) GetCategory() FeedResultCategory { - if o == nil { - return FeedResultCategory("") - } - return o.Category -} - -func (o *FeedResult) GetPrimaryEntry() FeedEntry { - if o == nil { - return FeedEntry{} - } - return o.PrimaryEntry -} - -func (o *FeedResult) GetSecondaryEntries() []FeedEntry { - if o == nil { - return nil - } - return o.SecondaryEntries -} - -func (o *FeedResult) GetRank() *int64 { - if o == nil { - return nil - } - return o.Rank -} diff --git a/tests/mockserver/internal/sdk/models/components/followupaction.go b/tests/mockserver/internal/sdk/models/components/followupaction.go deleted file mode 100644 index 4aaab0dc..00000000 --- a/tests/mockserver/internal/sdk/models/components/followupaction.go +++ /dev/null @@ -1,76 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// FollowupAction - A follow-up action that can be invoked by the user after a response. The action parameters are not included and need to be predicted/filled separately. -type FollowupAction struct { - // Unique identifier for this actionRun recommendation event. - ActionRunID *string `json:"actionRunId,omitempty"` - // The ID of the action instance that will be invoked. - ActionInstanceID *string `json:"actionInstanceId,omitempty"` - // The ID of the associated action. - ActionID *string `json:"actionId,omitempty"` - // Text to be displayed to the user when recommending the action instance. - RecommendationText *string `json:"recommendationText,omitempty"` - // The label to be used when displaying a button to execute this action instance. - ActionLabel *string `json:"actionLabel,omitempty"` - // Whether user confirmation is needed before executing this action instance. - UserConfirmationRequired *bool `json:"userConfirmationRequired,omitempty"` -} - -func (f FollowupAction) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(f, "", false) -} - -func (f *FollowupAction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &f, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *FollowupAction) GetActionRunID() *string { - if o == nil { - return nil - } - return o.ActionRunID -} - -func (o *FollowupAction) GetActionInstanceID() *string { - if o == nil { - return nil - } - return o.ActionInstanceID -} - -func (o *FollowupAction) GetActionID() *string { - if o == nil { - return nil - } - return o.ActionID -} - -func (o *FollowupAction) GetRecommendationText() *string { - if o == nil { - return nil - } - return o.RecommendationText -} - -func (o *FollowupAction) GetActionLabel() *string { - if o == nil { - return nil - } - return o.ActionLabel -} - -func (o *FollowupAction) GetUserConfirmationRequired() *bool { - if o == nil { - return nil - } - return o.UserConfirmationRequired -} diff --git a/tests/mockserver/internal/sdk/models/components/generatedattachment.go b/tests/mockserver/internal/sdk/models/components/generatedattachment.go deleted file mode 100644 index 0e418f08..00000000 --- a/tests/mockserver/internal/sdk/models/components/generatedattachment.go +++ /dev/null @@ -1,57 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// GeneratedAttachment - These are attachments that aren't natively present on the event, and have been smartly suggested. -type GeneratedAttachment struct { - // The name of method used to surface relevant data for a given calendar event. - StrategyName *EventStrategyName `json:"strategyName,omitempty"` - Documents []Document `json:"documents,omitempty"` - Person *Person `json:"person,omitempty"` - Customer *Customer `json:"customer,omitempty"` - // A list of links to external sources outside of Glean. - ExternalLinks []StructuredLink `json:"externalLinks,omitempty"` - Content []GeneratedAttachmentContent `json:"content,omitempty"` -} - -func (o *GeneratedAttachment) GetStrategyName() *EventStrategyName { - if o == nil { - return nil - } - return o.StrategyName -} - -func (o *GeneratedAttachment) GetDocuments() []Document { - if o == nil { - return nil - } - return o.Documents -} - -func (o *GeneratedAttachment) GetPerson() *Person { - if o == nil { - return nil - } - return o.Person -} - -func (o *GeneratedAttachment) GetCustomer() *Customer { - if o == nil { - return nil - } - return o.Customer -} - -func (o *GeneratedAttachment) GetExternalLinks() []StructuredLink { - if o == nil { - return nil - } - return o.ExternalLinks -} - -func (o *GeneratedAttachment) GetContent() []GeneratedAttachmentContent { - if o == nil { - return nil - } - return o.Content -} diff --git a/tests/mockserver/internal/sdk/models/components/generatedattachmentcontent.go b/tests/mockserver/internal/sdk/models/components/generatedattachmentcontent.go deleted file mode 100644 index 5b1366c1..00000000 --- a/tests/mockserver/internal/sdk/models/components/generatedattachmentcontent.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// GeneratedAttachmentContent - Content that has been generated or extrapolated from the documents present in the document field. -type GeneratedAttachmentContent struct { - // The header describing the generated content. - DisplayHeader *string `json:"displayHeader,omitempty"` - // The content that has been generated. - Text *string `json:"text,omitempty"` -} - -func (o *GeneratedAttachmentContent) GetDisplayHeader() *string { - if o == nil { - return nil - } - return o.DisplayHeader -} - -func (o *GeneratedAttachmentContent) GetText() *string { - if o == nil { - return nil - } - return o.Text -} diff --git a/tests/mockserver/internal/sdk/models/components/generatedqna.go b/tests/mockserver/internal/sdk/models/components/generatedqna.go deleted file mode 100644 index 4bcd892c..00000000 --- a/tests/mockserver/internal/sdk/models/components/generatedqna.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -// GeneratedQnaStatus - Status of backend generating the answer -type GeneratedQnaStatus string - -const ( - GeneratedQnaStatusComputing GeneratedQnaStatus = "COMPUTING" - GeneratedQnaStatusDisabled GeneratedQnaStatus = "DISABLED" - GeneratedQnaStatusFailed GeneratedQnaStatus = "FAILED" - GeneratedQnaStatusNoAnswer GeneratedQnaStatus = "NO_ANSWER" - GeneratedQnaStatusSkipped GeneratedQnaStatus = "SKIPPED" - GeneratedQnaStatusStreaming GeneratedQnaStatus = "STREAMING" - GeneratedQnaStatusSucceeded GeneratedQnaStatus = "SUCCEEDED" - GeneratedQnaStatusTimeout GeneratedQnaStatus = "TIMEOUT" -) - -func (e GeneratedQnaStatus) ToPointer() *GeneratedQnaStatus { - return &e -} -func (e *GeneratedQnaStatus) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "COMPUTING": - fallthrough - case "DISABLED": - fallthrough - case "FAILED": - fallthrough - case "NO_ANSWER": - fallthrough - case "SKIPPED": - fallthrough - case "STREAMING": - fallthrough - case "SUCCEEDED": - fallthrough - case "TIMEOUT": - *e = GeneratedQnaStatus(v) - return nil - default: - return fmt.Errorf("invalid value for GeneratedQnaStatus: %v", v) - } -} - -type GeneratedQna struct { - // Search query rephrased into a question. - Question *string `json:"question,omitempty"` - // Answer generated for the given query or the generated question. - Answer *string `json:"answer,omitempty"` - // List of all follow-up prompts generated for the given query or the generated question. - FollowUpPrompts []string `json:"followUpPrompts,omitempty"` - // List of follow-up actions generated for the given query or the generated question. - FollowupActions []FollowupAction `json:"followupActions,omitempty"` - // Answer subsections to mark with special formatting (citations, bolding etc) - Ranges []TextRange `json:"ranges,omitempty"` - // Status of backend generating the answer - Status *GeneratedQnaStatus `json:"status,omitempty"` - // An opaque cursor representing the search request - Cursor *string `json:"cursor,omitempty"` - // An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. - TrackingToken *string `json:"trackingToken,omitempty"` -} - -func (g GeneratedQna) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(g, "", false) -} - -func (g *GeneratedQna) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *GeneratedQna) GetQuestion() *string { - if o == nil { - return nil - } - return o.Question -} - -func (o *GeneratedQna) GetAnswer() *string { - if o == nil { - return nil - } - return o.Answer -} - -func (o *GeneratedQna) GetFollowUpPrompts() []string { - if o == nil { - return nil - } - return o.FollowUpPrompts -} - -func (o *GeneratedQna) GetFollowupActions() []FollowupAction { - if o == nil { - return nil - } - return o.FollowupActions -} - -func (o *GeneratedQna) GetRanges() []TextRange { - if o == nil { - return nil - } - return o.Ranges -} - -func (o *GeneratedQna) GetStatus() *GeneratedQnaStatus { - if o == nil { - return nil - } - return o.Status -} - -func (o *GeneratedQna) GetCursor() *string { - if o == nil { - return nil - } - return o.Cursor -} - -func (o *GeneratedQna) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} diff --git a/tests/mockserver/internal/sdk/models/components/getanswererror.go b/tests/mockserver/internal/sdk/models/components/getanswererror.go deleted file mode 100644 index 76937f9b..00000000 --- a/tests/mockserver/internal/sdk/models/components/getanswererror.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type GetAnswerErrorErrorType string - -const ( - GetAnswerErrorErrorTypeNoPermission GetAnswerErrorErrorType = "NO_PERMISSION" - GetAnswerErrorErrorTypeInvalidID GetAnswerErrorErrorType = "INVALID_ID" -) - -func (e GetAnswerErrorErrorType) ToPointer() *GetAnswerErrorErrorType { - return &e -} -func (e *GetAnswerErrorErrorType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "NO_PERMISSION": - fallthrough - case "INVALID_ID": - *e = GetAnswerErrorErrorType(v) - return nil - default: - return fmt.Errorf("invalid value for GetAnswerErrorErrorType: %v", v) - } -} - -type GetAnswerError struct { - ErrorType *GetAnswerErrorErrorType `json:"errorType,omitempty"` - AnswerAuthor *Person `json:"answerAuthor,omitempty"` -} - -func (o *GetAnswerError) GetErrorType() *GetAnswerErrorErrorType { - if o == nil { - return nil - } - return o.ErrorType -} - -func (o *GetAnswerError) GetAnswerAuthor() *Person { - if o == nil { - return nil - } - return o.AnswerAuthor -} diff --git a/tests/mockserver/internal/sdk/models/components/getanswerrequest.go b/tests/mockserver/internal/sdk/models/components/getanswerrequest.go deleted file mode 100644 index 2f1611b9..00000000 --- a/tests/mockserver/internal/sdk/models/components/getanswerrequest.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetAnswerRequest struct { - // The opaque ID of the Answer. - ID *int64 `json:"id,omitempty"` - // Glean Document ID of the Answer. The Glean Document ID is supported for cases where the Answer ID isn't available. If both are available, using the Answer ID is preferred. - DocID *string `json:"docId,omitempty"` -} - -func (o *GetAnswerRequest) GetID() *int64 { - if o == nil { - return nil - } - return o.ID -} - -func (o *GetAnswerRequest) GetDocID() *string { - if o == nil { - return nil - } - return o.DocID -} diff --git a/tests/mockserver/internal/sdk/models/components/getanswerresponse.go b/tests/mockserver/internal/sdk/models/components/getanswerresponse.go deleted file mode 100644 index 0272f330..00000000 --- a/tests/mockserver/internal/sdk/models/components/getanswerresponse.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetAnswerResponse struct { - AnswerResult *AnswerResult `json:"answerResult,omitempty"` - Error *GetAnswerError `json:"error,omitempty"` -} - -func (o *GetAnswerResponse) GetAnswerResult() *AnswerResult { - if o == nil { - return nil - } - return o.AnswerResult -} - -func (o *GetAnswerResponse) GetError() *GetAnswerError { - if o == nil { - return nil - } - return o.Error -} diff --git a/tests/mockserver/internal/sdk/models/components/getchatapplicationrequest.go b/tests/mockserver/internal/sdk/models/components/getchatapplicationrequest.go deleted file mode 100644 index ed309bf7..00000000 --- a/tests/mockserver/internal/sdk/models/components/getchatapplicationrequest.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetChatApplicationRequest struct { - // The id of the Chat application to be retrieved. - ID string `json:"id"` -} - -func (o *GetChatApplicationRequest) GetID() string { - if o == nil { - return "" - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/getchatapplicationresponse.go b/tests/mockserver/internal/sdk/models/components/getchatapplicationresponse.go deleted file mode 100644 index e55f9694..00000000 --- a/tests/mockserver/internal/sdk/models/components/getchatapplicationresponse.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetChatApplicationResponse struct { - Application any `json:"application,omitempty"` -} - -func (o *GetChatApplicationResponse) GetApplication() any { - if o == nil { - return nil - } - return o.Application -} diff --git a/tests/mockserver/internal/sdk/models/components/getchatfilesrequest.go b/tests/mockserver/internal/sdk/models/components/getchatfilesrequest.go deleted file mode 100644 index e23c00f3..00000000 --- a/tests/mockserver/internal/sdk/models/components/getchatfilesrequest.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetChatFilesRequest struct { - // IDs of files to fetch. - FileIds []string `json:"fileIds"` - // The ID of the chat that contains the chat file. - ChatID *string `json:"chatId,omitempty"` -} - -func (o *GetChatFilesRequest) GetFileIds() []string { - if o == nil { - return []string{} - } - return o.FileIds -} - -func (o *GetChatFilesRequest) GetChatID() *string { - if o == nil { - return nil - } - return o.ChatID -} diff --git a/tests/mockserver/internal/sdk/models/components/getchatfilesresponse.go b/tests/mockserver/internal/sdk/models/components/getchatfilesresponse.go deleted file mode 100644 index 1148537a..00000000 --- a/tests/mockserver/internal/sdk/models/components/getchatfilesresponse.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetChatFilesResponse struct { - // A map of file IDs to ChatFile structs. - Files map[string]ChatFile `json:"files,omitempty"` -} - -func (o *GetChatFilesResponse) GetFiles() map[string]ChatFile { - if o == nil { - return nil - } - return o.Files -} diff --git a/tests/mockserver/internal/sdk/models/components/getchatrequest.go b/tests/mockserver/internal/sdk/models/components/getchatrequest.go deleted file mode 100644 index 82118136..00000000 --- a/tests/mockserver/internal/sdk/models/components/getchatrequest.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetChatRequest struct { - // The id of the Chat to be retrieved. - ID string `json:"id"` -} - -func (o *GetChatRequest) GetID() string { - if o == nil { - return "" - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/getchatresponse.go b/tests/mockserver/internal/sdk/models/components/getchatresponse.go deleted file mode 100644 index 88ac7a95..00000000 --- a/tests/mockserver/internal/sdk/models/components/getchatresponse.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetChatResponse struct { - ChatResult *ChatResult `json:"chatResult,omitempty"` -} - -func (o *GetChatResponse) GetChatResult() *ChatResult { - if o == nil { - return nil - } - return o.ChatResult -} diff --git a/tests/mockserver/internal/sdk/models/components/getcollectionrequest.go b/tests/mockserver/internal/sdk/models/components/getcollectionrequest.go deleted file mode 100644 index 89a1e14b..00000000 --- a/tests/mockserver/internal/sdk/models/components/getcollectionrequest.go +++ /dev/null @@ -1,42 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetCollectionRequest struct { - // The ID of the Collection to be retrieved. - ID int64 `json:"id"` - // Whether or not to include the Collection Items in this Collection. Only request if absolutely required, as this is expensive. - WithItems *bool `json:"withItems,omitempty"` - // Whether or not to include the top level Collection in this Collection's hierarchy. - WithHierarchy *bool `json:"withHierarchy,omitempty"` - // The datasource allowed in the Collection returned. - AllowedDatasource *string `json:"allowedDatasource,omitempty"` -} - -func (o *GetCollectionRequest) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} - -func (o *GetCollectionRequest) GetWithItems() *bool { - if o == nil { - return nil - } - return o.WithItems -} - -func (o *GetCollectionRequest) GetWithHierarchy() *bool { - if o == nil { - return nil - } - return o.WithHierarchy -} - -func (o *GetCollectionRequest) GetAllowedDatasource() *string { - if o == nil { - return nil - } - return o.AllowedDatasource -} diff --git a/tests/mockserver/internal/sdk/models/components/getcollectionresponse.go b/tests/mockserver/internal/sdk/models/components/getcollectionresponse.go deleted file mode 100644 index e8446d27..00000000 --- a/tests/mockserver/internal/sdk/models/components/getcollectionresponse.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetCollectionResponse struct { - Collection *Collection `json:"collection,omitempty"` - RootCollection *Collection `json:"rootCollection,omitempty"` - // An opaque token that represents this particular Collection. To be used for `/feedback` reporting. - TrackingToken *string `json:"trackingToken,omitempty"` - Error *CollectionError `json:"error,omitempty"` -} - -func (o *GetCollectionResponse) GetCollection() *Collection { - if o == nil { - return nil - } - return o.Collection -} - -func (o *GetCollectionResponse) GetRootCollection() *Collection { - if o == nil { - return nil - } - return o.RootCollection -} - -func (o *GetCollectionResponse) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *GetCollectionResponse) GetError() *CollectionError { - if o == nil { - return nil - } - return o.Error -} diff --git a/tests/mockserver/internal/sdk/models/components/getdatasourceconfigrequest.go b/tests/mockserver/internal/sdk/models/components/getdatasourceconfigrequest.go deleted file mode 100644 index 61fa0d59..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdatasourceconfigrequest.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// GetDatasourceConfigRequest - Describes the request body of the /getdatasourceconfig API call -type GetDatasourceConfigRequest struct { - // Datasource name for which config is needed. - Datasource string `json:"datasource"` -} - -func (o *GetDatasourceConfigRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} diff --git a/tests/mockserver/internal/sdk/models/components/getdlpreportresponse.go b/tests/mockserver/internal/sdk/models/components/getdlpreportresponse.go deleted file mode 100644 index 275dbf8c..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdlpreportresponse.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetDlpReportResponse struct { - // Full policy information that will be used for scans. - Report *DlpReport `json:"report,omitempty"` -} - -func (o *GetDlpReportResponse) GetReport() *DlpReport { - if o == nil { - return nil - } - return o.Report -} diff --git a/tests/mockserver/internal/sdk/models/components/getdocpermissionsrequest.go b/tests/mockserver/internal/sdk/models/components/getdocpermissionsrequest.go deleted file mode 100644 index 05b37eac..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdocpermissionsrequest.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetDocPermissionsRequest struct { - // The Glean Document ID to retrieve permissions for. - DocumentID *string `json:"documentId,omitempty"` -} - -func (o *GetDocPermissionsRequest) GetDocumentID() *string { - if o == nil { - return nil - } - return o.DocumentID -} diff --git a/tests/mockserver/internal/sdk/models/components/getdocpermissionsresponse.go b/tests/mockserver/internal/sdk/models/components/getdocpermissionsresponse.go deleted file mode 100644 index 8e244e14..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdocpermissionsresponse.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetDocPermissionsResponse struct { - // A list of emails of users who have access to the document. If the document is visible to all Glean users, a list with only a single value of 'VISIBLE_TO_ALL'. - AllowedUserEmails []string `json:"allowedUserEmails,omitempty"` -} - -func (o *GetDocPermissionsResponse) GetAllowedUserEmails() []string { - if o == nil { - return nil - } - return o.AllowedUserEmails -} diff --git a/tests/mockserver/internal/sdk/models/components/getdocumentcountrequest.go b/tests/mockserver/internal/sdk/models/components/getdocumentcountrequest.go deleted file mode 100644 index a0961331..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdocumentcountrequest.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// GetDocumentCountRequest - Describes the request body of the /getdocumentcount API call -type GetDocumentCountRequest struct { - // Datasource name for which document count is needed. - Datasource string `json:"datasource"` -} - -func (o *GetDocumentCountRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} diff --git a/tests/mockserver/internal/sdk/models/components/getdocumentcountresponse.go b/tests/mockserver/internal/sdk/models/components/getdocumentcountresponse.go deleted file mode 100644 index 1691776f..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdocumentcountresponse.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// GetDocumentCountResponse - Describes the response body of the /getdocumentcount API call -type GetDocumentCountResponse struct { - // Number of documents corresponding to the specified custom datasource. - DocumentCount *int64 `json:"documentCount,omitempty"` -} - -func (o *GetDocumentCountResponse) GetDocumentCount() *int64 { - if o == nil { - return nil - } - return o.DocumentCount -} diff --git a/tests/mockserver/internal/sdk/models/components/getdocumentsbyfacetsrequest.go b/tests/mockserver/internal/sdk/models/components/getdocumentsbyfacetsrequest.go deleted file mode 100644 index 62e8ccc0..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdocumentsbyfacetsrequest.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetDocumentsByFacetsRequest struct { - // Filter results to one or more datasources (e.g. gmail, slack). All results are returned if missing. - DatasourcesFilter []string `json:"datasourcesFilter,omitempty"` - // A list of facet filter sets that will be OR'ed together. An AND is assumed between different filters in each set. - FilterSets []FacetFilterSet `json:"filterSets"` - // Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. - Cursor *string `json:"cursor,omitempty"` -} - -func (o *GetDocumentsByFacetsRequest) GetDatasourcesFilter() []string { - if o == nil { - return nil - } - return o.DatasourcesFilter -} - -func (o *GetDocumentsByFacetsRequest) GetFilterSets() []FacetFilterSet { - if o == nil { - return []FacetFilterSet{} - } - return o.FilterSets -} - -func (o *GetDocumentsByFacetsRequest) GetCursor() *string { - if o == nil { - return nil - } - return o.Cursor -} diff --git a/tests/mockserver/internal/sdk/models/components/getdocumentsbyfacetsresponse.go b/tests/mockserver/internal/sdk/models/components/getdocumentsbyfacetsresponse.go deleted file mode 100644 index 74a0f90f..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdocumentsbyfacetsresponse.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetDocumentsByFacetsResponse struct { - // The document details, ordered by score. - Documents []Document `json:"documents,omitempty"` - // Whether more results are available. Use cursor to retrieve them. - HasMoreResults *bool `json:"hasMoreResults,omitempty"` - // Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. - Cursor *string `json:"cursor,omitempty"` -} - -func (o *GetDocumentsByFacetsResponse) GetDocuments() []Document { - if o == nil { - return nil - } - return o.Documents -} - -func (o *GetDocumentsByFacetsResponse) GetHasMoreResults() *bool { - if o == nil { - return nil - } - return o.HasMoreResults -} - -func (o *GetDocumentsByFacetsResponse) GetCursor() *string { - if o == nil { - return nil - } - return o.Cursor -} diff --git a/tests/mockserver/internal/sdk/models/components/getdocumentsrequest.go b/tests/mockserver/internal/sdk/models/components/getdocumentsrequest.go deleted file mode 100644 index 48c69211..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdocumentsrequest.go +++ /dev/null @@ -1,61 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type GetDocumentsRequestIncludeField string - -const ( - GetDocumentsRequestIncludeFieldLastViewedAt GetDocumentsRequestIncludeField = "LAST_VIEWED_AT" - GetDocumentsRequestIncludeFieldVisitorsCount GetDocumentsRequestIncludeField = "VISITORS_COUNT" - GetDocumentsRequestIncludeFieldRecentShares GetDocumentsRequestIncludeField = "RECENT_SHARES" - GetDocumentsRequestIncludeFieldDocumentContent GetDocumentsRequestIncludeField = "DOCUMENT_CONTENT" -) - -func (e GetDocumentsRequestIncludeField) ToPointer() *GetDocumentsRequestIncludeField { - return &e -} -func (e *GetDocumentsRequestIncludeField) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "LAST_VIEWED_AT": - fallthrough - case "VISITORS_COUNT": - fallthrough - case "RECENT_SHARES": - fallthrough - case "DOCUMENT_CONTENT": - *e = GetDocumentsRequestIncludeField(v) - return nil - default: - return fmt.Errorf("invalid value for GetDocumentsRequestIncludeField: %v", v) - } -} - -type GetDocumentsRequest struct { - // The specification for the documents to be retrieved. - DocumentSpecs []DocumentSpecUnion `json:"documentSpecs"` - // List of Document fields to return (that aren't returned by default) - IncludeFields []GetDocumentsRequestIncludeField `json:"includeFields,omitempty"` -} - -func (o *GetDocumentsRequest) GetDocumentSpecs() []DocumentSpecUnion { - if o == nil { - return []DocumentSpecUnion{} - } - return o.DocumentSpecs -} - -func (o *GetDocumentsRequest) GetIncludeFields() []GetDocumentsRequestIncludeField { - if o == nil { - return nil - } - return o.IncludeFields -} diff --git a/tests/mockserver/internal/sdk/models/components/getdocumentsresponse.go b/tests/mockserver/internal/sdk/models/components/getdocumentsresponse.go deleted file mode 100644 index f1940563..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdocumentsresponse.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetDocumentsResponse struct { - // The document details or the error if document is not found. - Documents map[string]DocumentOrErrorUnion `json:"documents,omitempty"` -} - -func (o *GetDocumentsResponse) GetDocuments() map[string]DocumentOrErrorUnion { - if o == nil { - return nil - } - return o.Documents -} diff --git a/tests/mockserver/internal/sdk/models/components/getdocumentstatusrequest.go b/tests/mockserver/internal/sdk/models/components/getdocumentstatusrequest.go deleted file mode 100644 index a16e6e72..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdocumentstatusrequest.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// GetDocumentStatusRequest - Describes the request body for /getdocumentstatus API call -type GetDocumentStatusRequest struct { - // Datasource to get fetch document status for - Datasource string `json:"datasource"` - // Object type of the document to get the status for - ObjectType string `json:"objectType"` - // Glean Document ID within the datasource to get the status for. - DocID string `json:"docId"` -} - -func (o *GetDocumentStatusRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *GetDocumentStatusRequest) GetObjectType() string { - if o == nil { - return "" - } - return o.ObjectType -} - -func (o *GetDocumentStatusRequest) GetDocID() string { - if o == nil { - return "" - } - return o.DocID -} diff --git a/tests/mockserver/internal/sdk/models/components/getdocumentstatusresponse.go b/tests/mockserver/internal/sdk/models/components/getdocumentstatusresponse.go deleted file mode 100644 index b87bd528..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdocumentstatusresponse.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// GetDocumentStatusResponse - Describes the response body of the /getdocumentstatus API call -type GetDocumentStatusResponse struct { - // Upload status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN - UploadStatus *string `json:"uploadStatus,omitempty"` - // Time of last successful upload, in epoch seconds - LastUploadedAt *int64 `json:"lastUploadedAt,omitempty"` - // Indexing status, enum of NOT_INDEXED, INDEXED, STATUS_UNKNOWN - IndexingStatus *string `json:"indexingStatus,omitempty"` - // Time of last successful indexing, in epoch seconds - LastIndexedAt *int64 `json:"lastIndexedAt,omitempty"` -} - -func (o *GetDocumentStatusResponse) GetUploadStatus() *string { - if o == nil { - return nil - } - return o.UploadStatus -} - -func (o *GetDocumentStatusResponse) GetLastUploadedAt() *int64 { - if o == nil { - return nil - } - return o.LastUploadedAt -} - -func (o *GetDocumentStatusResponse) GetIndexingStatus() *string { - if o == nil { - return nil - } - return o.IndexingStatus -} - -func (o *GetDocumentStatusResponse) GetLastIndexedAt() *int64 { - if o == nil { - return nil - } - return o.LastIndexedAt -} diff --git a/tests/mockserver/internal/sdk/models/components/getdocumentvisibilityoverridesresponse.go b/tests/mockserver/internal/sdk/models/components/getdocumentvisibilityoverridesresponse.go deleted file mode 100644 index 5bd08e14..00000000 --- a/tests/mockserver/internal/sdk/models/components/getdocumentvisibilityoverridesresponse.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetDocumentVisibilityOverridesResponse struct { - VisibilityOverrides []DocumentVisibilityOverride `json:"visibilityOverrides,omitempty"` -} - -func (o *GetDocumentVisibilityOverridesResponse) GetVisibilityOverrides() []DocumentVisibilityOverride { - if o == nil { - return nil - } - return o.VisibilityOverrides -} diff --git a/tests/mockserver/internal/sdk/models/components/getpinrequest.go b/tests/mockserver/internal/sdk/models/components/getpinrequest.go deleted file mode 100644 index f126af9c..00000000 --- a/tests/mockserver/internal/sdk/models/components/getpinrequest.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetPinRequest struct { - // The opaque id of the pin to be fetched. - ID *string `json:"id,omitempty"` -} - -func (o *GetPinRequest) GetID() *string { - if o == nil { - return nil - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/getpinresponse.go b/tests/mockserver/internal/sdk/models/components/getpinresponse.go deleted file mode 100644 index e6eb59d7..00000000 --- a/tests/mockserver/internal/sdk/models/components/getpinresponse.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetPinResponse struct { - Pin *PinDocument `json:"pin,omitempty"` -} - -func (o *GetPinResponse) GetPin() *PinDocument { - if o == nil { - return nil - } - return o.Pin -} diff --git a/tests/mockserver/internal/sdk/models/components/getshortcutrequestunion.go b/tests/mockserver/internal/sdk/models/components/getshortcutrequestunion.go deleted file mode 100644 index cb0491cc..00000000 --- a/tests/mockserver/internal/sdk/models/components/getshortcutrequestunion.go +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "errors" - "fmt" - "mockserver/internal/sdk/utils" -) - -type GetShortcutRequest struct { - // The alias for the shortcut, including any arguments for variable shortcuts. - Alias string `json:"alias"` -} - -func (g GetShortcutRequest) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(g, "", false) -} - -func (g *GetShortcutRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &g, "", false, []string{"alias"}); err != nil { - return err - } - return nil -} - -func (o *GetShortcutRequest) GetAlias() string { - if o == nil { - return "" - } - return o.Alias -} - -type GetShortcutRequestUnionType string - -const ( - GetShortcutRequestUnionTypeUserGeneratedContentID GetShortcutRequestUnionType = "UserGeneratedContentId" - GetShortcutRequestUnionTypeGetShortcutRequest GetShortcutRequestUnionType = "GetShortcutRequest" -) - -type GetShortcutRequestUnion struct { - UserGeneratedContentID *UserGeneratedContentID `queryParam:"inline"` - GetShortcutRequest *GetShortcutRequest `queryParam:"inline"` - - Type GetShortcutRequestUnionType -} - -func CreateGetShortcutRequestUnionUserGeneratedContentID(userGeneratedContentID UserGeneratedContentID) GetShortcutRequestUnion { - typ := GetShortcutRequestUnionTypeUserGeneratedContentID - - return GetShortcutRequestUnion{ - UserGeneratedContentID: &userGeneratedContentID, - Type: typ, - } -} - -func CreateGetShortcutRequestUnionGetShortcutRequest(getShortcutRequest GetShortcutRequest) GetShortcutRequestUnion { - typ := GetShortcutRequestUnionTypeGetShortcutRequest - - return GetShortcutRequestUnion{ - GetShortcutRequest: &getShortcutRequest, - Type: typ, - } -} - -func (u *GetShortcutRequestUnion) UnmarshalJSON(data []byte) error { - - var getShortcutRequest GetShortcutRequest = GetShortcutRequest{} - if err := utils.UnmarshalJSON(data, &getShortcutRequest, "", true, nil); err == nil { - u.GetShortcutRequest = &getShortcutRequest - u.Type = GetShortcutRequestUnionTypeGetShortcutRequest - return nil - } - - var userGeneratedContentID UserGeneratedContentID = UserGeneratedContentID{} - if err := utils.UnmarshalJSON(data, &userGeneratedContentID, "", true, nil); err == nil { - u.UserGeneratedContentID = &userGeneratedContentID - u.Type = GetShortcutRequestUnionTypeUserGeneratedContentID - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for GetShortcutRequestUnion", string(data)) -} - -func (u GetShortcutRequestUnion) MarshalJSON() ([]byte, error) { - if u.UserGeneratedContentID != nil { - return utils.MarshalJSON(u.UserGeneratedContentID, "", true) - } - - if u.GetShortcutRequest != nil { - return utils.MarshalJSON(u.GetShortcutRequest, "", true) - } - - return nil, errors.New("could not marshal union type GetShortcutRequestUnion: all fields are null") -} diff --git a/tests/mockserver/internal/sdk/models/components/getshortcutresponse.go b/tests/mockserver/internal/sdk/models/components/getshortcutresponse.go deleted file mode 100644 index 4e6db38c..00000000 --- a/tests/mockserver/internal/sdk/models/components/getshortcutresponse.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GetShortcutResponse struct { - Shortcut *Shortcut `json:"shortcut,omitempty"` - Error *ShortcutError `json:"error,omitempty"` -} - -func (o *GetShortcutResponse) GetShortcut() *Shortcut { - if o == nil { - return nil - } - return o.Shortcut -} - -func (o *GetShortcutResponse) GetError() *ShortcutError { - if o == nil { - return nil - } - return o.Error -} diff --git a/tests/mockserver/internal/sdk/models/components/getusercountrequest.go b/tests/mockserver/internal/sdk/models/components/getusercountrequest.go deleted file mode 100644 index c86badbe..00000000 --- a/tests/mockserver/internal/sdk/models/components/getusercountrequest.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// GetUserCountRequest - Describes the request body of the /getusercount API call -type GetUserCountRequest struct { - // Datasource name for which user count is needed. - Datasource string `json:"datasource"` -} - -func (o *GetUserCountRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} diff --git a/tests/mockserver/internal/sdk/models/components/getusercountresponse.go b/tests/mockserver/internal/sdk/models/components/getusercountresponse.go deleted file mode 100644 index 49761b93..00000000 --- a/tests/mockserver/internal/sdk/models/components/getusercountresponse.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// GetUserCountResponse - Describes the response body of the /getusercount API call -type GetUserCountResponse struct { - // Number of users corresponding to the specified custom datasource. - UserCount *int64 `json:"userCount,omitempty"` -} - -func (o *GetUserCountResponse) GetUserCount() *int64 { - if o == nil { - return nil - } - return o.UserCount -} diff --git a/tests/mockserver/internal/sdk/models/components/gleanassistinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/gleanassistinsightsresponse.go deleted file mode 100644 index 9bc58150..00000000 --- a/tests/mockserver/internal/sdk/models/components/gleanassistinsightsresponse.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GleanAssistInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - // Insights for all active users with respect to set of actions. - ActivityInsights []UserActivityInsight `json:"activityInsights,omitempty"` - // Total number of active users in the requested period. - TotalActiveUsers *int64 `json:"totalActiveUsers,omitempty"` - // List of datasource instances for which glean assist is enabled. - DatasourceInstances []string `json:"datasourceInstances,omitempty"` - // List of departments applicable for users tab. - Departments []string `json:"departments,omitempty"` -} - -func (o *GleanAssistInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *GleanAssistInsightsResponse) GetActivityInsights() []UserActivityInsight { - if o == nil { - return nil - } - return o.ActivityInsights -} - -func (o *GleanAssistInsightsResponse) GetTotalActiveUsers() *int64 { - if o == nil { - return nil - } - return o.TotalActiveUsers -} - -func (o *GleanAssistInsightsResponse) GetDatasourceInstances() []string { - if o == nil { - return nil - } - return o.DatasourceInstances -} - -func (o *GleanAssistInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} diff --git a/tests/mockserver/internal/sdk/models/components/gleandataerror.go b/tests/mockserver/internal/sdk/models/components/gleandataerror.go deleted file mode 100644 index 12eecd2e..00000000 --- a/tests/mockserver/internal/sdk/models/components/gleandataerror.go +++ /dev/null @@ -1,41 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type GleanDataError struct { - // Indicates the gmail results could not be fetched due to bad token. - BadGmailToken *bool `json:"badGmailToken,omitempty"` - // Indicates the outlook results could not be fetched due to bad token. - BadOutlookToken *bool `json:"badOutlookToken,omitempty"` - // Indicates results could not be fetched due to invalid operators in the query. - InvalidOperators []InvalidOperatorValueError `json:"invalidOperators,omitempty"` - ErrorMessages []ErrorMessage `json:"errorMessages,omitempty"` -} - -func (o *GleanDataError) GetBadGmailToken() *bool { - if o == nil { - return nil - } - return o.BadGmailToken -} - -func (o *GleanDataError) GetBadOutlookToken() *bool { - if o == nil { - return nil - } - return o.BadOutlookToken -} - -func (o *GleanDataError) GetInvalidOperators() []InvalidOperatorValueError { - if o == nil { - return nil - } - return o.InvalidOperators -} - -func (o *GleanDataError) GetErrorMessages() []ErrorMessage { - if o == nil { - return nil - } - return o.ErrorMessages -} diff --git a/tests/mockserver/internal/sdk/models/components/grantpermission.go b/tests/mockserver/internal/sdk/models/components/grantpermission.go deleted file mode 100644 index fb1c2a04..00000000 --- a/tests/mockserver/internal/sdk/models/components/grantpermission.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// GrantPermission - Describes the grant permission level that a user has for a specific feature -type GrantPermission struct { - // Describes the scope for a ReadPermission, WritePermission, or GrantPermission object - ScopeType *ScopeType `json:"scopeType,omitempty"` -} - -func (g GrantPermission) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(g, "", false) -} - -func (g *GrantPermission) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &g, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *GrantPermission) GetScopeType() *ScopeType { - if o == nil { - return nil - } - return o.ScopeType -} diff --git a/tests/mockserver/internal/sdk/models/components/greenlistusersrequest.go b/tests/mockserver/internal/sdk/models/components/greenlistusersrequest.go deleted file mode 100644 index 7cfe20c0..00000000 --- a/tests/mockserver/internal/sdk/models/components/greenlistusersrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// GreenlistUsersRequest - Describes the request body of the /betausers API call -type GreenlistUsersRequest struct { - // Datasource which needs to be made visible to users specified in the `emails` field. - Datasource string `json:"datasource"` - // The emails of the beta users - Emails []string `json:"emails"` -} - -func (o *GreenlistUsersRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *GreenlistUsersRequest) GetEmails() []string { - if o == nil { - return []string{} - } - return o.Emails -} diff --git a/tests/mockserver/internal/sdk/models/components/group.go b/tests/mockserver/internal/sdk/models/components/group.go deleted file mode 100644 index ecd7ddb6..00000000 --- a/tests/mockserver/internal/sdk/models/components/group.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type Group struct { - // The type of user group - Type GroupType `json:"type"` - // A unique identifier for the group. May be the same as name. - ID string `json:"id"` - // Name of the group. - Name *string `json:"name,omitempty"` - // Datasource instance if the group belongs to one e.g. external groups. - DatasourceInstance *string `json:"datasourceInstance,omitempty"` - // identifier for greenlist provisioning, aka sciokey - ProvisioningID *string `json:"provisioningId,omitempty"` -} - -func (g Group) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(g, "", false) -} - -func (g *Group) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &g, "", false, []string{"type", "id"}); err != nil { - return err - } - return nil -} - -func (o *Group) GetType() GroupType { - if o == nil { - return GroupType("") - } - return o.Type -} - -func (o *Group) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -func (o *Group) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *Group) GetDatasourceInstance() *string { - if o == nil { - return nil - } - return o.DatasourceInstance -} - -func (o *Group) GetProvisioningID() *string { - if o == nil { - return nil - } - return o.ProvisioningID -} diff --git a/tests/mockserver/internal/sdk/models/components/grouptype.go b/tests/mockserver/internal/sdk/models/components/grouptype.go deleted file mode 100644 index 3f25f70b..00000000 --- a/tests/mockserver/internal/sdk/models/components/grouptype.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// GroupType - The type of user group -type GroupType string - -const ( - GroupTypeDepartment GroupType = "DEPARTMENT" - GroupTypeAll GroupType = "ALL" - GroupTypeTeam GroupType = "TEAM" - GroupTypeJobTitle GroupType = "JOB_TITLE" - GroupTypeRoleType GroupType = "ROLE_TYPE" - GroupTypeLocation GroupType = "LOCATION" - GroupTypeRegion GroupType = "REGION" - GroupTypeExternalGroup GroupType = "EXTERNAL_GROUP" -) - -func (e GroupType) ToPointer() *GroupType { - return &e -} -func (e *GroupType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "DEPARTMENT": - fallthrough - case "ALL": - fallthrough - case "TEAM": - fallthrough - case "JOB_TITLE": - fallthrough - case "ROLE_TYPE": - fallthrough - case "LOCATION": - fallthrough - case "REGION": - fallthrough - case "EXTERNAL_GROUP": - *e = GroupType(v) - return nil - default: - return fmt.Errorf("invalid value for GroupType: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/hotword.go b/tests/mockserver/internal/sdk/models/components/hotword.go deleted file mode 100644 index ed23ff8d..00000000 --- a/tests/mockserver/internal/sdk/models/components/hotword.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type Hotword struct { - Regex *string `json:"regex,omitempty"` - Proximity *HotwordProximity `json:"proximity,omitempty"` -} - -func (o *Hotword) GetRegex() *string { - if o == nil { - return nil - } - return o.Regex -} - -func (o *Hotword) GetProximity() *HotwordProximity { - if o == nil { - return nil - } - return o.Proximity -} diff --git a/tests/mockserver/internal/sdk/models/components/hotwordproximity.go b/tests/mockserver/internal/sdk/models/components/hotwordproximity.go deleted file mode 100644 index 611b62d7..00000000 --- a/tests/mockserver/internal/sdk/models/components/hotwordproximity.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type HotwordProximity struct { - WindowBefore *int64 `json:"windowBefore,omitempty"` - WindowAfter *int64 `json:"windowAfter,omitempty"` -} - -func (o *HotwordProximity) GetWindowBefore() *int64 { - if o == nil { - return nil - } - return o.WindowBefore -} - -func (o *HotwordProximity) GetWindowAfter() *int64 { - if o == nil { - return nil - } - return o.WindowAfter -} diff --git a/tests/mockserver/internal/sdk/models/components/httpmetadata.go b/tests/mockserver/internal/sdk/models/components/httpmetadata.go deleted file mode 100644 index e18bdc06..00000000 --- a/tests/mockserver/internal/sdk/models/components/httpmetadata.go +++ /dev/null @@ -1,28 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "net/http" -) - -type HTTPMetadata struct { - // Raw HTTP response; suitable for custom response parsing - Response *http.Response `json:"-"` - // Raw HTTP request; suitable for debugging - Request *http.Request `json:"-"` -} - -func (o *HTTPMetadata) GetResponse() *http.Response { - if o == nil { - return nil - } - return o.Response -} - -func (o *HTTPMetadata) GetRequest() *http.Request { - if o == nil { - return nil - } - return o.Request -} diff --git a/tests/mockserver/internal/sdk/models/components/iconconfig.go b/tests/mockserver/internal/sdk/models/components/iconconfig.go deleted file mode 100644 index 537d53a4..00000000 --- a/tests/mockserver/internal/sdk/models/components/iconconfig.go +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -type IconType string - -const ( - IconTypeCollection IconType = "COLLECTION" - IconTypeCustom IconType = "CUSTOM" - IconTypeDatasource IconType = "DATASOURCE" - IconTypeDatasourceInstance IconType = "DATASOURCE_INSTANCE" - IconTypeFavicon IconType = "FAVICON" - IconTypeFileType IconType = "FILE_TYPE" - IconTypeGeneratedBackground IconType = "GENERATED_BACKGROUND" - IconTypeGlyph IconType = "GLYPH" - IconTypeMimeType IconType = "MIME_TYPE" - IconTypeNoIcon IconType = "NO_ICON" - IconTypePerson IconType = "PERSON" - IconTypeReactions IconType = "REACTIONS" - IconTypeURL IconType = "URL" -) - -func (e IconType) ToPointer() *IconType { - return &e -} -func (e *IconType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "COLLECTION": - fallthrough - case "CUSTOM": - fallthrough - case "DATASOURCE": - fallthrough - case "DATASOURCE_INSTANCE": - fallthrough - case "FAVICON": - fallthrough - case "FILE_TYPE": - fallthrough - case "GENERATED_BACKGROUND": - fallthrough - case "GLYPH": - fallthrough - case "MIME_TYPE": - fallthrough - case "NO_ICON": - fallthrough - case "PERSON": - fallthrough - case "REACTIONS": - fallthrough - case "URL": - *e = IconType(v) - return nil - default: - return fmt.Errorf("invalid value for IconType: %v", v) - } -} - -// IconConfig - Defines how to render an icon -type IconConfig struct { - GeneratedBackgroundColorKey *string `json:"generatedBackgroundColorKey,omitempty"` - BackgroundColor *string `json:"backgroundColor,omitempty"` - Color *string `json:"color,omitempty"` - Key *string `json:"key,omitempty"` - IconType *IconType `json:"iconType,omitempty"` - // Whether the icon should be masked based on current theme. - Masked *bool `json:"masked,omitempty"` - // The name of the icon if applicable, e.g. the glyph name for `IconType.GLYPH` icons. - Name *string `json:"name,omitempty"` - // The URL to an image to be displayed if applicable, e.g. the URL for `iconType.URL` icons. - URL *string `json:"url,omitempty"` -} - -func (i IconConfig) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(i, "", false) -} - -func (i *IconConfig) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &i, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *IconConfig) GetGeneratedBackgroundColorKey() *string { - if o == nil { - return nil - } - return o.GeneratedBackgroundColorKey -} - -func (o *IconConfig) GetBackgroundColor() *string { - if o == nil { - return nil - } - return o.BackgroundColor -} - -func (o *IconConfig) GetColor() *string { - if o == nil { - return nil - } - return o.Color -} - -func (o *IconConfig) GetKey() *string { - if o == nil { - return nil - } - return o.Key -} - -func (o *IconConfig) GetIconType() *IconType { - if o == nil { - return nil - } - return o.IconType -} - -func (o *IconConfig) GetMasked() *bool { - if o == nil { - return nil - } - return o.Masked -} - -func (o *IconConfig) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *IconConfig) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} diff --git a/tests/mockserver/internal/sdk/models/components/indexdocumentrequest.go b/tests/mockserver/internal/sdk/models/components/indexdocumentrequest.go deleted file mode 100644 index 86a60a70..00000000 --- a/tests/mockserver/internal/sdk/models/components/indexdocumentrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// IndexDocumentRequest - Describes the request body of the /indexdocument API call -type IndexDocumentRequest struct { - // Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. - Version *int64 `json:"version,omitempty"` - // Indexable document structure - Document DocumentDefinition `json:"document"` -} - -func (o *IndexDocumentRequest) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} - -func (o *IndexDocumentRequest) GetDocument() DocumentDefinition { - if o == nil { - return DocumentDefinition{} - } - return o.Document -} diff --git a/tests/mockserver/internal/sdk/models/components/indexdocumentsrequest.go b/tests/mockserver/internal/sdk/models/components/indexdocumentsrequest.go deleted file mode 100644 index 759eb8b7..00000000 --- a/tests/mockserver/internal/sdk/models/components/indexdocumentsrequest.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// IndexDocumentsRequest - Describes the request body of the /indexdocuments API call -type IndexDocumentsRequest struct { - // Optional id parameter to identify and track a batch of documents. - UploadID *string `json:"uploadId,omitempty"` - // Datasource of the documents - Datasource string `json:"datasource"` - // Batch of documents being added/updated - Documents []DocumentDefinition `json:"documents"` -} - -func (o *IndexDocumentsRequest) GetUploadID() *string { - if o == nil { - return nil - } - return o.UploadID -} - -func (o *IndexDocumentsRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *IndexDocumentsRequest) GetDocuments() []DocumentDefinition { - if o == nil { - return []DocumentDefinition{} - } - return o.Documents -} diff --git a/tests/mockserver/internal/sdk/models/components/indexemployeerequest.go b/tests/mockserver/internal/sdk/models/components/indexemployeerequest.go deleted file mode 100644 index 8d08b0b7..00000000 --- a/tests/mockserver/internal/sdk/models/components/indexemployeerequest.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// IndexEmployeeRequest - Info about an employee and optional version for that info -type IndexEmployeeRequest struct { - // Describes employee info - Employee EmployeeInfoDefinition `json:"employee"` - // Version number for the employee object. If absent or 0 then no version checks are done - Version *int64 `json:"version,omitempty"` -} - -func (o *IndexEmployeeRequest) GetEmployee() EmployeeInfoDefinition { - if o == nil { - return EmployeeInfoDefinition{} - } - return o.Employee -} - -func (o *IndexEmployeeRequest) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} diff --git a/tests/mockserver/internal/sdk/models/components/indexgrouprequest.go b/tests/mockserver/internal/sdk/models/components/indexgrouprequest.go deleted file mode 100644 index acd400f6..00000000 --- a/tests/mockserver/internal/sdk/models/components/indexgrouprequest.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// IndexGroupRequest - Describes the request body of the /indexgroup API call -type IndexGroupRequest struct { - // Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. - Version *int64 `json:"version,omitempty"` - // The datasource for which the group is added - Datasource string `json:"datasource"` - // describes a group in the datasource - Group DatasourceGroupDefinition `json:"group"` -} - -func (o *IndexGroupRequest) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} - -func (o *IndexGroupRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *IndexGroupRequest) GetGroup() DatasourceGroupDefinition { - if o == nil { - return DatasourceGroupDefinition{} - } - return o.Group -} diff --git a/tests/mockserver/internal/sdk/models/components/indexingshortcut.go b/tests/mockserver/internal/sdk/models/components/indexingshortcut.go deleted file mode 100644 index b7b7ca15..00000000 --- a/tests/mockserver/internal/sdk/models/components/indexingshortcut.go +++ /dev/null @@ -1,87 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type IndexingShortcut struct { - // link text following the viewPrefix as entered by the user. For example, if the view prefix is `go/` and the shortened URL is `go/abc`, then `abc` is the inputAlias. - InputAlias string `json:"inputAlias"` - // A short, plain text blurb to help people understand the intent of the shortcut. - Description *string `json:"description,omitempty"` - // destination URL for the shortcut. - DestinationURL string `json:"destinationUrl"` - // Email of the user who created this shortcut. - CreatedBy string `json:"createdBy"` - // The time the shortcut was created in epoch seconds. - CreateTime *int64 `json:"createTime,omitempty"` - // Email of the user who last updated this shortcut. - UpdatedBy *string `json:"updatedBy,omitempty"` - // The time the shortcut was updated in epoch seconds. - UpdateTime *int64 `json:"updateTime,omitempty"` - // Whether this shortcut is unlisted or not. Unlisted shortcuts are visible to author and admins only. - Unlisted *bool `json:"unlisted,omitempty"` - // For variable shortcuts, contains the URL template; note, `destinationUrl` contains default URL. - URLTemplate *string `json:"urlTemplate,omitempty"` -} - -func (o *IndexingShortcut) GetInputAlias() string { - if o == nil { - return "" - } - return o.InputAlias -} - -func (o *IndexingShortcut) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *IndexingShortcut) GetDestinationURL() string { - if o == nil { - return "" - } - return o.DestinationURL -} - -func (o *IndexingShortcut) GetCreatedBy() string { - if o == nil { - return "" - } - return o.CreatedBy -} - -func (o *IndexingShortcut) GetCreateTime() *int64 { - if o == nil { - return nil - } - return o.CreateTime -} - -func (o *IndexingShortcut) GetUpdatedBy() *string { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *IndexingShortcut) GetUpdateTime() *int64 { - if o == nil { - return nil - } - return o.UpdateTime -} - -func (o *IndexingShortcut) GetUnlisted() *bool { - if o == nil { - return nil - } - return o.Unlisted -} - -func (o *IndexingShortcut) GetURLTemplate() *string { - if o == nil { - return nil - } - return o.URLTemplate -} diff --git a/tests/mockserver/internal/sdk/models/components/indexmembershiprequest.go b/tests/mockserver/internal/sdk/models/components/indexmembershiprequest.go deleted file mode 100644 index e7b2a46c..00000000 --- a/tests/mockserver/internal/sdk/models/components/indexmembershiprequest.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// IndexMembershipRequest - Describes the request body of the /indexmembership API call -type IndexMembershipRequest struct { - // Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. - Version *int64 `json:"version,omitempty"` - // The datasource for which the membership is added - Datasource string `json:"datasource"` - // describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. - Membership DatasourceMembershipDefinition `json:"membership"` -} - -func (o *IndexMembershipRequest) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} - -func (o *IndexMembershipRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *IndexMembershipRequest) GetMembership() DatasourceMembershipDefinition { - if o == nil { - return DatasourceMembershipDefinition{} - } - return o.Membership -} diff --git a/tests/mockserver/internal/sdk/models/components/indexstatus.go b/tests/mockserver/internal/sdk/models/components/indexstatus.go deleted file mode 100644 index f170444a..00000000 --- a/tests/mockserver/internal/sdk/models/components/indexstatus.go +++ /dev/null @@ -1,40 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -type IndexStatus struct { - // When the document was last crawled - LastCrawledTime *time.Time `json:"lastCrawledTime,omitempty"` - // When the document was last indexed - LastIndexedTime *time.Time `json:"lastIndexedTime,omitempty"` -} - -func (i IndexStatus) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(i, "", false) -} - -func (i *IndexStatus) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &i, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *IndexStatus) GetLastCrawledTime() *time.Time { - if o == nil { - return nil - } - return o.LastCrawledTime -} - -func (o *IndexStatus) GetLastIndexedTime() *time.Time { - if o == nil { - return nil - } - return o.LastIndexedTime -} diff --git a/tests/mockserver/internal/sdk/models/components/indexteamrequest.go b/tests/mockserver/internal/sdk/models/components/indexteamrequest.go deleted file mode 100644 index 64f2b364..00000000 --- a/tests/mockserver/internal/sdk/models/components/indexteamrequest.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// IndexTeamRequest - Info about a team and optional version for that info -type IndexTeamRequest struct { - // Information about an employee's team - Team TeamInfoDefinition `json:"team"` - // Version number for the team object. If absent or 0 then no version checks are done - Version *int64 `json:"version,omitempty"` -} - -func (o *IndexTeamRequest) GetTeam() TeamInfoDefinition { - if o == nil { - return TeamInfoDefinition{} - } - return o.Team -} - -func (o *IndexTeamRequest) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} diff --git a/tests/mockserver/internal/sdk/models/components/indexuserrequest.go b/tests/mockserver/internal/sdk/models/components/indexuserrequest.go deleted file mode 100644 index daf6de74..00000000 --- a/tests/mockserver/internal/sdk/models/components/indexuserrequest.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// IndexUserRequest - Describes the request body of the /indexuser API call -type IndexUserRequest struct { - // Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. - Version *int64 `json:"version,omitempty"` - // The datasource for which the user is added - Datasource string `json:"datasource"` - // describes a user in the datasource - User DatasourceUserDefinition `json:"user"` -} - -func (o *IndexUserRequest) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} - -func (o *IndexUserRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *IndexUserRequest) GetUser() DatasourceUserDefinition { - if o == nil { - return DatasourceUserDefinition{} - } - return o.User -} diff --git a/tests/mockserver/internal/sdk/models/components/inputoptions.go b/tests/mockserver/internal/sdk/models/components/inputoptions.go deleted file mode 100644 index 51e07919..00000000 --- a/tests/mockserver/internal/sdk/models/components/inputoptions.go +++ /dev/null @@ -1,132 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// DatasourcesType - The types of datasource for which to run the report/policy. -type DatasourcesType string - -const ( - DatasourcesTypeAll DatasourcesType = "ALL" - DatasourcesTypeCustom DatasourcesType = "CUSTOM" -) - -func (e DatasourcesType) ToPointer() *DatasourcesType { - return &e -} -func (e *DatasourcesType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ALL": - fallthrough - case "CUSTOM": - *e = DatasourcesType(v) - return nil - default: - return fmt.Errorf("invalid value for DatasourcesType: %v", v) - } -} - -// TimePeriodType - Type of time period for which to run the report/policy. PAST_DAY is deprecated. -type TimePeriodType string - -const ( - TimePeriodTypeAllTime TimePeriodType = "ALL_TIME" - TimePeriodTypePastYear TimePeriodType = "PAST_YEAR" - TimePeriodTypePastDay TimePeriodType = "PAST_DAY" - TimePeriodTypeCustom TimePeriodType = "CUSTOM" - TimePeriodTypeLastNDays TimePeriodType = "LAST_N_DAYS" -) - -func (e TimePeriodType) ToPointer() *TimePeriodType { - return &e -} -func (e *TimePeriodType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ALL_TIME": - fallthrough - case "PAST_YEAR": - fallthrough - case "PAST_DAY": - fallthrough - case "CUSTOM": - fallthrough - case "LAST_N_DAYS": - *e = TimePeriodType(v) - return nil - default: - return fmt.Errorf("invalid value for TimePeriodType: %v", v) - } -} - -// InputOptions - Controls which data-sources and what time-range to include in scans. -type InputOptions struct { - // list of url regex matching documents excluded from report - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - URLGreenlist []string `json:"urlGreenlist,omitempty"` - // The types of datasource for which to run the report/policy. - DatasourcesType *DatasourcesType `json:"datasourcesType,omitempty"` - // List of datasources to consider for report. DEPRECATED - use datasourceInstances instead. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Datasources []string `json:"datasources,omitempty"` - // List of datasource instances to consider for report/policy. - DatasourceInstances []string `json:"datasourceInstances,omitempty"` - // Type of time period for which to run the report/policy. PAST_DAY is deprecated. - TimePeriodType *TimePeriodType `json:"timePeriodType,omitempty"` - CustomTimeRange *TimeRange `json:"customTimeRange,omitempty"` -} - -func (o *InputOptions) GetURLGreenlist() []string { - if o == nil { - return nil - } - return o.URLGreenlist -} - -func (o *InputOptions) GetDatasourcesType() *DatasourcesType { - if o == nil { - return nil - } - return o.DatasourcesType -} - -func (o *InputOptions) GetDatasources() []string { - if o == nil { - return nil - } - return o.Datasources -} - -func (o *InputOptions) GetDatasourceInstances() []string { - if o == nil { - return nil - } - return o.DatasourceInstances -} - -func (o *InputOptions) GetTimePeriodType() *TimePeriodType { - if o == nil { - return nil - } - return o.TimePeriodType -} - -func (o *InputOptions) GetCustomTimeRange() *TimeRange { - if o == nil { - return nil - } - return o.CustomTimeRange -} diff --git a/tests/mockserver/internal/sdk/models/components/insightsagentsrequestoptions.go b/tests/mockserver/internal/sdk/models/components/insightsagentsrequestoptions.go deleted file mode 100644 index 6b825aec..00000000 --- a/tests/mockserver/internal/sdk/models/components/insightsagentsrequestoptions.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type InsightsAgentsRequestOptions struct { - // IDs of the Agents for which Insights should be returned. An empty array signifies all. - AgentIds []string `json:"agentIds,omitempty"` -} - -func (o *InsightsAgentsRequestOptions) GetAgentIds() []string { - if o == nil { - return nil - } - return o.AgentIds -} diff --git a/tests/mockserver/internal/sdk/models/components/insightsaiapprequestoptions.go b/tests/mockserver/internal/sdk/models/components/insightsaiapprequestoptions.go deleted file mode 100644 index 7275316c..00000000 --- a/tests/mockserver/internal/sdk/models/components/insightsaiapprequestoptions.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type InsightsAiAppRequestOptions struct { - // IDs of the AI Apps for which Insights should be returned. An empty array signifies all. - AiAppIds []string `json:"aiAppIds,omitempty"` -} - -func (o *InsightsAiAppRequestOptions) GetAiAppIds() []string { - if o == nil { - return nil - } - return o.AiAppIds -} diff --git a/tests/mockserver/internal/sdk/models/components/insightsrequest.go b/tests/mockserver/internal/sdk/models/components/insightsrequest.go deleted file mode 100644 index 0cd7481b..00000000 --- a/tests/mockserver/internal/sdk/models/components/insightsrequest.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type InsightsRequestCategory string - -const ( - InsightsRequestCategoryAgents InsightsRequestCategory = "AGENTS" - InsightsRequestCategoryAi InsightsRequestCategory = "AI" - InsightsRequestCategoryAiApps InsightsRequestCategory = "AI_APPS" - InsightsRequestCategoryAnnouncements InsightsRequestCategory = "ANNOUNCEMENTS" - InsightsRequestCategoryAnswers InsightsRequestCategory = "ANSWERS" - InsightsRequestCategoryCollections InsightsRequestCategory = "COLLECTIONS" - InsightsRequestCategoryContent InsightsRequestCategory = "CONTENT" - InsightsRequestCategoryGleanAssist InsightsRequestCategory = "GLEAN_ASSIST" - InsightsRequestCategoryQueries InsightsRequestCategory = "QUERIES" - InsightsRequestCategoryShortcuts InsightsRequestCategory = "SHORTCUTS" - InsightsRequestCategoryUsers InsightsRequestCategory = "USERS" -) - -func (e InsightsRequestCategory) ToPointer() *InsightsRequestCategory { - return &e -} -func (e *InsightsRequestCategory) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "AGENTS": - fallthrough - case "AI": - fallthrough - case "AI_APPS": - fallthrough - case "ANNOUNCEMENTS": - fallthrough - case "ANSWERS": - fallthrough - case "COLLECTIONS": - fallthrough - case "CONTENT": - fallthrough - case "GLEAN_ASSIST": - fallthrough - case "QUERIES": - fallthrough - case "SHORTCUTS": - fallthrough - case "USERS": - *e = InsightsRequestCategory(v) - return nil - default: - return fmt.Errorf("invalid value for InsightsRequestCategory: %v", v) - } -} - -type AssistantActivityType string - -const ( - AssistantActivityTypeGleanChat AssistantActivityType = "GLEAN_CHAT" - AssistantActivityTypeAiSummary AssistantActivityType = "AI_SUMMARY" - AssistantActivityTypeAiAnswer AssistantActivityType = "AI_ANSWER" - AssistantActivityTypeGleanbotResponse AssistantActivityType = "GLEANBOT_RESPONSE" -) - -func (e AssistantActivityType) ToPointer() *AssistantActivityType { - return &e -} -func (e *AssistantActivityType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "GLEAN_CHAT": - fallthrough - case "AI_SUMMARY": - fallthrough - case "AI_ANSWER": - fallthrough - case "GLEANBOT_RESPONSE": - *e = AssistantActivityType(v) - return nil - default: - return fmt.Errorf("invalid value for AssistantActivityType: %v", v) - } -} - -type InsightsRequest struct { - // Categories of data requested. Request can include single or multiple types. - Categories []InsightsRequestCategory `json:"categories"` - // Departments that the data is requested for. If this is empty, corresponds to whole company. - Departments []string `json:"departments,omitempty"` - DayRange *Period `json:"dayRange,omitempty"` - AiAppRequestOptions *InsightsAiAppRequestOptions `json:"aiAppRequestOptions,omitempty"` - AgentsRequestOptions *InsightsAgentsRequestOptions `json:"agentsRequestOptions,omitempty"` - // Types of activity that should count in the definition of an Assistant Active User. Affects only insights for AI category. - AssistantActivityTypes []AssistantActivityType `json:"assistantActivityTypes,omitempty"` - // If true, suppresses the generation of per-user Insights in the response. Default is false. - DisablePerUserInsights *bool `json:"disablePerUserInsights,omitempty"` -} - -func (o *InsightsRequest) GetCategories() []InsightsRequestCategory { - if o == nil { - return []InsightsRequestCategory{} - } - return o.Categories -} - -func (o *InsightsRequest) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} - -func (o *InsightsRequest) GetDayRange() *Period { - if o == nil { - return nil - } - return o.DayRange -} - -func (o *InsightsRequest) GetAiAppRequestOptions() *InsightsAiAppRequestOptions { - if o == nil { - return nil - } - return o.AiAppRequestOptions -} - -func (o *InsightsRequest) GetAgentsRequestOptions() *InsightsAgentsRequestOptions { - if o == nil { - return nil - } - return o.AgentsRequestOptions -} - -func (o *InsightsRequest) GetAssistantActivityTypes() []AssistantActivityType { - if o == nil { - return nil - } - return o.AssistantActivityTypes -} - -func (o *InsightsRequest) GetDisablePerUserInsights() *bool { - if o == nil { - return nil - } - return o.DisablePerUserInsights -} diff --git a/tests/mockserver/internal/sdk/models/components/insightsresponse.go b/tests/mockserver/internal/sdk/models/components/insightsresponse.go deleted file mode 100644 index fe65a737..00000000 --- a/tests/mockserver/internal/sdk/models/components/insightsresponse.go +++ /dev/null @@ -1,112 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type InsightsResponse struct { - // List of timeseries to make charts (if applicable). - Timeseries []LabeledCountInfo `json:"timeseries,omitempty"` - Users *UserInsightsResponse `json:"users,omitempty"` - Content *ContentInsightsResponse `json:"content,omitempty"` - Queries *QueryInsightsResponse `json:"queries,omitempty"` - Collections *ContentInsightsResponse `json:"collections,omitempty"` - CollectionsV2 *ContentInsightsResponse `json:"collectionsV2,omitempty"` - Shortcuts *ShortcutInsightsResponse `json:"shortcuts,omitempty"` - Announcements *ContentInsightsResponse `json:"announcements,omitempty"` - Answers *ContentInsightsResponse `json:"answers,omitempty"` - Ai *AiInsightsResponse `json:"ai,omitempty"` - AiApps *AiAppsInsightsResponse `json:"aiApps,omitempty"` - GleanAssist *GleanAssistInsightsResponse `json:"gleanAssist,omitempty"` - // list of all departments. - Departments []string `json:"departments,omitempty"` -} - -func (o *InsightsResponse) GetTimeseries() []LabeledCountInfo { - if o == nil { - return nil - } - return o.Timeseries -} - -func (o *InsightsResponse) GetUsers() *UserInsightsResponse { - if o == nil { - return nil - } - return o.Users -} - -func (o *InsightsResponse) GetContent() *ContentInsightsResponse { - if o == nil { - return nil - } - return o.Content -} - -func (o *InsightsResponse) GetQueries() *QueryInsightsResponse { - if o == nil { - return nil - } - return o.Queries -} - -func (o *InsightsResponse) GetCollections() *ContentInsightsResponse { - if o == nil { - return nil - } - return o.Collections -} - -func (o *InsightsResponse) GetCollectionsV2() *ContentInsightsResponse { - if o == nil { - return nil - } - return o.CollectionsV2 -} - -func (o *InsightsResponse) GetShortcuts() *ShortcutInsightsResponse { - if o == nil { - return nil - } - return o.Shortcuts -} - -func (o *InsightsResponse) GetAnnouncements() *ContentInsightsResponse { - if o == nil { - return nil - } - return o.Announcements -} - -func (o *InsightsResponse) GetAnswers() *ContentInsightsResponse { - if o == nil { - return nil - } - return o.Answers -} - -func (o *InsightsResponse) GetAi() *AiInsightsResponse { - if o == nil { - return nil - } - return o.Ai -} - -func (o *InsightsResponse) GetAiApps() *AiAppsInsightsResponse { - if o == nil { - return nil - } - return o.AiApps -} - -func (o *InsightsResponse) GetGleanAssist() *GleanAssistInsightsResponse { - if o == nil { - return nil - } - return o.GleanAssist -} - -func (o *InsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} diff --git a/tests/mockserver/internal/sdk/models/components/invalidoperatorvalueerror.go b/tests/mockserver/internal/sdk/models/components/invalidoperatorvalueerror.go deleted file mode 100644 index a59e0100..00000000 --- a/tests/mockserver/internal/sdk/models/components/invalidoperatorvalueerror.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type InvalidOperatorValueError struct { - // The operator key that has an invalid value. - Key *string `json:"key,omitempty"` - // The invalid operator value. - Value *string `json:"value,omitempty"` -} - -func (o *InvalidOperatorValueError) GetKey() *string { - if o == nil { - return nil - } - return o.Key -} - -func (o *InvalidOperatorValueError) GetValue() *string { - if o == nil { - return nil - } - return o.Value -} diff --git a/tests/mockserver/internal/sdk/models/components/inviteinfo.go b/tests/mockserver/internal/sdk/models/components/inviteinfo.go deleted file mode 100644 index 84469a16..00000000 --- a/tests/mockserver/internal/sdk/models/components/inviteinfo.go +++ /dev/null @@ -1,71 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -// InviteInfo - Information regarding the invite status of a person. -type InviteInfo struct { - // The time this person signed up in ISO format (ISO 8601). - SignUpTime *time.Time `json:"signUpTime,omitempty"` - // Latest invites received by the user for each channel - Invites []ChannelInviteInfo `json:"invites,omitempty"` - Inviter *Person `json:"inviter,omitempty"` - // The time this person was invited in ISO format (ISO 8601). - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - InviteTime *time.Time `json:"inviteTime,omitempty"` - // The time this person was reminded in ISO format (ISO 8601) if a reminder was sent. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - ReminderTime *time.Time `json:"reminderTime,omitempty"` -} - -func (i InviteInfo) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(i, "", false) -} - -func (i *InviteInfo) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &i, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *InviteInfo) GetSignUpTime() *time.Time { - if o == nil { - return nil - } - return o.SignUpTime -} - -func (o *InviteInfo) GetInvites() []ChannelInviteInfo { - if o == nil { - return nil - } - return o.Invites -} - -func (o *InviteInfo) GetInviter() *Person { - if o == nil { - return nil - } - return o.Inviter -} - -func (o *InviteInfo) GetInviteTime() *time.Time { - if o == nil { - return nil - } - return o.InviteTime -} - -func (o *InviteInfo) GetReminderTime() *time.Time { - if o == nil { - return nil - } - return o.ReminderTime -} diff --git a/tests/mockserver/internal/sdk/models/components/labeledcountinfo.go b/tests/mockserver/internal/sdk/models/components/labeledcountinfo.go deleted file mode 100644 index 6ddd153c..00000000 --- a/tests/mockserver/internal/sdk/models/components/labeledcountinfo.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type LabeledCountInfo struct { - // Label for the included count information. - Label string `json:"label"` - // List of data points for counts for a given date period. - CountInfo []CountInfo `json:"countInfo,omitempty"` -} - -func (o *LabeledCountInfo) GetLabel() string { - if o == nil { - return "" - } - return o.Label -} - -func (o *LabeledCountInfo) GetCountInfo() []CountInfo { - if o == nil { - return nil - } - return o.CountInfo -} diff --git a/tests/mockserver/internal/sdk/models/components/listanswersrequest.go b/tests/mockserver/internal/sdk/models/components/listanswersrequest.go deleted file mode 100644 index 04f62de3..00000000 --- a/tests/mockserver/internal/sdk/models/components/listanswersrequest.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ListAnswersRequest struct { - // The Answer Board Id to list answers on. - BoardID *int64 `json:"boardId,omitempty"` -} - -func (o *ListAnswersRequest) GetBoardID() *int64 { - if o == nil { - return nil - } - return o.BoardID -} diff --git a/tests/mockserver/internal/sdk/models/components/listanswersresponse.go b/tests/mockserver/internal/sdk/models/components/listanswersresponse.go deleted file mode 100644 index fe8dd286..00000000 --- a/tests/mockserver/internal/sdk/models/components/listanswersresponse.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ListAnswersResponse struct { - // List of answers with tracking tokens. - AnswerResults []AnswerResult `json:"answerResults"` -} - -func (o *ListAnswersResponse) GetAnswerResults() []AnswerResult { - if o == nil { - return []AnswerResult{} - } - return o.AnswerResults -} diff --git a/tests/mockserver/internal/sdk/models/components/listchatsresponse.go b/tests/mockserver/internal/sdk/models/components/listchatsresponse.go deleted file mode 100644 index 9a646b6b..00000000 --- a/tests/mockserver/internal/sdk/models/components/listchatsresponse.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ListChatsResponse struct { - ChatResults []ChatMetadataResult `json:"chatResults,omitempty"` -} - -func (o *ListChatsResponse) GetChatResults() []ChatMetadataResult { - if o == nil { - return nil - } - return o.ChatResults -} diff --git a/tests/mockserver/internal/sdk/models/components/listcollectionsrequest.go b/tests/mockserver/internal/sdk/models/components/listcollectionsrequest.go deleted file mode 100644 index 3dec9559..00000000 --- a/tests/mockserver/internal/sdk/models/components/listcollectionsrequest.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ListCollectionsRequest struct { - // Whether to include the audience filters with the listed Collections. - IncludeAudience *bool `json:"includeAudience,omitempty"` - // Whether to include the editor roles with the listed Collections. - IncludeRoles *bool `json:"includeRoles,omitempty"` - // The datasource type this Collection can hold. - // ANSWERS - for Collections representing answer boards - AllowedDatasource *string `json:"allowedDatasource,omitempty"` -} - -func (o *ListCollectionsRequest) GetIncludeAudience() *bool { - if o == nil { - return nil - } - return o.IncludeAudience -} - -func (o *ListCollectionsRequest) GetIncludeRoles() *bool { - if o == nil { - return nil - } - return o.IncludeRoles -} - -func (o *ListCollectionsRequest) GetAllowedDatasource() *string { - if o == nil { - return nil - } - return o.AllowedDatasource -} diff --git a/tests/mockserver/internal/sdk/models/components/listcollectionsresponse.go b/tests/mockserver/internal/sdk/models/components/listcollectionsresponse.go deleted file mode 100644 index 77a9eaff..00000000 --- a/tests/mockserver/internal/sdk/models/components/listcollectionsresponse.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ListCollectionsResponse struct { - // List of all Collections, no Collection items are fetched. - Collections []Collection `json:"collections"` -} - -func (o *ListCollectionsResponse) GetCollections() []Collection { - if o == nil { - return []Collection{} - } - return o.Collections -} diff --git a/tests/mockserver/internal/sdk/models/components/listdlpreportsresponse.go b/tests/mockserver/internal/sdk/models/components/listdlpreportsresponse.go deleted file mode 100644 index 25f297b5..00000000 --- a/tests/mockserver/internal/sdk/models/components/listdlpreportsresponse.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ListDlpReportsResponse struct { - Reports []DlpReport `json:"reports,omitempty"` -} - -func (o *ListDlpReportsResponse) GetReports() []DlpReport { - if o == nil { - return nil - } - return o.Reports -} diff --git a/tests/mockserver/internal/sdk/models/components/listentitiesrequest.go b/tests/mockserver/internal/sdk/models/components/listentitiesrequest.go deleted file mode 100644 index 339c8ffc..00000000 --- a/tests/mockserver/internal/sdk/models/components/listentitiesrequest.go +++ /dev/null @@ -1,214 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -type ListEntitiesRequestEntityType string - -const ( - ListEntitiesRequestEntityTypePeople ListEntitiesRequestEntityType = "PEOPLE" - ListEntitiesRequestEntityTypeTeams ListEntitiesRequestEntityType = "TEAMS" - ListEntitiesRequestEntityTypeCustomEntities ListEntitiesRequestEntityType = "CUSTOM_ENTITIES" -) - -func (e ListEntitiesRequestEntityType) ToPointer() *ListEntitiesRequestEntityType { - return &e -} -func (e *ListEntitiesRequestEntityType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "PEOPLE": - fallthrough - case "TEAMS": - fallthrough - case "CUSTOM_ENTITIES": - *e = ListEntitiesRequestEntityType(v) - return nil - default: - return fmt.Errorf("invalid value for ListEntitiesRequestEntityType: %v", v) - } -} - -type ListEntitiesRequestIncludeField string - -const ( - ListEntitiesRequestIncludeFieldPeople ListEntitiesRequestIncludeField = "PEOPLE" - ListEntitiesRequestIncludeFieldTeams ListEntitiesRequestIncludeField = "TEAMS" - ListEntitiesRequestIncludeFieldPeopleDistance ListEntitiesRequestIncludeField = "PEOPLE_DISTANCE" - ListEntitiesRequestIncludeFieldPermissions ListEntitiesRequestIncludeField = "PERMISSIONS" - ListEntitiesRequestIncludeFieldFacets ListEntitiesRequestIncludeField = "FACETS" - ListEntitiesRequestIncludeFieldInviteInfo ListEntitiesRequestIncludeField = "INVITE_INFO" - ListEntitiesRequestIncludeFieldLastExtensionUse ListEntitiesRequestIncludeField = "LAST_EXTENSION_USE" - ListEntitiesRequestIncludeFieldManagementDetails ListEntitiesRequestIncludeField = "MANAGEMENT_DETAILS" - ListEntitiesRequestIncludeFieldUnprocessedTeams ListEntitiesRequestIncludeField = "UNPROCESSED_TEAMS" -) - -func (e ListEntitiesRequestIncludeField) ToPointer() *ListEntitiesRequestIncludeField { - return &e -} -func (e *ListEntitiesRequestIncludeField) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "PEOPLE": - fallthrough - case "TEAMS": - fallthrough - case "PEOPLE_DISTANCE": - fallthrough - case "PERMISSIONS": - fallthrough - case "FACETS": - fallthrough - case "INVITE_INFO": - fallthrough - case "LAST_EXTENSION_USE": - fallthrough - case "MANAGEMENT_DETAILS": - fallthrough - case "UNPROCESSED_TEAMS": - *e = ListEntitiesRequestIncludeField(v) - return nil - default: - return fmt.Errorf("invalid value for ListEntitiesRequestIncludeField: %v", v) - } -} - -// RequestType - The type of request being made. -type RequestType string - -const ( - RequestTypeStandard RequestType = "STANDARD" - RequestTypeFullDirectory RequestType = "FULL_DIRECTORY" -) - -func (e RequestType) ToPointer() *RequestType { - return &e -} -func (e *RequestType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "STANDARD": - fallthrough - case "FULL_DIRECTORY": - *e = RequestType(v) - return nil - default: - return fmt.Errorf("invalid value for RequestType: %v", v) - } -} - -type ListEntitiesRequest struct { - Filter []FacetFilter `json:"filter,omitempty"` - // Use EntitiesSortOrder enum for SortOptions.sortBy - Sort []SortOptions `json:"sort,omitempty"` - EntityType *ListEntitiesRequestEntityType `default:"PEOPLE" json:"entityType"` - // The datasource associated with the entity type, most commonly used with CUSTOM_ENTITIES - Datasource *string `json:"datasource,omitempty"` - // A query string to search for entities that each entity in the response must conform to. An empty query does not filter any entities. - Query *string `json:"query,omitempty"` - // List of entity fields to return (that aren't returned by default) - IncludeFields []ListEntitiesRequestIncludeField `json:"includeFields,omitempty"` - // Hint to the server about how many results to send back. Server may return less. - PageSize *int64 `json:"pageSize,omitempty"` - // Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. - Cursor *string `json:"cursor,omitempty"` - // A string denoting the search surface from which the endpoint is called. - Source *string `json:"source,omitempty"` - // The type of request being made. - RequestType *RequestType `default:"STANDARD" json:"requestType"` -} - -func (l ListEntitiesRequest) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(l, "", false) -} - -func (l *ListEntitiesRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &l, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *ListEntitiesRequest) GetFilter() []FacetFilter { - if o == nil { - return nil - } - return o.Filter -} - -func (o *ListEntitiesRequest) GetSort() []SortOptions { - if o == nil { - return nil - } - return o.Sort -} - -func (o *ListEntitiesRequest) GetEntityType() *ListEntitiesRequestEntityType { - if o == nil { - return nil - } - return o.EntityType -} - -func (o *ListEntitiesRequest) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *ListEntitiesRequest) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - -func (o *ListEntitiesRequest) GetIncludeFields() []ListEntitiesRequestIncludeField { - if o == nil { - return nil - } - return o.IncludeFields -} - -func (o *ListEntitiesRequest) GetPageSize() *int64 { - if o == nil { - return nil - } - return o.PageSize -} - -func (o *ListEntitiesRequest) GetCursor() *string { - if o == nil { - return nil - } - return o.Cursor -} - -func (o *ListEntitiesRequest) GetSource() *string { - if o == nil { - return nil - } - return o.Source -} - -func (o *ListEntitiesRequest) GetRequestType() *RequestType { - if o == nil { - return nil - } - return o.RequestType -} diff --git a/tests/mockserver/internal/sdk/models/components/listentitiesresponse.go b/tests/mockserver/internal/sdk/models/components/listentitiesresponse.go deleted file mode 100644 index fdfcc5a4..00000000 --- a/tests/mockserver/internal/sdk/models/components/listentitiesresponse.go +++ /dev/null @@ -1,83 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ListEntitiesResponse struct { - Results []Person `json:"results,omitempty"` - TeamResults []Team `json:"teamResults,omitempty"` - CustomEntityResults []CustomEntity `json:"customEntityResults,omitempty"` - FacetResults []FacetResult `json:"facetResults,omitempty"` - // Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. - Cursor *string `json:"cursor,omitempty"` - // The total number of entities available - TotalCount *int64 `json:"totalCount,omitempty"` - // Whether or not more entities can be fetched. - HasMoreResults *bool `json:"hasMoreResults,omitempty"` - // Sort options from EntitiesSortOrder supported for this response. Default is empty list. - SortOptions []EntitiesSortOrder `json:"sortOptions,omitempty"` - // list of Person attributes that are custom setup by deployment - CustomFacetNames []string `json:"customFacetNames,omitempty"` -} - -func (o *ListEntitiesResponse) GetResults() []Person { - if o == nil { - return nil - } - return o.Results -} - -func (o *ListEntitiesResponse) GetTeamResults() []Team { - if o == nil { - return nil - } - return o.TeamResults -} - -func (o *ListEntitiesResponse) GetCustomEntityResults() []CustomEntity { - if o == nil { - return nil - } - return o.CustomEntityResults -} - -func (o *ListEntitiesResponse) GetFacetResults() []FacetResult { - if o == nil { - return nil - } - return o.FacetResults -} - -func (o *ListEntitiesResponse) GetCursor() *string { - if o == nil { - return nil - } - return o.Cursor -} - -func (o *ListEntitiesResponse) GetTotalCount() *int64 { - if o == nil { - return nil - } - return o.TotalCount -} - -func (o *ListEntitiesResponse) GetHasMoreResults() *bool { - if o == nil { - return nil - } - return o.HasMoreResults -} - -func (o *ListEntitiesResponse) GetSortOptions() []EntitiesSortOrder { - if o == nil { - return nil - } - return o.SortOptions -} - -func (o *ListEntitiesResponse) GetCustomFacetNames() []string { - if o == nil { - return nil - } - return o.CustomFacetNames -} diff --git a/tests/mockserver/internal/sdk/models/components/listpinsresponse.go b/tests/mockserver/internal/sdk/models/components/listpinsresponse.go deleted file mode 100644 index cbf8b276..00000000 --- a/tests/mockserver/internal/sdk/models/components/listpinsresponse.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ListPinsResponse struct { - // List of pinned documents. - Pins []PinDocument `json:"pins"` -} - -func (o *ListPinsResponse) GetPins() []PinDocument { - if o == nil { - return []PinDocument{} - } - return o.Pins -} diff --git a/tests/mockserver/internal/sdk/models/components/listshortcutspaginatedrequest.go b/tests/mockserver/internal/sdk/models/components/listshortcutspaginatedrequest.go deleted file mode 100644 index 40562b5b..00000000 --- a/tests/mockserver/internal/sdk/models/components/listshortcutspaginatedrequest.go +++ /dev/null @@ -1,89 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type ListShortcutsPaginatedRequestIncludeField string - -const ( - ListShortcutsPaginatedRequestIncludeFieldFacets ListShortcutsPaginatedRequestIncludeField = "FACETS" - ListShortcutsPaginatedRequestIncludeFieldPeopleDetails ListShortcutsPaginatedRequestIncludeField = "PEOPLE_DETAILS" -) - -func (e ListShortcutsPaginatedRequestIncludeField) ToPointer() *ListShortcutsPaginatedRequestIncludeField { - return &e -} -func (e *ListShortcutsPaginatedRequestIncludeField) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "FACETS": - fallthrough - case "PEOPLE_DETAILS": - *e = ListShortcutsPaginatedRequestIncludeField(v) - return nil - default: - return fmt.Errorf("invalid value for ListShortcutsPaginatedRequestIncludeField: %v", v) - } -} - -type ListShortcutsPaginatedRequest struct { - // Array of fields/data to be included in response that are not included by default - IncludeFields []ListShortcutsPaginatedRequestIncludeField `json:"includeFields,omitempty"` - PageSize int64 `json:"pageSize"` - // A token specifying the position in the overall results to start at. Received from the endpoint and iterated back. Currently being used as page no (as we implement offset pagination) - Cursor *string `json:"cursor,omitempty"` - // A list of filters for the query. An AND is assumed between different filters. We support filters on Go Link name, author, department and type. - Filters []FacetFilter `json:"filters,omitempty"` - Sort *SortOptions `json:"sort,omitempty"` - // Search query that should be a substring in atleast one of the fields (alias , inputAlias, destinationUrl, description). Empty query does not filter shortcuts. - Query *string `json:"query,omitempty"` -} - -func (o *ListShortcutsPaginatedRequest) GetIncludeFields() []ListShortcutsPaginatedRequestIncludeField { - if o == nil { - return nil - } - return o.IncludeFields -} - -func (o *ListShortcutsPaginatedRequest) GetPageSize() int64 { - if o == nil { - return 0 - } - return o.PageSize -} - -func (o *ListShortcutsPaginatedRequest) GetCursor() *string { - if o == nil { - return nil - } - return o.Cursor -} - -func (o *ListShortcutsPaginatedRequest) GetFilters() []FacetFilter { - if o == nil { - return nil - } - return o.Filters -} - -func (o *ListShortcutsPaginatedRequest) GetSort() *SortOptions { - if o == nil { - return nil - } - return o.Sort -} - -func (o *ListShortcutsPaginatedRequest) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} diff --git a/tests/mockserver/internal/sdk/models/components/listshortcutspaginatedresponse.go b/tests/mockserver/internal/sdk/models/components/listshortcutspaginatedresponse.go deleted file mode 100644 index 49944966..00000000 --- a/tests/mockserver/internal/sdk/models/components/listshortcutspaginatedresponse.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ListShortcutsPaginatedResponse struct { - // List of all shortcuts accessible to the user - Shortcuts []Shortcut `json:"shortcuts"` - FacetResults []FacetResult `json:"facetResults,omitempty"` - Meta ShortcutsPaginationMetadata `json:"meta"` -} - -func (o *ListShortcutsPaginatedResponse) GetShortcuts() []Shortcut { - if o == nil { - return []Shortcut{} - } - return o.Shortcuts -} - -func (o *ListShortcutsPaginatedResponse) GetFacetResults() []FacetResult { - if o == nil { - return nil - } - return o.FacetResults -} - -func (o *ListShortcutsPaginatedResponse) GetMeta() ShortcutsPaginationMetadata { - if o == nil { - return ShortcutsPaginationMetadata{} - } - return o.Meta -} diff --git a/tests/mockserver/internal/sdk/models/components/manualfeedbackinfo.go b/tests/mockserver/internal/sdk/models/components/manualfeedbackinfo.go deleted file mode 100644 index fd869b1b..00000000 --- a/tests/mockserver/internal/sdk/models/components/manualfeedbackinfo.go +++ /dev/null @@ -1,326 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// ManualFeedbackInfoSource - The source associated with the Feedback.event.MANUAL_FEEDBACK event. -type ManualFeedbackInfoSource string - -const ( - ManualFeedbackInfoSourceAutocomplete ManualFeedbackInfoSource = "AUTOCOMPLETE" - ManualFeedbackInfoSourceCalendar ManualFeedbackInfoSource = "CALENDAR" - ManualFeedbackInfoSourceChat ManualFeedbackInfoSource = "CHAT" - ManualFeedbackInfoSourceChatGeneral ManualFeedbackInfoSource = "CHAT_GENERAL" - ManualFeedbackInfoSourceConceptCard ManualFeedbackInfoSource = "CONCEPT_CARD" - ManualFeedbackInfoSourceDesktopApp ManualFeedbackInfoSource = "DESKTOP_APP" - ManualFeedbackInfoSourceDisambiguationCard ManualFeedbackInfoSource = "DISAMBIGUATION_CARD" - ManualFeedbackInfoSourceExpertDetection ManualFeedbackInfoSource = "EXPERT_DETECTION" - ManualFeedbackInfoSourceFeed ManualFeedbackInfoSource = "FEED" - ManualFeedbackInfoSourceGeneratedQAndA ManualFeedbackInfoSource = "GENERATED_Q_AND_A" - ManualFeedbackInfoSourceInlineMenu ManualFeedbackInfoSource = "INLINE_MENU" - ManualFeedbackInfoSourceNativeResult ManualFeedbackInfoSource = "NATIVE_RESULT" - ManualFeedbackInfoSourceQAndA ManualFeedbackInfoSource = "Q_AND_A" - ManualFeedbackInfoSourceRelatedQuestions ManualFeedbackInfoSource = "RELATED_QUESTIONS" - ManualFeedbackInfoSourceReportIssue ManualFeedbackInfoSource = "REPORT_ISSUE" - ManualFeedbackInfoSourceSciobot ManualFeedbackInfoSource = "SCIOBOT" - ManualFeedbackInfoSourceSearch ManualFeedbackInfoSource = "SEARCH" - ManualFeedbackInfoSourceSidebar ManualFeedbackInfoSource = "SIDEBAR" - ManualFeedbackInfoSourceSummary ManualFeedbackInfoSource = "SUMMARY" -) - -func (e ManualFeedbackInfoSource) ToPointer() *ManualFeedbackInfoSource { - return &e -} -func (e *ManualFeedbackInfoSource) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "AUTOCOMPLETE": - fallthrough - case "CALENDAR": - fallthrough - case "CHAT": - fallthrough - case "CHAT_GENERAL": - fallthrough - case "CONCEPT_CARD": - fallthrough - case "DESKTOP_APP": - fallthrough - case "DISAMBIGUATION_CARD": - fallthrough - case "EXPERT_DETECTION": - fallthrough - case "FEED": - fallthrough - case "GENERATED_Q_AND_A": - fallthrough - case "INLINE_MENU": - fallthrough - case "NATIVE_RESULT": - fallthrough - case "Q_AND_A": - fallthrough - case "RELATED_QUESTIONS": - fallthrough - case "REPORT_ISSUE": - fallthrough - case "SCIOBOT": - fallthrough - case "SEARCH": - fallthrough - case "SIDEBAR": - fallthrough - case "SUMMARY": - *e = ManualFeedbackInfoSource(v) - return nil - default: - return fmt.Errorf("invalid value for ManualFeedbackInfoSource: %v", v) - } -} - -type Issue string - -const ( - IssueInaccurateResponse Issue = "INACCURATE_RESPONSE" - IssueIncompleteOrNoAnswer Issue = "INCOMPLETE_OR_NO_ANSWER" - IssueIncorrectCitation Issue = "INCORRECT_CITATION" - IssueMissingCitation Issue = "MISSING_CITATION" - IssueOther Issue = "OTHER" - IssueOutdatedResponse Issue = "OUTDATED_RESPONSE" - IssueResultMissing Issue = "RESULT_MISSING" - IssueResultShouldNotAppear Issue = "RESULT_SHOULD_NOT_APPEAR" - IssueResultsHelpful Issue = "RESULTS_HELPFUL" - IssueResultsPoorOrder Issue = "RESULTS_POOR_ORDER" - IssueTooMuchOneKind Issue = "TOO_MUCH_ONE_KIND" -) - -func (e Issue) ToPointer() *Issue { - return &e -} -func (e *Issue) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "INACCURATE_RESPONSE": - fallthrough - case "INCOMPLETE_OR_NO_ANSWER": - fallthrough - case "INCORRECT_CITATION": - fallthrough - case "MISSING_CITATION": - fallthrough - case "OTHER": - fallthrough - case "OUTDATED_RESPONSE": - fallthrough - case "RESULT_MISSING": - fallthrough - case "RESULT_SHOULD_NOT_APPEAR": - fallthrough - case "RESULTS_HELPFUL": - fallthrough - case "RESULTS_POOR_ORDER": - fallthrough - case "TOO_MUCH_ONE_KIND": - *e = Issue(v) - return nil - default: - return fmt.Errorf("invalid value for Issue: %v", v) - } -} - -// ManualFeedbackInfoVote - The vote associated with the Feedback.event.MANUAL_FEEDBACK event. -type ManualFeedbackInfoVote string - -const ( - ManualFeedbackInfoVoteUpvote ManualFeedbackInfoVote = "UPVOTE" - ManualFeedbackInfoVoteDownvote ManualFeedbackInfoVote = "DOWNVOTE" -) - -func (e ManualFeedbackInfoVote) ToPointer() *ManualFeedbackInfoVote { - return &e -} -func (e *ManualFeedbackInfoVote) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "UPVOTE": - fallthrough - case "DOWNVOTE": - *e = ManualFeedbackInfoVote(v) - return nil - default: - return fmt.Errorf("invalid value for ManualFeedbackInfoVote: %v", v) - } -} - -type ManualFeedbackInfo struct { - // The email address of the user who submitted the Feedback.event.MANUAL_FEEDBACK event. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Email *string `json:"email,omitempty"` - // The source associated with the Feedback.event.MANUAL_FEEDBACK event. - Source *ManualFeedbackInfoSource `json:"source,omitempty"` - // The issue the user indicated in the feedback. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Issue *string `json:"issue,omitempty"` - // The issue(s) the user indicated in the feedback. - Issues []Issue `json:"issues,omitempty"` - // URLs of images uploaded by user when providing feedback - ImageUrls []string `json:"imageUrls,omitempty"` - // The query associated with the Feedback.event.MANUAL_FEEDBACK event. - Query *string `json:"query,omitempty"` - // The query associated with the Feedback.event.MANUAL_FEEDBACK event, but obscured such that the vowels are replaced with special characters. For search feedback events only. - ObscuredQuery *string `json:"obscuredQuery,omitempty"` - // Which tabs the user had chosen at the time of the Feedback.event.MANUAL_FEEDBACK event. For search feedback events only. - ActiveTab *string `json:"activeTab,omitempty"` - // The comments users can optionally add to the Feedback.event.MANUAL_FEEDBACK events. - Comments *string `json:"comments,omitempty"` - // The array of search result Glean Document IDs, ordered by top to bottom result. - SearchResults []string `json:"searchResults,omitempty"` - // The array of previous messages in a chat session, ordered by oldest to newest. - PreviousMessages []string `json:"previousMessages,omitempty"` - // Array of previous request/response exchanges, ordered by oldest to newest. - ChatTranscript []FeedbackChatExchange `json:"chatTranscript,omitempty"` - // How many times this query has been run in the past. - NumQueriesFromFirstRun *int64 `json:"numQueriesFromFirstRun,omitempty"` - // The vote associated with the Feedback.event.MANUAL_FEEDBACK event. - Vote *ManualFeedbackInfoVote `json:"vote,omitempty"` - // A rating associated with the user feedback. The value will be between one and the maximum given by ratingScale, inclusive. - Rating *int64 `json:"rating,omitempty"` - // A description of the rating that contextualizes how it appeared to the user, e.g. "satisfied". - RatingKey *string `json:"ratingKey,omitempty"` - // The scale of comparison for a rating associated with the feedback. Rating values start from one and go up to the maximum specified by ratingScale. For example, a five-option satisfaction rating will have a ratingScale of 5 and a thumbs-up/thumbs-down rating will have a ratingScale of 2. - RatingScale *int64 `json:"ratingScale,omitempty"` -} - -func (o *ManualFeedbackInfo) GetEmail() *string { - if o == nil { - return nil - } - return o.Email -} - -func (o *ManualFeedbackInfo) GetSource() *ManualFeedbackInfoSource { - if o == nil { - return nil - } - return o.Source -} - -func (o *ManualFeedbackInfo) GetIssue() *string { - if o == nil { - return nil - } - return o.Issue -} - -func (o *ManualFeedbackInfo) GetIssues() []Issue { - if o == nil { - return nil - } - return o.Issues -} - -func (o *ManualFeedbackInfo) GetImageUrls() []string { - if o == nil { - return nil - } - return o.ImageUrls -} - -func (o *ManualFeedbackInfo) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - -func (o *ManualFeedbackInfo) GetObscuredQuery() *string { - if o == nil { - return nil - } - return o.ObscuredQuery -} - -func (o *ManualFeedbackInfo) GetActiveTab() *string { - if o == nil { - return nil - } - return o.ActiveTab -} - -func (o *ManualFeedbackInfo) GetComments() *string { - if o == nil { - return nil - } - return o.Comments -} - -func (o *ManualFeedbackInfo) GetSearchResults() []string { - if o == nil { - return nil - } - return o.SearchResults -} - -func (o *ManualFeedbackInfo) GetPreviousMessages() []string { - if o == nil { - return nil - } - return o.PreviousMessages -} - -func (o *ManualFeedbackInfo) GetChatTranscript() []FeedbackChatExchange { - if o == nil { - return nil - } - return o.ChatTranscript -} - -func (o *ManualFeedbackInfo) GetNumQueriesFromFirstRun() *int64 { - if o == nil { - return nil - } - return o.NumQueriesFromFirstRun -} - -func (o *ManualFeedbackInfo) GetVote() *ManualFeedbackInfoVote { - if o == nil { - return nil - } - return o.Vote -} - -func (o *ManualFeedbackInfo) GetRating() *int64 { - if o == nil { - return nil - } - return o.Rating -} - -func (o *ManualFeedbackInfo) GetRatingKey() *string { - if o == nil { - return nil - } - return o.RatingKey -} - -func (o *ManualFeedbackInfo) GetRatingScale() *int64 { - if o == nil { - return nil - } - return o.RatingScale -} diff --git a/tests/mockserver/internal/sdk/models/components/manualfeedbacksidebysideinfo.go b/tests/mockserver/internal/sdk/models/components/manualfeedbacksidebysideinfo.go deleted file mode 100644 index 23fb1a7d..00000000 --- a/tests/mockserver/internal/sdk/models/components/manualfeedbacksidebysideinfo.go +++ /dev/null @@ -1,143 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// ManualFeedbackSideBySideInfoSource - The source associated with the side-by-side feedback event. -type ManualFeedbackSideBySideInfoSource string - -const ( - ManualFeedbackSideBySideInfoSourceLiveEval ManualFeedbackSideBySideInfoSource = "LIVE_EVAL" - ManualFeedbackSideBySideInfoSourceChat ManualFeedbackSideBySideInfoSource = "CHAT" - ManualFeedbackSideBySideInfoSourceSearch ManualFeedbackSideBySideInfoSource = "SEARCH" -) - -func (e ManualFeedbackSideBySideInfoSource) ToPointer() *ManualFeedbackSideBySideInfoSource { - return &e -} -func (e *ManualFeedbackSideBySideInfoSource) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "LIVE_EVAL": - fallthrough - case "CHAT": - fallthrough - case "SEARCH": - *e = ManualFeedbackSideBySideInfoSource(v) - return nil - default: - return fmt.Errorf("invalid value for ManualFeedbackSideBySideInfoSource: %v", v) - } -} - -// ManualFeedbackSideBySideInfoVote - The vote for this specific implementation. -type ManualFeedbackSideBySideInfoVote string - -const ( - ManualFeedbackSideBySideInfoVoteUpvote ManualFeedbackSideBySideInfoVote = "UPVOTE" - ManualFeedbackSideBySideInfoVoteDownvote ManualFeedbackSideBySideInfoVote = "DOWNVOTE" - ManualFeedbackSideBySideInfoVoteNeutral ManualFeedbackSideBySideInfoVote = "NEUTRAL" -) - -func (e ManualFeedbackSideBySideInfoVote) ToPointer() *ManualFeedbackSideBySideInfoVote { - return &e -} -func (e *ManualFeedbackSideBySideInfoVote) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "UPVOTE": - fallthrough - case "DOWNVOTE": - fallthrough - case "NEUTRAL": - *e = ManualFeedbackSideBySideInfoVote(v) - return nil - default: - return fmt.Errorf("invalid value for ManualFeedbackSideBySideInfoVote: %v", v) - } -} - -type ManualFeedbackSideBySideInfo struct { - // The email address of the user who submitted the side-by-side feedback. - Email *string `json:"email,omitempty"` - // The source associated with the side-by-side feedback event. - Source *ManualFeedbackSideBySideInfoSource `json:"source,omitempty"` - // The query or prompt that was evaluated across multiple implementations. - Query *string `json:"query,omitempty"` - // Array of implementations that were compared side-by-side. - Implementations []SideBySideImplementation `json:"implementations,omitempty"` - // Unique identifier for this evaluation session to group related feedback events. - EvaluationSessionID *string `json:"evaluationSessionId,omitempty"` - // The ID of the implementation this specific feedback event is for. - ImplementationID *string `json:"implementationId,omitempty"` - // The vote for this specific implementation. - Vote *ManualFeedbackSideBySideInfoVote `json:"vote,omitempty"` - // Specific feedback comments for this implementation. - Comments *string `json:"comments,omitempty"` -} - -func (o *ManualFeedbackSideBySideInfo) GetEmail() *string { - if o == nil { - return nil - } - return o.Email -} - -func (o *ManualFeedbackSideBySideInfo) GetSource() *ManualFeedbackSideBySideInfoSource { - if o == nil { - return nil - } - return o.Source -} - -func (o *ManualFeedbackSideBySideInfo) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - -func (o *ManualFeedbackSideBySideInfo) GetImplementations() []SideBySideImplementation { - if o == nil { - return nil - } - return o.Implementations -} - -func (o *ManualFeedbackSideBySideInfo) GetEvaluationSessionID() *string { - if o == nil { - return nil - } - return o.EvaluationSessionID -} - -func (o *ManualFeedbackSideBySideInfo) GetImplementationID() *string { - if o == nil { - return nil - } - return o.ImplementationID -} - -func (o *ManualFeedbackSideBySideInfo) GetVote() *ManualFeedbackSideBySideInfoVote { - if o == nil { - return nil - } - return o.Vote -} - -func (o *ManualFeedbackSideBySideInfo) GetComments() *string { - if o == nil { - return nil - } - return o.Comments -} diff --git a/tests/mockserver/internal/sdk/models/components/meeting.go b/tests/mockserver/internal/sdk/models/components/meeting.go deleted file mode 100644 index b34e924e..00000000 --- a/tests/mockserver/internal/sdk/models/components/meeting.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -type Meeting struct { - ID *string `json:"id,omitempty"` - Title *string `json:"title,omitempty"` - Description *string `json:"description,omitempty"` - URL *string `json:"url,omitempty"` - StartTime *time.Time `json:"startTime,omitempty"` - EndTime *time.Time `json:"endTime,omitempty"` - Attendees *CalendarAttendees `json:"attendees,omitempty"` -} - -func (m Meeting) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(m, "", false) -} - -func (m *Meeting) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &m, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *Meeting) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *Meeting) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *Meeting) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *Meeting) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *Meeting) GetStartTime() *time.Time { - if o == nil { - return nil - } - return o.StartTime -} - -func (o *Meeting) GetEndTime() *time.Time { - if o == nil { - return nil - } - return o.EndTime -} - -func (o *Meeting) GetAttendees() *CalendarAttendees { - if o == nil { - return nil - } - return o.Attendees -} diff --git a/tests/mockserver/internal/sdk/models/components/message.go b/tests/mockserver/internal/sdk/models/components/message.go deleted file mode 100644 index 5972aa33..00000000 --- a/tests/mockserver/internal/sdk/models/components/message.go +++ /dev/null @@ -1,43 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type MessageTextBlock struct { - Text string `json:"text"` - Type ContentType `json:"type"` -} - -func (o *MessageTextBlock) GetText() string { - if o == nil { - return "" - } - return o.Text -} - -func (o *MessageTextBlock) GetType() ContentType { - if o == nil { - return ContentType("") - } - return o.Type -} - -type Message struct { - // The role of the message. - Role *string `json:"role,omitempty"` - // The content of the message. - Content []MessageTextBlock `json:"content,omitempty"` -} - -func (o *Message) GetRole() *string { - if o == nil { - return nil - } - return o.Role -} - -func (o *Message) GetContent() []MessageTextBlock { - if o == nil { - return nil - } - return o.Content -} diff --git a/tests/mockserver/internal/sdk/models/components/messagesrequest.go b/tests/mockserver/internal/sdk/models/components/messagesrequest.go deleted file mode 100644 index e7c80836..00000000 --- a/tests/mockserver/internal/sdk/models/components/messagesrequest.go +++ /dev/null @@ -1,170 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// IDType - Type of the id in the incoming request. -type IDType string - -const ( - IDTypeChannelName IDType = "CHANNEL_NAME" - IDTypeThreadID IDType = "THREAD_ID" - IDTypeConversationID IDType = "CONVERSATION_ID" -) - -func (e IDType) ToPointer() *IDType { - return &e -} -func (e *IDType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "CHANNEL_NAME": - fallthrough - case "THREAD_ID": - fallthrough - case "CONVERSATION_ID": - *e = IDType(v) - return nil - default: - return fmt.Errorf("invalid value for IDType: %v", v) - } -} - -// Direction - The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. -type Direction string - -const ( - DirectionOlder Direction = "OLDER" - DirectionNewer Direction = "NEWER" -) - -func (e Direction) ToPointer() *Direction { - return &e -} -func (e *Direction) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "OLDER": - fallthrough - case "NEWER": - *e = Direction(v) - return nil - default: - return fmt.Errorf("invalid value for Direction: %v", v) - } -} - -// Datasource - The type of the data source. Missing field defaults to SLACK. -type Datasource string - -const ( - DatasourceSlack Datasource = "SLACK" - DatasourceMicrosoftteams Datasource = "MICROSOFTTEAMS" - DatasourceFacebookworkplace Datasource = "FACEBOOKWORKPLACE" -) - -func (e Datasource) ToPointer() *Datasource { - return &e -} -func (e *Datasource) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "SLACK": - fallthrough - case "MICROSOFTTEAMS": - fallthrough - case "FACEBOOKWORKPLACE": - *e = Datasource(v) - return nil - default: - return fmt.Errorf("invalid value for Datasource: %v", v) - } -} - -type MessagesRequest struct { - // Type of the id in the incoming request. - IDType IDType `json:"idType"` - // ID corresponding to the requested idType. Note that channel and threads are represented by the underlying datasource's ID and conversations are represented by their document's ID. - ID string `json:"id"` - // Id for the for the workspace in case of multiple workspaces. - WorkspaceID *string `json:"workspaceId,omitempty"` - // The direction of the results asked with respect to the reference timestamp. Missing field defaults to OLDER. Only applicable when using a message_id. - Direction *Direction `json:"direction,omitempty"` - // Timestamp in millis of the reference message. Only applicable when using a message_id. - TimestampMillis *int64 `json:"timestampMillis,omitempty"` - // Whether to include root message in response. - IncludeRootMessage *bool `json:"includeRootMessage,omitempty"` - // The type of the data source. Missing field defaults to SLACK. - Datasource *Datasource `json:"datasource,omitempty"` - // The datasource instance display name from which the document was extracted. This is used for appinstance facet filter for datasources that support multiple instances. - DatasourceInstanceDisplayName *string `json:"datasourceInstanceDisplayName,omitempty"` -} - -func (o *MessagesRequest) GetIDType() IDType { - if o == nil { - return IDType("") - } - return o.IDType -} - -func (o *MessagesRequest) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -func (o *MessagesRequest) GetWorkspaceID() *string { - if o == nil { - return nil - } - return o.WorkspaceID -} - -func (o *MessagesRequest) GetDirection() *Direction { - if o == nil { - return nil - } - return o.Direction -} - -func (o *MessagesRequest) GetTimestampMillis() *int64 { - if o == nil { - return nil - } - return o.TimestampMillis -} - -func (o *MessagesRequest) GetIncludeRootMessage() *bool { - if o == nil { - return nil - } - return o.IncludeRootMessage -} - -func (o *MessagesRequest) GetDatasource() *Datasource { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *MessagesRequest) GetDatasourceInstanceDisplayName() *string { - if o == nil { - return nil - } - return o.DatasourceInstanceDisplayName -} diff --git a/tests/mockserver/internal/sdk/models/components/messagesresponse.go b/tests/mockserver/internal/sdk/models/components/messagesresponse.go deleted file mode 100644 index 6d8bb063..00000000 --- a/tests/mockserver/internal/sdk/models/components/messagesresponse.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type MessagesResponse struct { - // Whether there are more results for client to continue requesting. - HasMore bool `json:"hasMore"` - SearchResponse *SearchResponse `json:"searchResponse,omitempty"` - RootMessage *SearchResult `json:"rootMessage,omitempty"` -} - -func (o *MessagesResponse) GetHasMore() bool { - if o == nil { - return false - } - return o.HasMore -} - -func (o *MessagesResponse) GetSearchResponse() *SearchResponse { - if o == nil { - return nil - } - return o.SearchResponse -} - -func (o *MessagesResponse) GetRootMessage() *SearchResult { - if o == nil { - return nil - } - return o.RootMessage -} diff --git a/tests/mockserver/internal/sdk/models/components/objectdefinition.go b/tests/mockserver/internal/sdk/models/components/objectdefinition.go deleted file mode 100644 index 9a9c55c6..00000000 --- a/tests/mockserver/internal/sdk/models/components/objectdefinition.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// DocCategory - The document category of this object type. -type DocCategory string - -const ( - DocCategoryUncategorized DocCategory = "UNCATEGORIZED" - DocCategoryTickets DocCategory = "TICKETS" - DocCategoryCrm DocCategory = "CRM" - DocCategoryPublishedContent DocCategory = "PUBLISHED_CONTENT" - DocCategoryCollaborativeContent DocCategory = "COLLABORATIVE_CONTENT" - DocCategoryQuestionAnswer DocCategory = "QUESTION_ANSWER" - DocCategoryMessaging DocCategory = "MESSAGING" - DocCategoryCodeRepository DocCategory = "CODE_REPOSITORY" - DocCategoryChangeManagement DocCategory = "CHANGE_MANAGEMENT" - DocCategoryPeople DocCategory = "PEOPLE" - DocCategoryEmail DocCategory = "EMAIL" - DocCategorySso DocCategory = "SSO" - DocCategoryAts DocCategory = "ATS" - DocCategoryKnowledgeHub DocCategory = "KNOWLEDGE_HUB" - DocCategoryExternalShortcut DocCategory = "EXTERNAL_SHORTCUT" - DocCategoryEntity DocCategory = "ENTITY" - DocCategoryCalendar DocCategory = "CALENDAR" - DocCategoryAgents DocCategory = "AGENTS" -) - -func (e DocCategory) ToPointer() *DocCategory { - return &e -} -func (e *DocCategory) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "UNCATEGORIZED": - fallthrough - case "TICKETS": - fallthrough - case "CRM": - fallthrough - case "PUBLISHED_CONTENT": - fallthrough - case "COLLABORATIVE_CONTENT": - fallthrough - case "QUESTION_ANSWER": - fallthrough - case "MESSAGING": - fallthrough - case "CODE_REPOSITORY": - fallthrough - case "CHANGE_MANAGEMENT": - fallthrough - case "PEOPLE": - fallthrough - case "EMAIL": - fallthrough - case "SSO": - fallthrough - case "ATS": - fallthrough - case "KNOWLEDGE_HUB": - fallthrough - case "EXTERNAL_SHORTCUT": - fallthrough - case "ENTITY": - fallthrough - case "CALENDAR": - fallthrough - case "AGENTS": - *e = DocCategory(v) - return nil - default: - return fmt.Errorf("invalid value for DocCategory: %v", v) - } -} - -// ObjectDefinition - The definition for an `DocumentMetadata.objectType` within a datasource. -type ObjectDefinition struct { - // Unique identifier for this `DocumentMetadata.objectType`. If omitted, this definition is used as a default for all unmatched `DocumentMetadata.objectType`s in this datasource. - Name *string `json:"name,omitempty"` - // The user-friendly name of the object for display. - DisplayLabel *string `json:"displayLabel,omitempty"` - // The document category of this object type. - DocCategory *DocCategory `json:"docCategory,omitempty"` - PropertyDefinitions []PropertyDefinition `json:"propertyDefinitions,omitempty"` - // A list of `PropertyGroup`s belonging to this object type, which will group properties to be displayed together in the UI. - PropertyGroups []PropertyGroup `json:"propertyGroups,omitempty"` - // Whether or not the object is summarizable - Summarizable *bool `json:"summarizable,omitempty"` -} - -func (o *ObjectDefinition) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *ObjectDefinition) GetDisplayLabel() *string { - if o == nil { - return nil - } - return o.DisplayLabel -} - -func (o *ObjectDefinition) GetDocCategory() *DocCategory { - if o == nil { - return nil - } - return o.DocCategory -} - -func (o *ObjectDefinition) GetPropertyDefinitions() []PropertyDefinition { - if o == nil { - return nil - } - return o.PropertyDefinitions -} - -func (o *ObjectDefinition) GetPropertyGroups() []PropertyGroup { - if o == nil { - return nil - } - return o.PropertyGroups -} - -func (o *ObjectDefinition) GetSummarizable() *bool { - if o == nil { - return nil - } - return o.Summarizable -} diff --git a/tests/mockserver/internal/sdk/models/components/objectpermissions.go b/tests/mockserver/internal/sdk/models/components/objectpermissions.go deleted file mode 100644 index da63b51a..00000000 --- a/tests/mockserver/internal/sdk/models/components/objectpermissions.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type ObjectPermissions struct { - // Describes the write permissions levels that a user has for a specific feature - Write *WritePermission `json:"write,omitempty"` -} - -func (o ObjectPermissions) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(o, "", false) -} - -func (o *ObjectPermissions) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &o, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *ObjectPermissions) GetWrite() *WritePermission { - if o == nil { - return nil - } - return o.Write -} diff --git a/tests/mockserver/internal/sdk/models/components/operatormetadata.go b/tests/mockserver/internal/sdk/models/components/operatormetadata.go deleted file mode 100644 index 01e632cd..00000000 --- a/tests/mockserver/internal/sdk/models/components/operatormetadata.go +++ /dev/null @@ -1,102 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type OperatorType string - -const ( - OperatorTypeText OperatorType = "TEXT" - OperatorTypeDouble OperatorType = "DOUBLE" - OperatorTypeDate OperatorType = "DATE" - OperatorTypeUser OperatorType = "USER" -) - -func (e OperatorType) ToPointer() *OperatorType { - return &e -} -func (e *OperatorType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "TEXT": - fallthrough - case "DOUBLE": - fallthrough - case "DATE": - fallthrough - case "USER": - *e = OperatorType(v) - return nil - default: - return fmt.Errorf("invalid value for OperatorType: %v", v) - } -} - -type OperatorMetadata struct { - Name string `json:"name"` - // Whether this operator is supported by default or something that was created within a workplace app (e.g. custom jira field). - IsCustom *bool `json:"isCustom,omitempty"` - OperatorType *OperatorType `json:"operatorType,omitempty"` - HelpText *string `json:"helpText,omitempty"` - Scopes []OperatorScope `json:"scopes,omitempty"` - // Raw/canonical value of the operator. Only applies when result is an operator value. - Value *string `json:"value,omitempty"` - // Human readable value of the operator that can be shown to the user. Only applies when result is an operator value. - DisplayValue *string `json:"displayValue,omitempty"` -} - -func (o *OperatorMetadata) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *OperatorMetadata) GetIsCustom() *bool { - if o == nil { - return nil - } - return o.IsCustom -} - -func (o *OperatorMetadata) GetOperatorType() *OperatorType { - if o == nil { - return nil - } - return o.OperatorType -} - -func (o *OperatorMetadata) GetHelpText() *string { - if o == nil { - return nil - } - return o.HelpText -} - -func (o *OperatorMetadata) GetScopes() []OperatorScope { - if o == nil { - return nil - } - return o.Scopes -} - -func (o *OperatorMetadata) GetValue() *string { - if o == nil { - return nil - } - return o.Value -} - -func (o *OperatorMetadata) GetDisplayValue() *string { - if o == nil { - return nil - } - return o.DisplayValue -} diff --git a/tests/mockserver/internal/sdk/models/components/operatorscope.go b/tests/mockserver/internal/sdk/models/components/operatorscope.go deleted file mode 100644 index 1432e9dd..00000000 --- a/tests/mockserver/internal/sdk/models/components/operatorscope.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type OperatorScope struct { - Datasource *string `json:"datasource,omitempty"` - DocType *string `json:"docType,omitempty"` -} - -func (o *OperatorScope) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *OperatorScope) GetDocType() *string { - if o == nil { - return nil - } - return o.DocType -} diff --git a/tests/mockserver/internal/sdk/models/components/peoplerequest.go b/tests/mockserver/internal/sdk/models/components/peoplerequest.go deleted file mode 100644 index 1240c00e..00000000 --- a/tests/mockserver/internal/sdk/models/components/peoplerequest.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type PeopleRequestIncludeField string - -const ( - PeopleRequestIncludeFieldBadges PeopleRequestIncludeField = "BADGES" - PeopleRequestIncludeFieldBusyEvents PeopleRequestIncludeField = "BUSY_EVENTS" - PeopleRequestIncludeFieldDocumentActivity PeopleRequestIncludeField = "DOCUMENT_ACTIVITY" - PeopleRequestIncludeFieldInviteInfo PeopleRequestIncludeField = "INVITE_INFO" - PeopleRequestIncludeFieldPeopleDistance PeopleRequestIncludeField = "PEOPLE_DISTANCE" - PeopleRequestIncludeFieldPermissions PeopleRequestIncludeField = "PERMISSIONS" - PeopleRequestIncludeFieldPeopleDetails PeopleRequestIncludeField = "PEOPLE_DETAILS" - PeopleRequestIncludeFieldManagementDetails PeopleRequestIncludeField = "MANAGEMENT_DETAILS" - PeopleRequestIncludeFieldPeopleProfileSettings PeopleRequestIncludeField = "PEOPLE_PROFILE_SETTINGS" - PeopleRequestIncludeFieldPeopleWithoutManager PeopleRequestIncludeField = "PEOPLE_WITHOUT_MANAGER" -) - -func (e PeopleRequestIncludeField) ToPointer() *PeopleRequestIncludeField { - return &e -} -func (e *PeopleRequestIncludeField) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "BADGES": - fallthrough - case "BUSY_EVENTS": - fallthrough - case "DOCUMENT_ACTIVITY": - fallthrough - case "INVITE_INFO": - fallthrough - case "PEOPLE_DISTANCE": - fallthrough - case "PERMISSIONS": - fallthrough - case "PEOPLE_DETAILS": - fallthrough - case "MANAGEMENT_DETAILS": - fallthrough - case "PEOPLE_PROFILE_SETTINGS": - fallthrough - case "PEOPLE_WITHOUT_MANAGER": - *e = PeopleRequestIncludeField(v) - return nil - default: - return fmt.Errorf("invalid value for PeopleRequestIncludeField: %v", v) - } -} - -type IncludeType string - -const ( - IncludeTypePeopleWithoutManager IncludeType = "PEOPLE_WITHOUT_MANAGER" - IncludeTypeInvalidEntities IncludeType = "INVALID_ENTITIES" -) - -func (e IncludeType) ToPointer() *IncludeType { - return &e -} -func (e *IncludeType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "PEOPLE_WITHOUT_MANAGER": - fallthrough - case "INVALID_ENTITIES": - *e = IncludeType(v) - return nil - default: - return fmt.Errorf("invalid value for IncludeType: %v", v) - } -} - -type PeopleRequest struct { - // 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 `json:"timezoneOffset,omitempty"` - // The Person IDs to retrieve. If no IDs are requested, the current user's details are returned. - ObfuscatedIds []string `json:"obfuscatedIds,omitempty"` - // The email IDs to retrieve. The result is the deduplicated union of emailIds and obfuscatedIds. - EmailIds []string `json:"emailIds,omitempty"` - // List of PersonMetadata fields to return (that aren't returned by default) - IncludeFields []PeopleRequestIncludeField `json:"includeFields,omitempty"` - // The types of people entities to include in the response in addition to those returned by default. - IncludeTypes []IncludeType `json:"includeTypes,omitempty"` - // A string denoting the search surface from which the endpoint is called. - Source *string `json:"source,omitempty"` -} - -func (o *PeopleRequest) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *PeopleRequest) GetObfuscatedIds() []string { - if o == nil { - return nil - } - return o.ObfuscatedIds -} - -func (o *PeopleRequest) GetEmailIds() []string { - if o == nil { - return nil - } - return o.EmailIds -} - -func (o *PeopleRequest) GetIncludeFields() []PeopleRequestIncludeField { - if o == nil { - return nil - } - return o.IncludeFields -} - -func (o *PeopleRequest) GetIncludeTypes() []IncludeType { - if o == nil { - return nil - } - return o.IncludeTypes -} - -func (o *PeopleRequest) GetSource() *string { - if o == nil { - return nil - } - return o.Source -} diff --git a/tests/mockserver/internal/sdk/models/components/peopleresponse.go b/tests/mockserver/internal/sdk/models/components/peopleresponse.go deleted file mode 100644 index 45267148..00000000 --- a/tests/mockserver/internal/sdk/models/components/peopleresponse.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type PeopleResponse struct { - // A Person for each ID in the request, each with PersonMetadata populated. - Results []Person `json:"results,omitempty"` - // A list of documents related to this people response. This is only included if DOCUMENT_ACTIVITY is requested and only 1 person is included in the request. - RelatedDocuments []RelatedDocuments `json:"relatedDocuments,omitempty"` - // A list of IDs that could not be found. - Errors []string `json:"errors,omitempty"` -} - -func (o *PeopleResponse) GetResults() []Person { - if o == nil { - return nil - } - return o.Results -} - -func (o *PeopleResponse) GetRelatedDocuments() []RelatedDocuments { - if o == nil { - return nil - } - return o.RelatedDocuments -} - -func (o *PeopleResponse) GetErrors() []string { - if o == nil { - return nil - } - return o.Errors -} diff --git a/tests/mockserver/internal/sdk/models/components/period.go b/tests/mockserver/internal/sdk/models/components/period.go deleted file mode 100644 index 8115421f..00000000 --- a/tests/mockserver/internal/sdk/models/components/period.go +++ /dev/null @@ -1,59 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type Period struct { - // DEPRECATED - The number of days from now in the past to define upper boundary of time period. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - MinDaysFromNow *int64 `json:"minDaysFromNow,omitempty"` - // DEPRECATED - The number of days from now in the past to define lower boundary of time period. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - MaxDaysFromNow *int64 `json:"maxDaysFromNow,omitempty"` - Start *TimePoint `json:"start,omitempty"` - End *TimePoint `json:"end,omitempty"` -} - -func (p Period) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(p, "", false) -} - -func (p *Period) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *Period) GetMinDaysFromNow() *int64 { - if o == nil { - return nil - } - return o.MinDaysFromNow -} - -func (o *Period) GetMaxDaysFromNow() *int64 { - if o == nil { - return nil - } - return o.MaxDaysFromNow -} - -func (o *Period) GetStart() *TimePoint { - if o == nil { - return nil - } - return o.Start -} - -func (o *Period) GetEnd() *TimePoint { - if o == nil { - return nil - } - return o.End -} diff --git a/tests/mockserver/internal/sdk/models/components/permissions.go b/tests/mockserver/internal/sdk/models/components/permissions.go deleted file mode 100644 index c12f95f0..00000000 --- a/tests/mockserver/internal/sdk/models/components/permissions.go +++ /dev/null @@ -1,95 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// Permissions - Describes the permissions levels that a user has for permissioned features. When the client sends this, Permissions.read and Permissions.write are the additional permissions granted to a user on top of what they have via their roles. -// When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of permissions the user has, and Permissions.roles is just for display purposes. -type Permissions struct { - // TODO--deprecate in favor of the read and write properties. True if the user has access to /adminsearch - CanAdminSearch *bool `json:"canAdminSearch,omitempty"` - // TODO--deprecate in favor of the read and write properties. True if the user can administrate client API tokens with global scope - CanAdminClientAPIGlobalTokens *bool `json:"canAdminClientApiGlobalTokens,omitempty"` - // TODO--deprecate in favor of the read and write properties. True if the user has access to data loss prevention (DLP) features - CanDlp *bool `json:"canDlp,omitempty"` - // Describes the read permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject - Read map[string][]ReadPermission `json:"read,omitempty"` - // Describes the write permissions levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject - Write map[string][]WritePermission `json:"write,omitempty"` - // Describes the grant permission levels that a user has for permissioned features. Key must be PermissionedFeatureOrObject - Grant map[string][]GrantPermission `json:"grant,omitempty"` - // The roleId of the canonical role a user has. The displayName is equal to the roleId. - Role *string `json:"role,omitempty"` - // The roleIds of the roles a user has. - Roles []string `json:"roles,omitempty"` -} - -func (p Permissions) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(p, "", false) -} - -func (p *Permissions) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *Permissions) GetCanAdminSearch() *bool { - if o == nil { - return nil - } - return o.CanAdminSearch -} - -func (o *Permissions) GetCanAdminClientAPIGlobalTokens() *bool { - if o == nil { - return nil - } - return o.CanAdminClientAPIGlobalTokens -} - -func (o *Permissions) GetCanDlp() *bool { - if o == nil { - return nil - } - return o.CanDlp -} - -func (o *Permissions) GetRead() map[string][]ReadPermission { - if o == nil { - return nil - } - return o.Read -} - -func (o *Permissions) GetWrite() map[string][]WritePermission { - if o == nil { - return nil - } - return o.Write -} - -func (o *Permissions) GetGrant() map[string][]GrantPermission { - if o == nil { - return nil - } - return o.Grant -} - -func (o *Permissions) GetRole() *string { - if o == nil { - return nil - } - return o.Role -} - -func (o *Permissions) GetRoles() []string { - if o == nil { - return nil - } - return o.Roles -} diff --git a/tests/mockserver/internal/sdk/models/components/permissionsgroupintersectiondefinition.go b/tests/mockserver/internal/sdk/models/components/permissionsgroupintersectiondefinition.go deleted file mode 100644 index f9056e4f..00000000 --- a/tests/mockserver/internal/sdk/models/components/permissionsgroupintersectiondefinition.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// PermissionsGroupIntersectionDefinition - describes a list of groups that are all required in a permissions constraint -type PermissionsGroupIntersectionDefinition struct { - RequiredGroups []string `json:"requiredGroups,omitempty"` -} - -func (o *PermissionsGroupIntersectionDefinition) GetRequiredGroups() []string { - if o == nil { - return nil - } - return o.RequiredGroups -} diff --git a/tests/mockserver/internal/sdk/models/components/person.go b/tests/mockserver/internal/sdk/models/components/person.go deleted file mode 100644 index ab2c5f86..00000000 --- a/tests/mockserver/internal/sdk/models/components/person.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type Person struct { - // The display name. - Name string `json:"name"` - // An opaque identifier that can be used to request metadata for a Person. - ObfuscatedID string `json:"obfuscatedId"` - // A list of documents related to this person. - RelatedDocuments []RelatedDocuments `json:"relatedDocuments,omitempty"` - Metadata *PersonMetadata `json:"metadata,omitempty"` -} - -func (p Person) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(p, "", false) -} - -func (p *Person) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "obfuscatedId"}); err != nil { - return err - } - return nil -} - -func (o *Person) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *Person) GetObfuscatedID() string { - if o == nil { - return "" - } - return o.ObfuscatedID -} - -func (o *Person) GetRelatedDocuments() []RelatedDocuments { - if o == nil { - return nil - } - return o.RelatedDocuments -} - -func (o *Person) GetMetadata() *PersonMetadata { - if o == nil { - return nil - } - return o.Metadata -} diff --git a/tests/mockserver/internal/sdk/models/components/persondistance.go b/tests/mockserver/internal/sdk/models/components/persondistance.go deleted file mode 100644 index 234db0e2..00000000 --- a/tests/mockserver/internal/sdk/models/components/persondistance.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type PersonDistance struct { - // The display name. - Name string `json:"name"` - // An opaque identifier that can be used to request metadata for a Person. - ObfuscatedID string `json:"obfuscatedId"` - // Distance to person, refer to PeopleDistance pipeline on interpretation of the value. - Distance float32 `json:"distance"` -} - -func (p PersonDistance) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(p, "", false) -} - -func (p *PersonDistance) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, []string{"name", "obfuscatedId", "distance"}); err != nil { - return err - } - return nil -} - -func (o *PersonDistance) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *PersonDistance) GetObfuscatedID() string { - if o == nil { - return "" - } - return o.ObfuscatedID -} - -func (o *PersonDistance) GetDistance() float32 { - if o == nil { - return 0.0 - } - return o.Distance -} diff --git a/tests/mockserver/internal/sdk/models/components/personmetadata.go b/tests/mockserver/internal/sdk/models/components/personmetadata.go deleted file mode 100644 index eabd1c7a..00000000 --- a/tests/mockserver/internal/sdk/models/components/personmetadata.go +++ /dev/null @@ -1,450 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" - "time" -) - -type PersonMetadataType string - -const ( - PersonMetadataTypeFullTime PersonMetadataType = "FULL_TIME" - PersonMetadataTypeContractor PersonMetadataType = "CONTRACTOR" - PersonMetadataTypeNonEmployee PersonMetadataType = "NON_EMPLOYEE" - PersonMetadataTypeFormerEmployee PersonMetadataType = "FORMER_EMPLOYEE" -) - -func (e PersonMetadataType) ToPointer() *PersonMetadataType { - return &e -} -func (e *PersonMetadataType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "FULL_TIME": - fallthrough - case "CONTRACTOR": - fallthrough - case "NON_EMPLOYEE": - fallthrough - case "FORMER_EMPLOYEE": - *e = PersonMetadataType(v) - return nil - default: - return fmt.Errorf("invalid value for PersonMetadataType: %v", v) - } -} - -type PersonMetadata struct { - Type *PersonMetadataType `json:"type,omitempty"` - // The first name of the person - FirstName *string `json:"firstName,omitempty"` - // The last name of the person - LastName *string `json:"lastName,omitempty"` - // Job title. - Title *string `json:"title,omitempty"` - // Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. - BusinessUnit *string `json:"businessUnit,omitempty"` - // An organizational unit where everyone has a similar task, e.g. `Engineering`. - Department *string `json:"department,omitempty"` - // Info about the employee's team(s). - Teams []PersonTeam `json:"teams,omitempty"` - // The number of people in this person's department. - DepartmentCount *int64 `json:"departmentCount,omitempty"` - // The user's primary email address - Email *string `json:"email,omitempty"` - // Additional email addresses of this user beyond the primary, if any. - AliasEmails []string `json:"aliasEmails,omitempty"` - // User facing string representing the person's location. - Location *string `json:"location,omitempty"` - // Detailed location with information about country, state, city etc. - StructuredLocation *StructuredLocation `json:"structuredLocation,omitempty"` - // Link to a customer's internal profile page. This is set to '#' when no link is desired. - ExternalProfileLink *string `json:"externalProfileLink,omitempty"` - Manager *Person `json:"manager,omitempty"` - // The chain of reporting in the company as far up as it goes. The last entry is this person's direct manager. - ManagementChain []Person `json:"managementChain,omitempty"` - // Phone number as a number string. - Phone *string `json:"phone,omitempty"` - // The timezone of the person. E.g. "Pacific Daylight Time". - Timezone *string `json:"timezone,omitempty"` - // The offset of the person's timezone in seconds from UTC. - TimezoneOffset *int64 `json:"timezoneOffset,omitempty"` - // The URL of the person's avatar. Public, glean-authenticated and Base64 encoded data URLs are all valid (but not third-party-authenticated URLs). - PhotoURL *string `json:"photoUrl,omitempty"` - // The original photo URL of the person's avatar before any edits they made are applied - UneditedPhotoURL *string `json:"uneditedPhotoUrl,omitempty"` - // The URL of the person's banner photo. - BannerURL *string `json:"bannerUrl,omitempty"` - Reports []Person `json:"reports,omitempty"` - // The date when the employee started. - StartDate *types.Date `json:"startDate,omitempty"` - // If a former employee, the last date of employment. - EndDate *types.Date `json:"endDate,omitempty"` - // Short biography or mission statement of the employee. - Bio *string `json:"bio,omitempty"` - // She/her, He/his or other pronoun. - Pronoun *string `json:"pronoun,omitempty"` - // The total recursive size of the people reporting to this person, or 1 - OrgSizeCount *int64 `json:"orgSizeCount,omitempty"` - // The total number of people who directly report to this person, or 0 - DirectReportsCount *int64 `json:"directReportsCount,omitempty"` - // The preferred name of the person, or a nickname. - PreferredName *string `json:"preferredName,omitempty"` - // List of social network profiles. - SocialNetwork []SocialNetwork `json:"socialNetwork,omitempty"` - // List of profiles this user has in different datasources / tools that they use. - DatasourceProfile []DatasourceProfile `json:"datasourceProfile,omitempty"` - QuerySuggestions *QuerySuggestionList `json:"querySuggestions,omitempty"` - // List of people and distances to those people from this person. Optionally with metadata. - PeopleDistance []PersonDistance `json:"peopleDistance,omitempty"` - // Information regarding the invite status of a person. - InviteInfo *InviteInfo `json:"inviteInfo,omitempty"` - // Whether the user has signed into Glean at least once. - IsSignedUp *bool `json:"isSignedUp,omitempty"` - // The last time the user has used the Glean extension in ISO 8601 format. - LastExtensionUse *time.Time `json:"lastExtensionUse,omitempty"` - // Describes the permissions levels that a user has for permissioned features. When the client sends this, Permissions.read and Permissions.write are the additional permissions granted to a user on top of what they have via their roles. - // When the server sends this, Permissions.read and Permissions.write are the complete (merged) set of permissions the user has, and Permissions.roles is just for display purposes. - Permissions *Permissions `json:"permissions,omitempty"` - // User customizable fields for additional people information. - CustomFields []CustomFieldData `json:"customFields,omitempty"` - // The logging id of the person used in scrubbed logs, tracking GA metrics. - LoggingID *string `json:"loggingId,omitempty"` - // Percentage of the company that started strictly after this person. Between [0,100). - StartDatePercentile *float32 `json:"startDatePercentile,omitempty"` - // Intervals of busy time for this person, along with the type of event they're busy with. - BusyEvents []AnonymousEvent `json:"busyEvents,omitempty"` - // flag settings to indicate user profile settings for certain items - ProfileBoolSettings map[string]bool `json:"profileBoolSettings,omitempty"` - // The badges that a user has earned over their lifetime. - Badges []Badge `json:"badges,omitempty"` - // Whether this person is a "root" node in their organization's hierarchy. - IsOrgRoot *bool `json:"isOrgRoot,omitempty"` -} - -func (p PersonMetadata) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(p, "", false) -} - -func (p *PersonMetadata) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *PersonMetadata) GetType() *PersonMetadataType { - if o == nil { - return nil - } - return o.Type -} - -func (o *PersonMetadata) GetFirstName() *string { - if o == nil { - return nil - } - return o.FirstName -} - -func (o *PersonMetadata) GetLastName() *string { - if o == nil { - return nil - } - return o.LastName -} - -func (o *PersonMetadata) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *PersonMetadata) GetBusinessUnit() *string { - if o == nil { - return nil - } - return o.BusinessUnit -} - -func (o *PersonMetadata) GetDepartment() *string { - if o == nil { - return nil - } - return o.Department -} - -func (o *PersonMetadata) GetTeams() []PersonTeam { - if o == nil { - return nil - } - return o.Teams -} - -func (o *PersonMetadata) GetDepartmentCount() *int64 { - if o == nil { - return nil - } - return o.DepartmentCount -} - -func (o *PersonMetadata) GetEmail() *string { - if o == nil { - return nil - } - return o.Email -} - -func (o *PersonMetadata) GetAliasEmails() []string { - if o == nil { - return nil - } - return o.AliasEmails -} - -func (o *PersonMetadata) GetLocation() *string { - if o == nil { - return nil - } - return o.Location -} - -func (o *PersonMetadata) GetStructuredLocation() *StructuredLocation { - if o == nil { - return nil - } - return o.StructuredLocation -} - -func (o *PersonMetadata) GetExternalProfileLink() *string { - if o == nil { - return nil - } - return o.ExternalProfileLink -} - -func (o *PersonMetadata) GetManager() *Person { - if o == nil { - return nil - } - return o.Manager -} - -func (o *PersonMetadata) GetManagementChain() []Person { - if o == nil { - return nil - } - return o.ManagementChain -} - -func (o *PersonMetadata) GetPhone() *string { - if o == nil { - return nil - } - return o.Phone -} - -func (o *PersonMetadata) GetTimezone() *string { - if o == nil { - return nil - } - return o.Timezone -} - -func (o *PersonMetadata) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *PersonMetadata) GetPhotoURL() *string { - if o == nil { - return nil - } - return o.PhotoURL -} - -func (o *PersonMetadata) GetUneditedPhotoURL() *string { - if o == nil { - return nil - } - return o.UneditedPhotoURL -} - -func (o *PersonMetadata) GetBannerURL() *string { - if o == nil { - return nil - } - return o.BannerURL -} - -func (o *PersonMetadata) GetReports() []Person { - if o == nil { - return nil - } - return o.Reports -} - -func (o *PersonMetadata) GetStartDate() *types.Date { - if o == nil { - return nil - } - return o.StartDate -} - -func (o *PersonMetadata) GetEndDate() *types.Date { - if o == nil { - return nil - } - return o.EndDate -} - -func (o *PersonMetadata) GetBio() *string { - if o == nil { - return nil - } - return o.Bio -} - -func (o *PersonMetadata) GetPronoun() *string { - if o == nil { - return nil - } - return o.Pronoun -} - -func (o *PersonMetadata) GetOrgSizeCount() *int64 { - if o == nil { - return nil - } - return o.OrgSizeCount -} - -func (o *PersonMetadata) GetDirectReportsCount() *int64 { - if o == nil { - return nil - } - return o.DirectReportsCount -} - -func (o *PersonMetadata) GetPreferredName() *string { - if o == nil { - return nil - } - return o.PreferredName -} - -func (o *PersonMetadata) GetSocialNetwork() []SocialNetwork { - if o == nil { - return nil - } - return o.SocialNetwork -} - -func (o *PersonMetadata) GetDatasourceProfile() []DatasourceProfile { - if o == nil { - return nil - } - return o.DatasourceProfile -} - -func (o *PersonMetadata) GetQuerySuggestions() *QuerySuggestionList { - if o == nil { - return nil - } - return o.QuerySuggestions -} - -func (o *PersonMetadata) GetPeopleDistance() []PersonDistance { - if o == nil { - return nil - } - return o.PeopleDistance -} - -func (o *PersonMetadata) GetInviteInfo() *InviteInfo { - if o == nil { - return nil - } - return o.InviteInfo -} - -func (o *PersonMetadata) GetIsSignedUp() *bool { - if o == nil { - return nil - } - return o.IsSignedUp -} - -func (o *PersonMetadata) GetLastExtensionUse() *time.Time { - if o == nil { - return nil - } - return o.LastExtensionUse -} - -func (o *PersonMetadata) GetPermissions() *Permissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *PersonMetadata) GetCustomFields() []CustomFieldData { - if o == nil { - return nil - } - return o.CustomFields -} - -func (o *PersonMetadata) GetLoggingID() *string { - if o == nil { - return nil - } - return o.LoggingID -} - -func (o *PersonMetadata) GetStartDatePercentile() *float32 { - if o == nil { - return nil - } - return o.StartDatePercentile -} - -func (o *PersonMetadata) GetBusyEvents() []AnonymousEvent { - if o == nil { - return nil - } - return o.BusyEvents -} - -func (o *PersonMetadata) GetProfileBoolSettings() map[string]bool { - if o == nil { - return nil - } - return o.ProfileBoolSettings -} - -func (o *PersonMetadata) GetBadges() []Badge { - if o == nil { - return nil - } - return o.Badges -} - -func (o *PersonMetadata) GetIsOrgRoot() *bool { - if o == nil { - return nil - } - return o.IsOrgRoot -} diff --git a/tests/mockserver/internal/sdk/models/components/personobject.go b/tests/mockserver/internal/sdk/models/components/personobject.go deleted file mode 100644 index cc403952..00000000 --- a/tests/mockserver/internal/sdk/models/components/personobject.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type PersonObject struct { - // The display name. - Name string `json:"name"` - // An opaque identifier that can be used to request metadata for a Person. - ObfuscatedID string `json:"obfuscatedId"` -} - -func (o *PersonObject) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *PersonObject) GetObfuscatedID() string { - if o == nil { - return "" - } - return o.ObfuscatedID -} diff --git a/tests/mockserver/internal/sdk/models/components/personteam.go b/tests/mockserver/internal/sdk/models/components/personteam.go deleted file mode 100644 index e93471a5..00000000 --- a/tests/mockserver/internal/sdk/models/components/personteam.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -// PersonTeamRelationship - The team member's relationship to the team. This defaults to MEMBER if not set. -type PersonTeamRelationship string - -const ( - PersonTeamRelationshipMember PersonTeamRelationship = "MEMBER" - PersonTeamRelationshipManager PersonTeamRelationship = "MANAGER" - PersonTeamRelationshipLead PersonTeamRelationship = "LEAD" - PersonTeamRelationshipPointOfContact PersonTeamRelationship = "POINT_OF_CONTACT" - PersonTeamRelationshipOther PersonTeamRelationship = "OTHER" -) - -func (e PersonTeamRelationship) ToPointer() *PersonTeamRelationship { - return &e -} -func (e *PersonTeamRelationship) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "MEMBER": - fallthrough - case "MANAGER": - fallthrough - case "LEAD": - fallthrough - case "POINT_OF_CONTACT": - fallthrough - case "OTHER": - *e = PersonTeamRelationship(v) - return nil - default: - return fmt.Errorf("invalid value for PersonTeamRelationship: %v", v) - } -} - -// PersonTeam - Use `id` if you index teams via Glean, and use `name` and `externalLink` if you want to use your own team pages -type PersonTeam struct { - // Unique identifier - ID *string `json:"id,omitempty"` - // Team name - Name *string `json:"name,omitempty"` - // Link to a team page on the internet or your company's intranet - ExternalLink *string `json:"externalLink,omitempty"` - // The team member's relationship to the team. This defaults to MEMBER if not set. - Relationship *PersonTeamRelationship `default:"MEMBER" json:"relationship"` - // The team member's start date - JoinDate *time.Time `json:"joinDate,omitempty"` -} - -func (p PersonTeam) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(p, "", false) -} - -func (p *PersonTeam) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *PersonTeam) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *PersonTeam) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *PersonTeam) GetExternalLink() *string { - if o == nil { - return nil - } - return o.ExternalLink -} - -func (o *PersonTeam) GetRelationship() *PersonTeamRelationship { - if o == nil { - return nil - } - return o.Relationship -} - -func (o *PersonTeam) GetJoinDate() *time.Time { - if o == nil { - return nil - } - return o.JoinDate -} diff --git a/tests/mockserver/internal/sdk/models/components/persontoteamrelationship.go b/tests/mockserver/internal/sdk/models/components/persontoteamrelationship.go deleted file mode 100644 index ab48edf1..00000000 --- a/tests/mockserver/internal/sdk/models/components/persontoteamrelationship.go +++ /dev/null @@ -1,96 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -// PersonToTeamRelationshipRelationship - The team member's relationship to the team. This defaults to MEMBER if not set. -type PersonToTeamRelationshipRelationship string - -const ( - PersonToTeamRelationshipRelationshipMember PersonToTeamRelationshipRelationship = "MEMBER" - PersonToTeamRelationshipRelationshipManager PersonToTeamRelationshipRelationship = "MANAGER" - PersonToTeamRelationshipRelationshipLead PersonToTeamRelationshipRelationship = "LEAD" - PersonToTeamRelationshipRelationshipPointOfContact PersonToTeamRelationshipRelationship = "POINT_OF_CONTACT" - PersonToTeamRelationshipRelationshipOther PersonToTeamRelationshipRelationship = "OTHER" -) - -func (e PersonToTeamRelationshipRelationship) ToPointer() *PersonToTeamRelationshipRelationship { - return &e -} -func (e *PersonToTeamRelationshipRelationship) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "MEMBER": - fallthrough - case "MANAGER": - fallthrough - case "LEAD": - fallthrough - case "POINT_OF_CONTACT": - fallthrough - case "OTHER": - *e = PersonToTeamRelationshipRelationship(v) - return nil - default: - return fmt.Errorf("invalid value for PersonToTeamRelationshipRelationship: %v", v) - } -} - -// PersonToTeamRelationship - Metadata about the relationship of a person to a team. -type PersonToTeamRelationship struct { - Person Person `json:"person"` - // The team member's relationship to the team. This defaults to MEMBER if not set. - Relationship *PersonToTeamRelationshipRelationship `default:"MEMBER" json:"relationship"` - // Displayed name for the relationship if relationship is set to `OTHER`. - CustomRelationshipStr *string `json:"customRelationshipStr,omitempty"` - // The team member's start date - JoinDate *time.Time `json:"joinDate,omitempty"` -} - -func (p PersonToTeamRelationship) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(p, "", false) -} - -func (p *PersonToTeamRelationship) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, []string{"person"}); err != nil { - return err - } - return nil -} - -func (o *PersonToTeamRelationship) GetPerson() Person { - if o == nil { - return Person{} - } - return o.Person -} - -func (o *PersonToTeamRelationship) GetRelationship() *PersonToTeamRelationshipRelationship { - if o == nil { - return nil - } - return o.Relationship -} - -func (o *PersonToTeamRelationship) GetCustomRelationshipStr() *string { - if o == nil { - return nil - } - return o.CustomRelationshipStr -} - -func (o *PersonToTeamRelationship) GetJoinDate() *time.Time { - if o == nil { - return nil - } - return o.JoinDate -} diff --git a/tests/mockserver/internal/sdk/models/components/pindocument.go b/tests/mockserver/internal/sdk/models/components/pindocument.go deleted file mode 100644 index c2925503..00000000 --- a/tests/mockserver/internal/sdk/models/components/pindocument.go +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -type PinDocument struct { - // The query strings for which the pinned result will show. - Queries []string `json:"queries,omitempty"` - // Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // The opaque id of the pin. - ID *string `json:"id,omitempty"` - // The document which should be a pinned result. - DocumentID string `json:"documentId"` - Attribution *Person `json:"attribution,omitempty"` - UpdatedBy *Person `json:"updatedBy,omitempty"` - CreateTime *time.Time `json:"createTime,omitempty"` - UpdateTime *time.Time `json:"updateTime,omitempty"` -} - -func (p PinDocument) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(p, "", false) -} - -func (p *PinDocument) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &p, "", false, []string{"documentId"}); err != nil { - return err - } - return nil -} - -func (o *PinDocument) GetQueries() []string { - if o == nil { - return nil - } - return o.Queries -} - -func (o *PinDocument) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *PinDocument) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *PinDocument) GetDocumentID() string { - if o == nil { - return "" - } - return o.DocumentID -} - -func (o *PinDocument) GetAttribution() *Person { - if o == nil { - return nil - } - return o.Attribution -} - -func (o *PinDocument) GetUpdatedBy() *Person { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *PinDocument) GetCreateTime() *time.Time { - if o == nil { - return nil - } - return o.CreateTime -} - -func (o *PinDocument) GetUpdateTime() *time.Time { - if o == nil { - return nil - } - return o.UpdateTime -} diff --git a/tests/mockserver/internal/sdk/models/components/pinrequest.go b/tests/mockserver/internal/sdk/models/components/pinrequest.go deleted file mode 100644 index 7ef8d8e6..00000000 --- a/tests/mockserver/internal/sdk/models/components/pinrequest.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type PinRequest struct { - // The query strings for which the pinned result will show. - Queries []string `json:"queries,omitempty"` - // Filters which restrict who should see the pinned document. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // The document to be pinned. - DocumentID *string `json:"documentId,omitempty"` -} - -func (o *PinRequest) GetQueries() []string { - if o == nil { - return nil - } - return o.Queries -} - -func (o *PinRequest) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *PinRequest) GetDocumentID() *string { - if o == nil { - return nil - } - return o.DocumentID -} diff --git a/tests/mockserver/internal/sdk/models/components/possiblevalue.go b/tests/mockserver/internal/sdk/models/components/possiblevalue.go deleted file mode 100644 index a2238c72..00000000 --- a/tests/mockserver/internal/sdk/models/components/possiblevalue.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// PossibleValue - Possible value of a specific parameter -type PossibleValue struct { - // Possible value - Value *string `json:"value,omitempty"` - // User-friendly label associated with the value - Label *string `json:"label,omitempty"` -} - -func (o *PossibleValue) GetValue() *string { - if o == nil { - return nil - } - return o.Value -} - -func (o *PossibleValue) GetLabel() *string { - if o == nil { - return nil - } - return o.Label -} diff --git a/tests/mockserver/internal/sdk/models/components/processalldocumentsrequest.go b/tests/mockserver/internal/sdk/models/components/processalldocumentsrequest.go deleted file mode 100644 index 3da693ea..00000000 --- a/tests/mockserver/internal/sdk/models/components/processalldocumentsrequest.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ProcessAllDocumentsRequest - Describes the request body of the /processalldocuments API call -type ProcessAllDocumentsRequest struct { - // If provided, process documents only for this custom datasource. Otherwise all uploaded documents are processed. - Datasource *string `json:"datasource,omitempty"` -} - -func (o *ProcessAllDocumentsRequest) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} diff --git a/tests/mockserver/internal/sdk/models/components/processallmembershipsrequest.go b/tests/mockserver/internal/sdk/models/components/processallmembershipsrequest.go deleted file mode 100644 index baaa3e15..00000000 --- a/tests/mockserver/internal/sdk/models/components/processallmembershipsrequest.go +++ /dev/null @@ -1,16 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ProcessAllMembershipsRequest - Describes the request body of the /processallmemberships API call -type ProcessAllMembershipsRequest struct { - // If provided, process group memberships only for this custom datasource. Otherwise all uploaded memberships are processed. - Datasource *string `json:"datasource,omitempty"` -} - -func (o *ProcessAllMembershipsRequest) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} diff --git a/tests/mockserver/internal/sdk/models/components/processinghistoryevent.go b/tests/mockserver/internal/sdk/models/components/processinghistoryevent.go deleted file mode 100644 index e808139c..00000000 --- a/tests/mockserver/internal/sdk/models/components/processinghistoryevent.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ProcessingHistoryEvent - Processing history event for a datasource -type ProcessingHistoryEvent struct { - // The start time of the processing in ISO 8601 format - StartTime *string `json:"startTime,omitempty"` - // The end time of the processing in ISO 8601 format, 'NA' if still in progress - EndTime *string `json:"endTime,omitempty"` -} - -func (o *ProcessingHistoryEvent) GetStartTime() *string { - if o == nil { - return nil - } - return o.StartTime -} - -func (o *ProcessingHistoryEvent) GetEndTime() *string { - if o == nil { - return nil - } - return o.EndTime -} diff --git a/tests/mockserver/internal/sdk/models/components/prompttemplate.go b/tests/mockserver/internal/sdk/models/components/prompttemplate.go deleted file mode 100644 index ad65ceb6..00000000 --- a/tests/mockserver/internal/sdk/models/components/prompttemplate.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type PromptTemplate struct { - // The user-given identifier for this prompt template. - Name *string `json:"name,omitempty"` - // The actual template string. - Template string `json:"template"` - // The Application Id the prompt template should be created under. Empty for default assistant. - ApplicationID *string `json:"applicationId,omitempty"` - Inclusions *ChatRestrictionFilters `json:"inclusions,omitempty"` - // A list of added user roles for the Workflow. - AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"` - // A list of removed user roles for the Workflow. - RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` - // Opaque id for this prompt template - ID *string `json:"id,omitempty"` - Author *Person `json:"author,omitempty"` - // Server Unix timestamp of the creation time. - CreateTimestamp *int64 `json:"createTimestamp,omitempty"` - // Server Unix timestamp of the last update time. - LastUpdateTimestamp *int64 `json:"lastUpdateTimestamp,omitempty"` - LastUpdatedBy *Person `json:"lastUpdatedBy,omitempty"` - // A list of roles for this prompt template explicitly granted. - Roles []UserRoleSpecification `json:"roles,omitempty"` -} - -func (o *PromptTemplate) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *PromptTemplate) GetTemplate() string { - if o == nil { - return "" - } - return o.Template -} - -func (o *PromptTemplate) GetApplicationID() *string { - if o == nil { - return nil - } - return o.ApplicationID -} - -func (o *PromptTemplate) GetInclusions() *ChatRestrictionFilters { - if o == nil { - return nil - } - return o.Inclusions -} - -func (o *PromptTemplate) GetAddedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.AddedRoles -} - -func (o *PromptTemplate) GetRemovedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.RemovedRoles -} - -func (o *PromptTemplate) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *PromptTemplate) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *PromptTemplate) GetAuthor() *Person { - if o == nil { - return nil - } - return o.Author -} - -func (o *PromptTemplate) GetCreateTimestamp() *int64 { - if o == nil { - return nil - } - return o.CreateTimestamp -} - -func (o *PromptTemplate) GetLastUpdateTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastUpdateTimestamp -} - -func (o *PromptTemplate) GetLastUpdatedBy() *Person { - if o == nil { - return nil - } - return o.LastUpdatedBy -} - -func (o *PromptTemplate) GetRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.Roles -} diff --git a/tests/mockserver/internal/sdk/models/components/prompttemplateresult.go b/tests/mockserver/internal/sdk/models/components/prompttemplateresult.go deleted file mode 100644 index 9ef3447d..00000000 --- a/tests/mockserver/internal/sdk/models/components/prompttemplateresult.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type PromptTemplateResult struct { - PromptTemplate *PromptTemplate `json:"promptTemplate,omitempty"` - // An opaque token that represents this prompt template - TrackingToken *string `json:"trackingToken,omitempty"` - FavoriteInfo *FavoriteInfo `json:"favoriteInfo,omitempty"` - RunCount *CountInfo `json:"runCount,omitempty"` -} - -func (o *PromptTemplateResult) GetPromptTemplate() *PromptTemplate { - if o == nil { - return nil - } - return o.PromptTemplate -} - -func (o *PromptTemplateResult) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *PromptTemplateResult) GetFavoriteInfo() *FavoriteInfo { - if o == nil { - return nil - } - return o.FavoriteInfo -} - -func (o *PromptTemplateResult) GetRunCount() *CountInfo { - if o == nil { - return nil - } - return o.RunCount -} diff --git a/tests/mockserver/internal/sdk/models/components/propertydefinition.go b/tests/mockserver/internal/sdk/models/components/propertydefinition.go deleted file mode 100644 index d1631c91..00000000 --- a/tests/mockserver/internal/sdk/models/components/propertydefinition.go +++ /dev/null @@ -1,162 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// PropertyType - The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. -type PropertyType string - -const ( - PropertyTypeText PropertyType = "TEXT" - PropertyTypeDate PropertyType = "DATE" - PropertyTypeInt PropertyType = "INT" - PropertyTypeUserid PropertyType = "USERID" - PropertyTypePicklist PropertyType = "PICKLIST" - PropertyTypeTextlist PropertyType = "TEXTLIST" - PropertyTypeMultipicklist PropertyType = "MULTIPICKLIST" -) - -func (e PropertyType) ToPointer() *PropertyType { - return &e -} -func (e *PropertyType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "TEXT": - fallthrough - case "DATE": - fallthrough - case "INT": - fallthrough - case "USERID": - fallthrough - case "PICKLIST": - fallthrough - case "TEXTLIST": - fallthrough - case "MULTIPICKLIST": - *e = PropertyType(v) - return nil - default: - return fmt.Errorf("invalid value for PropertyType: %v", v) - } -} - -type UIOptions string - -const ( - UIOptionsNone UIOptions = "NONE" - UIOptionsSearchResult UIOptions = "SEARCH_RESULT" - UIOptionsDocHovercard UIOptions = "DOC_HOVERCARD" -) - -func (e UIOptions) ToPointer() *UIOptions { - return &e -} -func (e *UIOptions) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "NONE": - fallthrough - case "SEARCH_RESULT": - fallthrough - case "DOC_HOVERCARD": - *e = UIOptions(v) - return nil - default: - return fmt.Errorf("invalid value for UIOptions: %v", v) - } -} - -type PropertyDefinition struct { - // The name of the property in the `DocumentMetadata` (e.g. 'createTime', 'updateTime', 'author', 'container'). In the future, this will support custom properties too. - Name *string `json:"name,omitempty"` - // The user friendly label for the property. - DisplayLabel *string `json:"displayLabel,omitempty"` - // The user friendly label for the property that will be used if a plural context. - DisplayLabelPlural *string `json:"displayLabelPlural,omitempty"` - // The type of custom property - this governs the search and faceting behavior. Note that MULTIPICKLIST is not yet supported. - PropertyType *PropertyType `json:"propertyType,omitempty"` - UIOptions *UIOptions `json:"uiOptions,omitempty"` - // If true then the property will not show up as a facet in the UI. - HideUIFacet *bool `json:"hideUiFacet,omitempty"` - // Will be used to set the order of facets in the UI, if present. If set for one facet, must be set for all non-hidden UI facets. Must take on an integer value from 1 (shown at the top) to N (shown last), where N is the number of non-hidden UI facets. These facets will be ordered below the built-in "Type" and "Tag" operators. - UIFacetOrder *int64 `json:"uiFacetOrder,omitempty"` - // If true then the property will not be indexed for retrieval and ranking. - SkipIndexing *bool `json:"skipIndexing,omitempty"` - // The unique identifier of the `PropertyGroup` to which this property belongs. - Group *string `json:"group,omitempty"` -} - -func (o *PropertyDefinition) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *PropertyDefinition) GetDisplayLabel() *string { - if o == nil { - return nil - } - return o.DisplayLabel -} - -func (o *PropertyDefinition) GetDisplayLabelPlural() *string { - if o == nil { - return nil - } - return o.DisplayLabelPlural -} - -func (o *PropertyDefinition) GetPropertyType() *PropertyType { - if o == nil { - return nil - } - return o.PropertyType -} - -func (o *PropertyDefinition) GetUIOptions() *UIOptions { - if o == nil { - return nil - } - return o.UIOptions -} - -func (o *PropertyDefinition) GetHideUIFacet() *bool { - if o == nil { - return nil - } - return o.HideUIFacet -} - -func (o *PropertyDefinition) GetUIFacetOrder() *int64 { - if o == nil { - return nil - } - return o.UIFacetOrder -} - -func (o *PropertyDefinition) GetSkipIndexing() *bool { - if o == nil { - return nil - } - return o.SkipIndexing -} - -func (o *PropertyDefinition) GetGroup() *string { - if o == nil { - return nil - } - return o.Group -} diff --git a/tests/mockserver/internal/sdk/models/components/propertygroup.go b/tests/mockserver/internal/sdk/models/components/propertygroup.go deleted file mode 100644 index 173332a5..00000000 --- a/tests/mockserver/internal/sdk/models/components/propertygroup.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// PropertyGroup - A grouping for multiple PropertyDefinition. Grouped properties will be displayed together in the UI. -type PropertyGroup struct { - // The unique identifier of the group. - Name *string `json:"name,omitempty"` - // The user-friendly group label to display. - DisplayLabel *string `json:"displayLabel,omitempty"` -} - -func (o *PropertyGroup) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *PropertyGroup) GetDisplayLabel() *string { - if o == nil { - return nil - } - return o.DisplayLabel -} diff --git a/tests/mockserver/internal/sdk/models/components/queryinsight.go b/tests/mockserver/internal/sdk/models/components/queryinsight.go deleted file mode 100644 index faaa01fb..00000000 --- a/tests/mockserver/internal/sdk/models/components/queryinsight.go +++ /dev/null @@ -1,56 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type QueryInsight struct { - // The query string the information is about. - Query string `json:"query"` - SearchCount *CountInfo `json:"searchCount,omitempty"` - SearchorCount *CountInfo `json:"searchorCount,omitempty"` - SearchWithClickCount *CountInfo `json:"searchWithClickCount,omitempty"` - ClickCount *CountInfo `json:"clickCount,omitempty"` - // list of similar queries to current one. - SimilarQueries []QueryInsight `json:"similarQueries,omitempty"` -} - -func (o *QueryInsight) GetQuery() string { - if o == nil { - return "" - } - return o.Query -} - -func (o *QueryInsight) GetSearchCount() *CountInfo { - if o == nil { - return nil - } - return o.SearchCount -} - -func (o *QueryInsight) GetSearchorCount() *CountInfo { - if o == nil { - return nil - } - return o.SearchorCount -} - -func (o *QueryInsight) GetSearchWithClickCount() *CountInfo { - if o == nil { - return nil - } - return o.SearchWithClickCount -} - -func (o *QueryInsight) GetClickCount() *CountInfo { - if o == nil { - return nil - } - return o.ClickCount -} - -func (o *QueryInsight) GetSimilarQueries() []QueryInsight { - if o == nil { - return nil - } - return o.SimilarQueries -} diff --git a/tests/mockserver/internal/sdk/models/components/queryinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/queryinsightsresponse.go deleted file mode 100644 index 6f6c8ef2..00000000 --- a/tests/mockserver/internal/sdk/models/components/queryinsightsresponse.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type QueryInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - // Insights for queries. - QueryInsights []QueryInsight `json:"queryInsights,omitempty"` - // Insights for low performing queries without good results. - LowPerformingQueryInsights []QueryInsight `json:"lowPerformingQueryInsights,omitempty"` - // list of departments applicable for queries tab. - Departments []string `json:"departments,omitempty"` - // Min threshold in number of visitors while populating results, otherwise 0. - MinVisitorThreshold *int64 `json:"minVisitorThreshold,omitempty"` -} - -func (o *QueryInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *QueryInsightsResponse) GetQueryInsights() []QueryInsight { - if o == nil { - return nil - } - return o.QueryInsights -} - -func (o *QueryInsightsResponse) GetLowPerformingQueryInsights() []QueryInsight { - if o == nil { - return nil - } - return o.LowPerformingQueryInsights -} - -func (o *QueryInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} - -func (o *QueryInsightsResponse) GetMinVisitorThreshold() *int64 { - if o == nil { - return nil - } - return o.MinVisitorThreshold -} diff --git a/tests/mockserver/internal/sdk/models/components/querysuggestion.go b/tests/mockserver/internal/sdk/models/components/querysuggestion.go deleted file mode 100644 index b6c573d7..00000000 --- a/tests/mockserver/internal/sdk/models/components/querysuggestion.go +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type QuerySuggestion struct { - // A query term missing from the original query on which this suggestion is based. - MissingTerm *string `json:"missingTerm,omitempty"` - // The query being suggested (e.g. enforcing the missing term from the original query). - Query string `json:"query"` - SearchProviderInfo *SearchProviderInfo `json:"searchProviderInfo,omitempty"` - // A user-facing description to display for the suggestion. - Label *string `json:"label,omitempty"` - // The datasource associated with the suggestion. - Datasource *string `json:"datasource,omitempty"` - RequestOptions *SearchRequestOptions `json:"requestOptions,omitempty"` - // The bolded ranges within the query of the QuerySuggestion. - Ranges []TextRange `json:"ranges,omitempty"` - InputDetails *SearchRequestInputDetails `json:"inputDetails,omitempty"` -} - -func (q QuerySuggestion) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(q, "", false) -} - -func (q *QuerySuggestion) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &q, "", false, []string{"query"}); err != nil { - return err - } - return nil -} - -func (o *QuerySuggestion) GetMissingTerm() *string { - if o == nil { - return nil - } - return o.MissingTerm -} - -func (o *QuerySuggestion) GetQuery() string { - if o == nil { - return "" - } - return o.Query -} - -func (o *QuerySuggestion) GetSearchProviderInfo() *SearchProviderInfo { - if o == nil { - return nil - } - return o.SearchProviderInfo -} - -func (o *QuerySuggestion) GetLabel() *string { - if o == nil { - return nil - } - return o.Label -} - -func (o *QuerySuggestion) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *QuerySuggestion) GetRequestOptions() *SearchRequestOptions { - if o == nil { - return nil - } - return o.RequestOptions -} - -func (o *QuerySuggestion) GetRanges() []TextRange { - if o == nil { - return nil - } - return o.Ranges -} - -func (o *QuerySuggestion) GetInputDetails() *SearchRequestInputDetails { - if o == nil { - return nil - } - return o.InputDetails -} diff --git a/tests/mockserver/internal/sdk/models/components/querysuggestionlist.go b/tests/mockserver/internal/sdk/models/components/querysuggestionlist.go deleted file mode 100644 index 08eda91a..00000000 --- a/tests/mockserver/internal/sdk/models/components/querysuggestionlist.go +++ /dev/null @@ -1,37 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type QuerySuggestionList struct { - Suggestions []QuerySuggestion `json:"suggestions,omitempty"` - Person *Person `json:"person,omitempty"` -} - -func (q QuerySuggestionList) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(q, "", false) -} - -func (q *QuerySuggestionList) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &q, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *QuerySuggestionList) GetSuggestions() []QuerySuggestion { - if o == nil { - return nil - } - return o.Suggestions -} - -func (o *QuerySuggestionList) GetPerson() *Person { - if o == nil { - return nil - } - return o.Person -} diff --git a/tests/mockserver/internal/sdk/models/components/quicklink.go b/tests/mockserver/internal/sdk/models/components/quicklink.go deleted file mode 100644 index 7387d909..00000000 --- a/tests/mockserver/internal/sdk/models/components/quicklink.go +++ /dev/null @@ -1,101 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type Scope string - -const ( - ScopeAppCard Scope = "APP_CARD" - ScopeAutocompleteExactMatch Scope = "AUTOCOMPLETE_EXACT_MATCH" - ScopeAutocompleteFuzzyMatch Scope = "AUTOCOMPLETE_FUZZY_MATCH" - ScopeAutocompleteZeroQuery Scope = "AUTOCOMPLETE_ZERO_QUERY" - ScopeNewTabPage Scope = "NEW_TAB_PAGE" -) - -func (e Scope) ToPointer() *Scope { - return &e -} -func (e *Scope) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "APP_CARD": - fallthrough - case "AUTOCOMPLETE_EXACT_MATCH": - fallthrough - case "AUTOCOMPLETE_FUZZY_MATCH": - fallthrough - case "AUTOCOMPLETE_ZERO_QUERY": - fallthrough - case "NEW_TAB_PAGE": - *e = Scope(v) - return nil - default: - return fmt.Errorf("invalid value for Scope: %v", v) - } -} - -// Quicklink - An action for a specific datasource that will show up in autocomplete and app card, e.g. "Create new issue" for jira. -type Quicklink struct { - // Full action name. Used in autocomplete. - Name *string `json:"name,omitempty"` - // Shortened name. Used in app cards. - ShortName *string `json:"shortName,omitempty"` - // The URL of the action. - URL *string `json:"url,omitempty"` - // Defines how to render an icon - IconConfig *IconConfig `json:"iconConfig,omitempty"` - // Unique identifier of this quicklink - ID *string `json:"id,omitempty"` - // The scopes for which this quicklink is applicable - Scopes []Scope `json:"scopes,omitempty"` -} - -func (o *Quicklink) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *Quicklink) GetShortName() *string { - if o == nil { - return nil - } - return o.ShortName -} - -func (o *Quicklink) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *Quicklink) GetIconConfig() *IconConfig { - if o == nil { - return nil - } - return o.IconConfig -} - -func (o *Quicklink) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *Quicklink) GetScopes() []Scope { - if o == nil { - return nil - } - return o.Scopes -} diff --git a/tests/mockserver/internal/sdk/models/components/reaction.go b/tests/mockserver/internal/sdk/models/components/reaction.go deleted file mode 100644 index cdc2dd7c..00000000 --- a/tests/mockserver/internal/sdk/models/components/reaction.go +++ /dev/null @@ -1,55 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type Reaction struct { - Type *string `json:"type,omitempty"` - // The count of the reaction type on the document. - Count *int64 `json:"count,omitempty"` - Reactors []Person `json:"reactors,omitempty"` - // Whether the user in context reacted with this type to the document. - ReactedByViewer *bool `json:"reactedByViewer,omitempty"` -} - -func (r Reaction) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *Reaction) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *Reaction) GetType() *string { - if o == nil { - return nil - } - return o.Type -} - -func (o *Reaction) GetCount() *int64 { - if o == nil { - return nil - } - return o.Count -} - -func (o *Reaction) GetReactors() []Person { - if o == nil { - return nil - } - return o.Reactors -} - -func (o *Reaction) GetReactedByViewer() *bool { - if o == nil { - return nil - } - return o.ReactedByViewer -} diff --git a/tests/mockserver/internal/sdk/models/components/readpermission.go b/tests/mockserver/internal/sdk/models/components/readpermission.go deleted file mode 100644 index 769b69ab..00000000 --- a/tests/mockserver/internal/sdk/models/components/readpermission.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// ReadPermission - Describes the read permission level that a user has for a specific feature -type ReadPermission struct { - // Describes the scope for a ReadPermission, WritePermission, or GrantPermission object - ScopeType *ScopeType `json:"scopeType,omitempty"` -} - -func (r ReadPermission) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *ReadPermission) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *ReadPermission) GetScopeType() *ScopeType { - if o == nil { - return nil - } - return o.ScopeType -} diff --git a/tests/mockserver/internal/sdk/models/components/recommendationsrequest.go b/tests/mockserver/internal/sdk/models/components/recommendationsrequest.go deleted file mode 100644 index 546f09db..00000000 --- a/tests/mockserver/internal/sdk/models/components/recommendationsrequest.go +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -type RecommendationsRequest struct { - // The ISO 8601 timestamp associated with the client request. - Timestamp *time.Time `json:"timestamp,omitempty"` - // A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. - TrackingToken *string `json:"trackingToken,omitempty"` - SessionInfo *SessionInfo `json:"sessionInfo,omitempty"` - SourceDocument *Document `json:"sourceDocument,omitempty"` - // Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. - PageSize *int64 `json:"pageSize,omitempty"` - // Hint to the server about how many characters long a snippet may be. Server may return less or more. - MaxSnippetSize *int64 `json:"maxSnippetSize,omitempty"` - RecommendationDocumentSpec *DocumentSpecUnion `json:"recommendationDocumentSpec,omitempty"` - RequestOptions *RecommendationsRequestOptions `json:"requestOptions,omitempty"` -} - -func (r RecommendationsRequest) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *RecommendationsRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *RecommendationsRequest) GetTimestamp() *time.Time { - if o == nil { - return nil - } - return o.Timestamp -} - -func (o *RecommendationsRequest) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *RecommendationsRequest) GetSessionInfo() *SessionInfo { - if o == nil { - return nil - } - return o.SessionInfo -} - -func (o *RecommendationsRequest) GetSourceDocument() *Document { - if o == nil { - return nil - } - return o.SourceDocument -} - -func (o *RecommendationsRequest) GetPageSize() *int64 { - if o == nil { - return nil - } - return o.PageSize -} - -func (o *RecommendationsRequest) GetMaxSnippetSize() *int64 { - if o == nil { - return nil - } - return o.MaxSnippetSize -} - -func (o *RecommendationsRequest) GetRecommendationDocumentSpec() *DocumentSpecUnion { - if o == nil { - return nil - } - return o.RecommendationDocumentSpec -} - -func (o *RecommendationsRequest) GetRequestOptions() *RecommendationsRequestOptions { - if o == nil { - return nil - } - return o.RequestOptions -} diff --git a/tests/mockserver/internal/sdk/models/components/recommendationsrequestoptions.go b/tests/mockserver/internal/sdk/models/components/recommendationsrequestoptions.go deleted file mode 100644 index 15fd1bbd..00000000 --- a/tests/mockserver/internal/sdk/models/components/recommendationsrequestoptions.go +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type RecommendationsRequestOptions struct { - // Filter results to a single datasource name (e.g. gmail, slack). All results are returned if missing. - DatasourceFilter *string `json:"datasourceFilter,omitempty"` - // Filter results to only those relevant to one or more datasources (e.g. jira, gdrive). All results are returned if missing. - DatasourcesFilter []string `json:"datasourcesFilter,omitempty"` - // A list of facet filter sets that will be OR'ed together. - FacetFilterSets []FacetFilterSet `json:"facetFilterSets,omitempty"` - Context *Document `json:"context,omitempty"` - // The types of prominence wanted in results returned. Default is any type. - ResultProminence []SearchResultProminenceEnum `json:"resultProminence,omitempty"` -} - -func (o *RecommendationsRequestOptions) GetDatasourceFilter() *string { - if o == nil { - return nil - } - return o.DatasourceFilter -} - -func (o *RecommendationsRequestOptions) GetDatasourcesFilter() []string { - if o == nil { - return nil - } - return o.DatasourcesFilter -} - -func (o *RecommendationsRequestOptions) GetFacetFilterSets() []FacetFilterSet { - if o == nil { - return nil - } - return o.FacetFilterSets -} - -func (o *RecommendationsRequestOptions) GetContext() *Document { - if o == nil { - return nil - } - return o.Context -} - -func (o *RecommendationsRequestOptions) GetResultProminence() []SearchResultProminenceEnum { - if o == nil { - return nil - } - return o.ResultProminence -} diff --git a/tests/mockserver/internal/sdk/models/components/referencerange.go b/tests/mockserver/internal/sdk/models/components/referencerange.go deleted file mode 100644 index 7fe5e73a..00000000 --- a/tests/mockserver/internal/sdk/models/components/referencerange.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ReferenceRange - Each text range from the response can correspond to an array of snippets from the citation source. -type ReferenceRange struct { - // A subsection of a given string to which some special formatting should be applied. - TextRange *TextRange `json:"textRange,omitempty"` - Snippets []SearchResultSnippet `json:"snippets,omitempty"` -} - -func (o *ReferenceRange) GetTextRange() *TextRange { - if o == nil { - return nil - } - return o.TextRange -} - -func (o *ReferenceRange) GetSnippets() []SearchResultSnippet { - if o == nil { - return nil - } - return o.Snippets -} diff --git a/tests/mockserver/internal/sdk/models/components/relateddocuments.go b/tests/mockserver/internal/sdk/models/components/relateddocuments.go deleted file mode 100644 index b31d3fba..00000000 --- a/tests/mockserver/internal/sdk/models/components/relateddocuments.go +++ /dev/null @@ -1,138 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -// Relation - How this document relates to the including entity. -type Relation string - -const ( - RelationAttachment Relation = "ATTACHMENT" - RelationCanonical Relation = "CANONICAL" - RelationCase Relation = "CASE" - RelationContactLower Relation = "contact" - RelationContactUpper Relation = "CONTACT" - RelationConversationMessages Relation = "CONVERSATION_MESSAGES" - RelationExpert Relation = "EXPERT" - RelationFrom Relation = "FROM" - RelationHighlight Relation = "HIGHLIGHT" - RelationOpportunityLower Relation = "opportunity" - RelationOpportunityUpper Relation = "OPPORTUNITY" - RelationRecent Relation = "RECENT" - RelationSource Relation = "SOURCE" - RelationTicket Relation = "TICKET" - RelationTranscript Relation = "TRANSCRIPT" - RelationWith Relation = "WITH" -) - -func (e Relation) ToPointer() *Relation { - return &e -} -func (e *Relation) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ATTACHMENT": - fallthrough - case "CANONICAL": - fallthrough - case "CASE": - fallthrough - case "contact": - fallthrough - case "CONTACT": - fallthrough - case "CONVERSATION_MESSAGES": - fallthrough - case "EXPERT": - fallthrough - case "FROM": - fallthrough - case "HIGHLIGHT": - fallthrough - case "opportunity": - fallthrough - case "OPPORTUNITY": - fallthrough - case "RECENT": - fallthrough - case "SOURCE": - fallthrough - case "TICKET": - fallthrough - case "TRANSCRIPT": - fallthrough - case "WITH": - *e = Relation(v) - return nil - default: - return fmt.Errorf("invalid value for Relation: %v", v) - } -} - -type RelatedDocuments struct { - // How this document relates to the including entity. - Relation *Relation `json:"relation,omitempty"` - // Which entity in the response that this entity relates to. Relevant when there are multiple entities associated with the response (such as merged customers) - AssociatedEntityID *string `json:"associatedEntityId,omitempty"` - QuerySuggestion *QuerySuggestion `json:"querySuggestion,omitempty"` - // A truncated list of documents with this relation. TO BE DEPRECATED. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Documents []Document `json:"documents,omitempty"` - // A truncated list of documents associated with this relation. To be used in favor of `documents` because it contains a trackingToken. - Results []SearchResult `json:"results,omitempty"` -} - -func (r RelatedDocuments) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *RelatedDocuments) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *RelatedDocuments) GetRelation() *Relation { - if o == nil { - return nil - } - return o.Relation -} - -func (o *RelatedDocuments) GetAssociatedEntityID() *string { - if o == nil { - return nil - } - return o.AssociatedEntityID -} - -func (o *RelatedDocuments) GetQuerySuggestion() *QuerySuggestion { - if o == nil { - return nil - } - return o.QuerySuggestion -} - -func (o *RelatedDocuments) GetDocuments() []Document { - if o == nil { - return nil - } - return o.Documents -} - -func (o *RelatedDocuments) GetResults() []SearchResult { - if o == nil { - return nil - } - return o.Results -} diff --git a/tests/mockserver/internal/sdk/models/components/relatedobject.go b/tests/mockserver/internal/sdk/models/components/relatedobject.go deleted file mode 100644 index 4dc10d77..00000000 --- a/tests/mockserver/internal/sdk/models/components/relatedobject.go +++ /dev/null @@ -1,63 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// RelatedObjectMetadata - Some metadata of the object which can be displayed, while not having the actual object. -type RelatedObjectMetadata struct { - // Placeholder name of the object, not the relationship. - Name *string `json:"name,omitempty"` -} - -func (r RelatedObjectMetadata) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *RelatedObjectMetadata) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *RelatedObjectMetadata) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -type RelatedObject struct { - // The ID of the related object - ID string `json:"id"` - // Some metadata of the object which can be displayed, while not having the actual object. - Metadata *RelatedObjectMetadata `json:"metadata,omitempty"` -} - -func (r RelatedObject) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *RelatedObject) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, []string{"id"}); err != nil { - return err - } - return nil -} - -func (o *RelatedObject) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -func (o *RelatedObject) GetMetadata() *RelatedObjectMetadata { - if o == nil { - return nil - } - return o.Metadata -} diff --git a/tests/mockserver/internal/sdk/models/components/relatedobjectedge.go b/tests/mockserver/internal/sdk/models/components/relatedobjectedge.go deleted file mode 100644 index aa001154..00000000 --- a/tests/mockserver/internal/sdk/models/components/relatedobjectedge.go +++ /dev/null @@ -1,29 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type RelatedObjectEdge struct { - Objects []RelatedObject `json:"objects,omitempty"` -} - -func (r RelatedObjectEdge) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *RelatedObjectEdge) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *RelatedObjectEdge) GetObjects() []RelatedObject { - if o == nil { - return nil - } - return o.Objects -} diff --git a/tests/mockserver/internal/sdk/models/components/relatedquestion.go b/tests/mockserver/internal/sdk/models/components/relatedquestion.go deleted file mode 100644 index 868ca518..00000000 --- a/tests/mockserver/internal/sdk/models/components/relatedquestion.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type RelatedQuestion struct { - // The text of the related question - Question *string `json:"question,omitempty"` - // The answer for the related question - Answer *string `json:"answer,omitempty"` - // Subsections of the answer string to which some special formatting should be applied (eg. bold) - Ranges []TextRange `json:"ranges,omitempty"` -} - -func (r RelatedQuestion) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *RelatedQuestion) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *RelatedQuestion) GetQuestion() *string { - if o == nil { - return nil - } - return o.Question -} - -func (o *RelatedQuestion) GetAnswer() *string { - if o == nil { - return nil - } - return o.Answer -} - -func (o *RelatedQuestion) GetRanges() []TextRange { - if o == nil { - return nil - } - return o.Ranges -} diff --git a/tests/mockserver/internal/sdk/models/components/reminder.go b/tests/mockserver/internal/sdk/models/components/reminder.go deleted file mode 100644 index 5ea8bfcb..00000000 --- a/tests/mockserver/internal/sdk/models/components/reminder.go +++ /dev/null @@ -1,64 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type Reminder struct { - Assignee Person `json:"assignee"` - Requestor *Person `json:"requestor,omitempty"` - // Unix timestamp for when the reminder should trigger (in seconds since epoch UTC). - RemindAt int64 `json:"remindAt"` - // Unix timestamp for when the reminder was first created (in seconds since epoch UTC). - CreatedAt *int64 `json:"createdAt,omitempty"` - // An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). - Reason *string `json:"reason,omitempty"` -} - -func (r Reminder) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *Reminder) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, []string{"assignee", "remindAt"}); err != nil { - return err - } - return nil -} - -func (o *Reminder) GetAssignee() Person { - if o == nil { - return Person{} - } - return o.Assignee -} - -func (o *Reminder) GetRequestor() *Person { - if o == nil { - return nil - } - return o.Requestor -} - -func (o *Reminder) GetRemindAt() int64 { - if o == nil { - return 0 - } - return o.RemindAt -} - -func (o *Reminder) GetCreatedAt() *int64 { - if o == nil { - return nil - } - return o.CreatedAt -} - -func (o *Reminder) GetReason() *string { - if o == nil { - return nil - } - return o.Reason -} diff --git a/tests/mockserver/internal/sdk/models/components/reminderrequest.go b/tests/mockserver/internal/sdk/models/components/reminderrequest.go deleted file mode 100644 index d501a754..00000000 --- a/tests/mockserver/internal/sdk/models/components/reminderrequest.go +++ /dev/null @@ -1,42 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ReminderRequest struct { - // The document which the verification is for new reminders and/or update. - DocumentID string `json:"documentId"` - // The obfuscated id of the person this verification is assigned to. - Assignee *string `json:"assignee,omitempty"` - // Reminder for the next verifications in terms of days. For deletion, this will be omitted. - RemindInDays *int64 `json:"remindInDays,omitempty"` - // An optional free-text reason for the reminder. This is particularly useful when a reminder is used to ask for verification from another user (for example, "Duplicate", "Incomplete", "Incorrect"). - Reason *string `json:"reason,omitempty"` -} - -func (o *ReminderRequest) GetDocumentID() string { - if o == nil { - return "" - } - return o.DocumentID -} - -func (o *ReminderRequest) GetAssignee() *string { - if o == nil { - return nil - } - return o.Assignee -} - -func (o *ReminderRequest) GetRemindInDays() *int64 { - if o == nil { - return nil - } - return o.RemindInDays -} - -func (o *ReminderRequest) GetReason() *string { - if o == nil { - return nil - } - return o.Reason -} diff --git a/tests/mockserver/internal/sdk/models/components/reportstatusresponse.go b/tests/mockserver/internal/sdk/models/components/reportstatusresponse.go deleted file mode 100644 index e2603ee4..00000000 --- a/tests/mockserver/internal/sdk/models/components/reportstatusresponse.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type ReportStatusResponseStatus string - -const ( - ReportStatusResponseStatusPending ReportStatusResponseStatus = "PENDING" - ReportStatusResponseStatusSuccess ReportStatusResponseStatus = "SUCCESS" - ReportStatusResponseStatusFailure ReportStatusResponseStatus = "FAILURE" - ReportStatusResponseStatusCancelled ReportStatusResponseStatus = "CANCELLED" - ReportStatusResponseStatusCancelling ReportStatusResponseStatus = "CANCELLING" - ReportStatusResponseStatusActive ReportStatusResponseStatus = "ACTIVE" -) - -func (e ReportStatusResponseStatus) ToPointer() *ReportStatusResponseStatus { - return &e -} -func (e *ReportStatusResponseStatus) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "PENDING": - fallthrough - case "SUCCESS": - fallthrough - case "FAILURE": - fallthrough - case "CANCELLED": - fallthrough - case "CANCELLING": - fallthrough - case "ACTIVE": - *e = ReportStatusResponseStatus(v) - return nil - default: - return fmt.Errorf("invalid value for ReportStatusResponseStatus: %v", v) - } -} - -type ReportStatusResponse struct { - Status *ReportStatusResponseStatus `json:"status,omitempty"` - // The timestamp at which the report's run/scan began. - StartTime *string `json:"startTime,omitempty"` -} - -func (o *ReportStatusResponse) GetStatus() *ReportStatusResponseStatus { - if o == nil { - return nil - } - return o.Status -} - -func (o *ReportStatusResponse) GetStartTime() *string { - if o == nil { - return nil - } - return o.StartTime -} diff --git a/tests/mockserver/internal/sdk/models/components/restrictionfilters.go b/tests/mockserver/internal/sdk/models/components/restrictionfilters.go deleted file mode 100644 index 616624fc..00000000 --- a/tests/mockserver/internal/sdk/models/components/restrictionfilters.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type RestrictionFilters struct { - // Specifications for containers that should be used as part of the restriction (include/exclude). Memberships are recursively defined for a subset of datasources (currently: SharePoint, OneDrive, Google Drive, and Confluence). Please contact the Glean team to enable this for more datasources. Recursive memberships do not apply for Collections. - ContainerSpecs []DocumentSpecUnion `json:"containerSpecs,omitempty"` -} - -func (r RestrictionFilters) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *RestrictionFilters) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *RestrictionFilters) GetContainerSpecs() []DocumentSpecUnion { - if o == nil { - return nil - } - return o.ContainerSpecs -} diff --git a/tests/mockserver/internal/sdk/models/components/resultsdescription.go b/tests/mockserver/internal/sdk/models/components/resultsdescription.go deleted file mode 100644 index 4b626663..00000000 --- a/tests/mockserver/internal/sdk/models/components/resultsdescription.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ResultsDescription struct { - // Textual description of the results. Can be shown at the top of SERP, e.g. 'People who write about this topic' for experts in people tab. - Text *string `json:"text,omitempty"` - // Defines how to render an icon - IconConfig *IconConfig `json:"iconConfig,omitempty"` -} - -func (o *ResultsDescription) GetText() *string { - if o == nil { - return nil - } - return o.Text -} - -func (o *ResultsDescription) GetIconConfig() *IconConfig { - if o == nil { - return nil - } - return o.IconConfig -} diff --git a/tests/mockserver/internal/sdk/models/components/resultsresponse.go b/tests/mockserver/internal/sdk/models/components/resultsresponse.go deleted file mode 100644 index 903402c8..00000000 --- a/tests/mockserver/internal/sdk/models/components/resultsresponse.go +++ /dev/null @@ -1,73 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ResultsResponse struct { - // A token that should be passed for additional requests related to this request (such as more results requests). - TrackingToken *string `json:"trackingToken,omitempty"` - SessionInfo *SessionInfo `json:"sessionInfo,omitempty"` - Results []SearchResult `json:"results,omitempty"` - StructuredResults []StructuredResult `json:"structuredResults,omitempty"` - GeneratedQnaResult *GeneratedQna `json:"generatedQnaResult,omitempty"` - GleanDataError *GleanDataError `json:"errorInfo,omitempty"` - // A platform-generated request ID to correlate backend logs. - RequestID *string `json:"requestID,omitempty"` - // Time in milliseconds the backend took to respond to the request. - BackendTimeMillis *int64 `json:"backendTimeMillis,omitempty"` -} - -func (o *ResultsResponse) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *ResultsResponse) GetSessionInfo() *SessionInfo { - if o == nil { - return nil - } - return o.SessionInfo -} - -func (o *ResultsResponse) GetResults() []SearchResult { - if o == nil { - return nil - } - return o.Results -} - -func (o *ResultsResponse) GetStructuredResults() []StructuredResult { - if o == nil { - return nil - } - return o.StructuredResults -} - -func (o *ResultsResponse) GetGeneratedQnaResult() *GeneratedQna { - if o == nil { - return nil - } - return o.GeneratedQnaResult -} - -func (o *ResultsResponse) GetGleanDataError() *GleanDataError { - if o == nil { - return nil - } - return o.GleanDataError -} - -func (o *ResultsResponse) GetRequestID() *string { - if o == nil { - return nil - } - return o.RequestID -} - -func (o *ResultsResponse) GetBackendTimeMillis() *int64 { - if o == nil { - return nil - } - return o.BackendTimeMillis -} diff --git a/tests/mockserver/internal/sdk/models/components/resulttab.go b/tests/mockserver/internal/sdk/models/components/resulttab.go deleted file mode 100644 index 4f2d94ff..00000000 --- a/tests/mockserver/internal/sdk/models/components/resulttab.go +++ /dev/null @@ -1,42 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ResultTab struct { - // The unique ID of the tab. Can be passed in a search request to get results for that tab. - ID *string `json:"id,omitempty"` - // The number of results in this tab for the current query. - Count *int64 `json:"count,omitempty"` - // The datasource associated with the tab, if any. - Datasource *string `json:"datasource,omitempty"` - // The datasource instance associated with the tab, if any. - DatasourceInstance *string `json:"datasourceInstance,omitempty"` -} - -func (o *ResultTab) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *ResultTab) GetCount() *int64 { - if o == nil { - return nil - } - return o.Count -} - -func (o *ResultTab) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *ResultTab) GetDatasourceInstance() *string { - if o == nil { - return nil - } - return o.DatasourceInstance -} diff --git a/tests/mockserver/internal/sdk/models/components/rotatetokenresponse.go b/tests/mockserver/internal/sdk/models/components/rotatetokenresponse.go deleted file mode 100644 index 7c751f25..00000000 --- a/tests/mockserver/internal/sdk/models/components/rotatetokenresponse.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// RotateTokenResponse - Describes the response body of the /rotatetoken API call -type RotateTokenResponse struct { - // New raw secret - RawSecret *string `json:"rawSecret,omitempty"` - // Unix timestamp in seconds when the new secret value is assigned to the token. The token needs to be rotated before `rotationPeriodMinutes` past the createdAt timestamp otherwise it would be rendered unusable. - CreatedAt *int64 `json:"createdAt,omitempty"` - // Refers to the time period in minutes before which this token needs to be rotated. It is required to rotate the token within the specified `rotationPeriodMinutes` after each `/rotatetoken` call, otherwise the tokens would expire. Note that the token would still expire at `expiresAt` timestamp provided during token creation even if the token is being regularly rotated. `rotationPeriodMinutes` property is inherited from the parent token being rotated - RotationPeriodMinutes *int64 `json:"rotationPeriodMinutes,omitempty"` -} - -func (o *RotateTokenResponse) GetRawSecret() *string { - if o == nil { - return nil - } - return o.RawSecret -} - -func (o *RotateTokenResponse) GetCreatedAt() *int64 { - if o == nil { - return nil - } - return o.CreatedAt -} - -func (o *RotateTokenResponse) GetRotationPeriodMinutes() *int64 { - if o == nil { - return nil - } - return o.RotationPeriodMinutes -} diff --git a/tests/mockserver/internal/sdk/models/components/scopetype.go b/tests/mockserver/internal/sdk/models/components/scopetype.go deleted file mode 100644 index b0f9c8a4..00000000 --- a/tests/mockserver/internal/sdk/models/components/scopetype.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// ScopeType - Describes the scope for a ReadPermission, WritePermission, or GrantPermission object -type ScopeType string - -const ( - ScopeTypeGlobal ScopeType = "GLOBAL" - ScopeTypeOwn ScopeType = "OWN" -) - -func (e ScopeType) ToPointer() *ScopeType { - return &e -} -func (e *ScopeType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "GLOBAL": - fallthrough - case "OWN": - *e = ScopeType(v) - return nil - default: - return fmt.Errorf("invalid value for ScopeType: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/searchagentsrequest.go b/tests/mockserver/internal/sdk/models/components/searchagentsrequest.go deleted file mode 100644 index 121e0c7b..00000000 --- a/tests/mockserver/internal/sdk/models/components/searchagentsrequest.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type SearchAgentsRequest struct { - // Filters on the name of the agent. The keyword search is case-insensitive. If search string is ommited or empty, acts as no filter. - Name *string `json:"name,omitempty"` -} - -func (o *SearchAgentsRequest) GetName() *string { - if o == nil { - return nil - } - return o.Name -} diff --git a/tests/mockserver/internal/sdk/models/components/searchagentsresponse.go b/tests/mockserver/internal/sdk/models/components/searchagentsresponse.go deleted file mode 100644 index 7c26e614..00000000 --- a/tests/mockserver/internal/sdk/models/components/searchagentsresponse.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type SearchAgentsResponse struct { - Agents []Agent `json:"agents,omitempty"` -} - -func (o *SearchAgentsResponse) GetAgents() []Agent { - if o == nil { - return nil - } - return o.Agents -} diff --git a/tests/mockserver/internal/sdk/models/components/searchproviderinfo.go b/tests/mockserver/internal/sdk/models/components/searchproviderinfo.go deleted file mode 100644 index 2f42b9fb..00000000 --- a/tests/mockserver/internal/sdk/models/components/searchproviderinfo.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type SearchProviderInfo struct { - // Name of the search provider. - Name *string `json:"name,omitempty"` - // URL to the provider's logo. - LogoURL *string `json:"logoUrl,omitempty"` - // URL template that can be used to perform the suggested search by replacing the {query} placeholder with the query suggestion. - SearchLinkURLTemplate *string `json:"searchLinkUrlTemplate,omitempty"` -} - -func (s SearchProviderInfo) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SearchProviderInfo) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *SearchProviderInfo) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *SearchProviderInfo) GetLogoURL() *string { - if o == nil { - return nil - } - return o.LogoURL -} - -func (o *SearchProviderInfo) GetSearchLinkURLTemplate() *string { - if o == nil { - return nil - } - return o.SearchLinkURLTemplate -} diff --git a/tests/mockserver/internal/sdk/models/components/searchrequest.go b/tests/mockserver/internal/sdk/models/components/searchrequest.go deleted file mode 100644 index 40507db5..00000000 --- a/tests/mockserver/internal/sdk/models/components/searchrequest.go +++ /dev/null @@ -1,135 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -type SearchRequest struct { - // The ISO 8601 timestamp associated with the client request. - Timestamp *time.Time `json:"timestamp,omitempty"` - // A previously received trackingToken for a search associated with the same query. Useful for more requests and requests for other tabs. - TrackingToken *string `json:"trackingToken,omitempty"` - SessionInfo *SessionInfo `json:"sessionInfo,omitempty"` - SourceDocument *Document `json:"sourceDocument,omitempty"` - // Hint to the server about how many results to send back. Server may return less or more. Structured results and clustered results don't count towards pageSize. - PageSize *int64 `json:"pageSize,omitempty"` - // Hint to the server about how many characters long a snippet may be. Server may return less or more. - MaxSnippetSize *int64 `json:"maxSnippetSize,omitempty"` - // The search terms. - Query string `json:"query"` - // Pagination cursor. A previously received opaque token representing the position in the overall results at which to start. - Cursor *string `json:"cursor,omitempty"` - // The unique IDs of the result tabs for which to fetch results. This will have precedence over datasource filters if both are specified and in conflict. - ResultTabIds []string `json:"resultTabIds,omitempty"` - InputDetails *SearchRequestInputDetails `json:"inputDetails,omitempty"` - RequestOptions *SearchRequestOptions `json:"requestOptions,omitempty"` - // Timeout in milliseconds for the request. A `408` error will be returned if handling the request takes longer. - TimeoutMillis *int64 `json:"timeoutMillis,omitempty"` - // Whether or not to disable spellcheck. - DisableSpellcheck *bool `json:"disableSpellcheck,omitempty"` -} - -func (s SearchRequest) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SearchRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, []string{"query"}); err != nil { - return err - } - return nil -} - -func (o *SearchRequest) GetTimestamp() *time.Time { - if o == nil { - return nil - } - return o.Timestamp -} - -func (o *SearchRequest) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *SearchRequest) GetSessionInfo() *SessionInfo { - if o == nil { - return nil - } - return o.SessionInfo -} - -func (o *SearchRequest) GetSourceDocument() *Document { - if o == nil { - return nil - } - return o.SourceDocument -} - -func (o *SearchRequest) GetPageSize() *int64 { - if o == nil { - return nil - } - return o.PageSize -} - -func (o *SearchRequest) GetMaxSnippetSize() *int64 { - if o == nil { - return nil - } - return o.MaxSnippetSize -} - -func (o *SearchRequest) GetQuery() string { - if o == nil { - return "" - } - return o.Query -} - -func (o *SearchRequest) GetCursor() *string { - if o == nil { - return nil - } - return o.Cursor -} - -func (o *SearchRequest) GetResultTabIds() []string { - if o == nil { - return nil - } - return o.ResultTabIds -} - -func (o *SearchRequest) GetInputDetails() *SearchRequestInputDetails { - if o == nil { - return nil - } - return o.InputDetails -} - -func (o *SearchRequest) GetRequestOptions() *SearchRequestOptions { - if o == nil { - return nil - } - return o.RequestOptions -} - -func (o *SearchRequest) GetTimeoutMillis() *int64 { - if o == nil { - return nil - } - return o.TimeoutMillis -} - -func (o *SearchRequest) GetDisableSpellcheck() *bool { - if o == nil { - return nil - } - return o.DisableSpellcheck -} diff --git a/tests/mockserver/internal/sdk/models/components/searchrequestinputdetails.go b/tests/mockserver/internal/sdk/models/components/searchrequestinputdetails.go deleted file mode 100644 index b35217f0..00000000 --- a/tests/mockserver/internal/sdk/models/components/searchrequestinputdetails.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type SearchRequestInputDetails struct { - // Whether the associated query was at least partially copy-pasted. If subsequent requests are issued after a copy-pasted query is constructed (e.g. with facet modifications), this bit should continue to be set for those requests. - HasCopyPaste *bool `json:"hasCopyPaste,omitempty"` -} - -func (s SearchRequestInputDetails) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SearchRequestInputDetails) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *SearchRequestInputDetails) GetHasCopyPaste() *bool { - if o == nil { - return nil - } - return o.HasCopyPaste -} diff --git a/tests/mockserver/internal/sdk/models/components/searchrequestoptions.go b/tests/mockserver/internal/sdk/models/components/searchrequestoptions.go deleted file mode 100644 index 0a74cf27..00000000 --- a/tests/mockserver/internal/sdk/models/components/searchrequestoptions.go +++ /dev/null @@ -1,209 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -// ResponseHint - Hints for the response content. -type ResponseHint string - -const ( - ResponseHintAllResultCounts ResponseHint = "ALL_RESULT_COUNTS" - ResponseHintFacetResults ResponseHint = "FACET_RESULTS" - ResponseHintQueryMetadata ResponseHint = "QUERY_METADATA" - ResponseHintResults ResponseHint = "RESULTS" - ResponseHintSpellcheckMetadata ResponseHint = "SPELLCHECK_METADATA" -) - -func (e ResponseHint) ToPointer() *ResponseHint { - return &e -} -func (e *ResponseHint) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ALL_RESULT_COUNTS": - fallthrough - case "FACET_RESULTS": - fallthrough - case "QUERY_METADATA": - fallthrough - case "RESULTS": - fallthrough - case "SPELLCHECK_METADATA": - *e = ResponseHint(v) - return nil - default: - return fmt.Errorf("invalid value for ResponseHint: %v", v) - } -} - -type SearchRequestOptions struct { - // Filter results to a single datasource name (e.g. gmail, slack). All results are returned if missing. - DatasourceFilter *string `json:"datasourceFilter,omitempty"` - // Filter results to one or more datasources (e.g. gmail, slack). All results are returned if missing. - DatasourcesFilter []string `json:"datasourcesFilter,omitempty"` - // If true, the operators in the query are taken to override any operators in facetFilters in the case of conflict. This is used to correctly set rewrittenFacetFilters and rewrittenQuery. - QueryOverridesFacetFilters *bool `json:"queryOverridesFacetFilters,omitempty"` - // A list of filters for the query. An AND is assumed between different facetFilters. For example, owner Sumeet and type Spreadsheet shows documents that are by Sumeet AND are Spreadsheets. - FacetFilters []FacetFilter `json:"facetFilters,omitempty"` - // A list of facet filter sets that will be OR'ed together. SearchRequestOptions where both facetFilterSets and facetFilters set are considered as bad request. Callers should set only one of these fields. - FacetFilterSets []FacetFilterSet `json:"facetFilterSets,omitempty"` - FacetBucketFilter *FacetBucketFilter `json:"facetBucketFilter,omitempty"` - // The maximum number of FacetBuckets to return in each FacetResult. - FacetBucketSize int64 `json:"facetBucketSize"` - // Facets for which FacetResults should be fetched and that don't apply to a particular datasource. If specified, these values will replace the standard default facets (last_updated_at, from, etc.). The requested facets will be returned alongside datasource-specific facets if searching a single datasource. - DefaultFacets []string `json:"defaultFacets,omitempty"` - // Auth tokens which may be used for non-indexed, federated results (e.g. Gmail). - AuthTokens []AuthToken `json:"authTokens,omitempty"` - // Hints that the QE should return result counts (via the datasource facet result) for all supported datasources, rather than just those specified in the datasource[s]Filter - FetchAllDatasourceCounts *bool `json:"fetchAllDatasourceCounts,omitempty"` - // Array of hints containing which fields should be populated in the response. - ResponseHints []ResponseHint `json:"responseHints,omitempty"` - // 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 `json:"timezoneOffset,omitempty"` - // Whether or not to disable spellcheck. - DisableSpellcheck *bool `json:"disableSpellcheck,omitempty"` - // Disables automatic adjustment of the input query for spelling corrections or other reasons. - DisableQueryAutocorrect *bool `json:"disableQueryAutocorrect,omitempty"` - // Enables expanded content to be returned for LLM usage. The size of content per result returned should be modified using maxSnippetSize. Server may return less or more than what is specified in maxSnippetSize. For more details, see https://developers.glean.com/guides/search/llm-content. - ReturnLlmContentOverSnippets *bool `json:"returnLlmContentOverSnippets,omitempty"` - Inclusions *RestrictionFilters `json:"inclusions,omitempty"` - Exclusions *RestrictionFilters `json:"exclusions,omitempty"` -} - -func (s SearchRequestOptions) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SearchRequestOptions) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, []string{"facetBucketSize"}); err != nil { - return err - } - return nil -} - -func (o *SearchRequestOptions) GetDatasourceFilter() *string { - if o == nil { - return nil - } - return o.DatasourceFilter -} - -func (o *SearchRequestOptions) GetDatasourcesFilter() []string { - if o == nil { - return nil - } - return o.DatasourcesFilter -} - -func (o *SearchRequestOptions) GetQueryOverridesFacetFilters() *bool { - if o == nil { - return nil - } - return o.QueryOverridesFacetFilters -} - -func (o *SearchRequestOptions) GetFacetFilters() []FacetFilter { - if o == nil { - return nil - } - return o.FacetFilters -} - -func (o *SearchRequestOptions) GetFacetFilterSets() []FacetFilterSet { - if o == nil { - return nil - } - return o.FacetFilterSets -} - -func (o *SearchRequestOptions) GetFacetBucketFilter() *FacetBucketFilter { - if o == nil { - return nil - } - return o.FacetBucketFilter -} - -func (o *SearchRequestOptions) GetFacetBucketSize() int64 { - if o == nil { - return 0 - } - return o.FacetBucketSize -} - -func (o *SearchRequestOptions) GetDefaultFacets() []string { - if o == nil { - return nil - } - return o.DefaultFacets -} - -func (o *SearchRequestOptions) GetAuthTokens() []AuthToken { - if o == nil { - return nil - } - return o.AuthTokens -} - -func (o *SearchRequestOptions) GetFetchAllDatasourceCounts() *bool { - if o == nil { - return nil - } - return o.FetchAllDatasourceCounts -} - -func (o *SearchRequestOptions) GetResponseHints() []ResponseHint { - if o == nil { - return nil - } - return o.ResponseHints -} - -func (o *SearchRequestOptions) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *SearchRequestOptions) GetDisableSpellcheck() *bool { - if o == nil { - return nil - } - return o.DisableSpellcheck -} - -func (o *SearchRequestOptions) GetDisableQueryAutocorrect() *bool { - if o == nil { - return nil - } - return o.DisableQueryAutocorrect -} - -func (o *SearchRequestOptions) GetReturnLlmContentOverSnippets() *bool { - if o == nil { - return nil - } - return o.ReturnLlmContentOverSnippets -} - -func (o *SearchRequestOptions) GetInclusions() *RestrictionFilters { - if o == nil { - return nil - } - return o.Inclusions -} - -func (o *SearchRequestOptions) GetExclusions() *RestrictionFilters { - if o == nil { - return nil - } - return o.Exclusions -} diff --git a/tests/mockserver/internal/sdk/models/components/searchresponse.go b/tests/mockserver/internal/sdk/models/components/searchresponse.go deleted file mode 100644 index 7da8d59a..00000000 --- a/tests/mockserver/internal/sdk/models/components/searchresponse.go +++ /dev/null @@ -1,151 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type SearchResponse struct { - // A token that should be passed for additional requests related to this request (such as more results requests). - TrackingToken *string `json:"trackingToken,omitempty"` - SessionInfo *SessionInfo `json:"sessionInfo,omitempty"` - Results []SearchResult `json:"results,omitempty"` - StructuredResults []StructuredResult `json:"structuredResults,omitempty"` - GeneratedQnaResult *GeneratedQna `json:"generatedQnaResult,omitempty"` - GleanDataError *GleanDataError `json:"errorInfo,omitempty"` - // A platform-generated request ID to correlate backend logs. - RequestID *string `json:"requestID,omitempty"` - // Time in milliseconds the backend took to respond to the request. - BackendTimeMillis *int64 `json:"backendTimeMillis,omitempty"` - // List of experiment ids for the corresponding request. - ExperimentIds []int64 `json:"experimentIds,omitempty"` - Metadata *SearchResponseMetadata `json:"metadata,omitempty"` - FacetResults []FacetResult `json:"facetResults,omitempty"` - // All result tabs available for the current query. Populated if QUERY_METADATA is specified in the request. - ResultTabs []ResultTab `json:"resultTabs,omitempty"` - // The unique IDs of the result tabs to which this response belongs. - ResultTabIds []string `json:"resultTabIds,omitempty"` - ResultsDescription *ResultsDescription `json:"resultsDescription,omitempty"` - // The actual applied facet filters based on the operators and facetFilters in the query. Useful for mapping typed operators to visual facets. - RewrittenFacetFilters []FacetFilter `json:"rewrittenFacetFilters,omitempty"` - // Cursor that indicates the start of the next page of results. To be passed in "more" requests for this query. - Cursor *string `json:"cursor,omitempty"` - // Whether more results are available. Use cursor to retrieve them. - HasMoreResults *bool `json:"hasMoreResults,omitempty"` -} - -func (o *SearchResponse) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *SearchResponse) GetSessionInfo() *SessionInfo { - if o == nil { - return nil - } - return o.SessionInfo -} - -func (o *SearchResponse) GetResults() []SearchResult { - if o == nil { - return nil - } - return o.Results -} - -func (o *SearchResponse) GetStructuredResults() []StructuredResult { - if o == nil { - return nil - } - return o.StructuredResults -} - -func (o *SearchResponse) GetGeneratedQnaResult() *GeneratedQna { - if o == nil { - return nil - } - return o.GeneratedQnaResult -} - -func (o *SearchResponse) GetGleanDataError() *GleanDataError { - if o == nil { - return nil - } - return o.GleanDataError -} - -func (o *SearchResponse) GetRequestID() *string { - if o == nil { - return nil - } - return o.RequestID -} - -func (o *SearchResponse) GetBackendTimeMillis() *int64 { - if o == nil { - return nil - } - return o.BackendTimeMillis -} - -func (o *SearchResponse) GetExperimentIds() []int64 { - if o == nil { - return nil - } - return o.ExperimentIds -} - -func (o *SearchResponse) GetMetadata() *SearchResponseMetadata { - if o == nil { - return nil - } - return o.Metadata -} - -func (o *SearchResponse) GetFacetResults() []FacetResult { - if o == nil { - return nil - } - return o.FacetResults -} - -func (o *SearchResponse) GetResultTabs() []ResultTab { - if o == nil { - return nil - } - return o.ResultTabs -} - -func (o *SearchResponse) GetResultTabIds() []string { - if o == nil { - return nil - } - return o.ResultTabIds -} - -func (o *SearchResponse) GetResultsDescription() *ResultsDescription { - if o == nil { - return nil - } - return o.ResultsDescription -} - -func (o *SearchResponse) GetRewrittenFacetFilters() []FacetFilter { - if o == nil { - return nil - } - return o.RewrittenFacetFilters -} - -func (o *SearchResponse) GetCursor() *string { - if o == nil { - return nil - } - return o.Cursor -} - -func (o *SearchResponse) GetHasMoreResults() *bool { - if o == nil { - return nil - } - return o.HasMoreResults -} diff --git a/tests/mockserver/internal/sdk/models/components/searchresponsemetadata.go b/tests/mockserver/internal/sdk/models/components/searchresponsemetadata.go deleted file mode 100644 index d8c9a4fb..00000000 --- a/tests/mockserver/internal/sdk/models/components/searchresponsemetadata.go +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type SearchResponseMetadata struct { - // A cleaned up or updated version of the query to be displayed in the query box. Useful for mapping visual facets to search operators. - RewrittenQuery *string `json:"rewrittenQuery,omitempty"` - // The actual query used to perform search and return results. - SearchedQuery *string `json:"searchedQuery,omitempty"` - // The query used to perform search and return results, with negated terms and facets removed. - SearchedQueryWithoutNegation *string `json:"searchedQueryWithoutNegation,omitempty"` - // The bolded ranges within the searched query. - SearchedQueryRanges []TextRange `json:"searchedQueryRanges,omitempty"` - // The query text sent by the client in the request. - OriginalQuery *string `json:"originalQuery,omitempty"` - QuerySuggestion *QuerySuggestion `json:"querySuggestion,omitempty"` - AdditionalQuerySuggestions *QuerySuggestionList `json:"additionalQuerySuggestions,omitempty"` - // A list of terms that were negated when processing the query. - NegatedTerms []string `json:"negatedTerms,omitempty"` - // A different query was performed than the one requested. - ModifiedQueryWasUsed *bool `json:"modifiedQueryWasUsed,omitempty"` - // No results were found for the original query. The usage of this bit in conjunction with modifiedQueryWasUsed will dictate whether the full page replacement is 0-result or few-result based. - OriginalQueryHadNoResults *bool `json:"originalQueryHadNoResults,omitempty"` - SearchWarning *SearchWarning `json:"searchWarning,omitempty"` - // Whether the query triggered expert detection results in the People tab. - TriggeredExpertDetection *bool `json:"triggeredExpertDetection,omitempty"` - // Whether the query was modified to remove quotes - IsNoQuotesSuggestion *bool `json:"isNoQuotesSuggestion,omitempty"` -} - -func (o *SearchResponseMetadata) GetRewrittenQuery() *string { - if o == nil { - return nil - } - return o.RewrittenQuery -} - -func (o *SearchResponseMetadata) GetSearchedQuery() *string { - if o == nil { - return nil - } - return o.SearchedQuery -} - -func (o *SearchResponseMetadata) GetSearchedQueryWithoutNegation() *string { - if o == nil { - return nil - } - return o.SearchedQueryWithoutNegation -} - -func (o *SearchResponseMetadata) GetSearchedQueryRanges() []TextRange { - if o == nil { - return nil - } - return o.SearchedQueryRanges -} - -func (o *SearchResponseMetadata) GetOriginalQuery() *string { - if o == nil { - return nil - } - return o.OriginalQuery -} - -func (o *SearchResponseMetadata) GetQuerySuggestion() *QuerySuggestion { - if o == nil { - return nil - } - return o.QuerySuggestion -} - -func (o *SearchResponseMetadata) GetAdditionalQuerySuggestions() *QuerySuggestionList { - if o == nil { - return nil - } - return o.AdditionalQuerySuggestions -} - -func (o *SearchResponseMetadata) GetNegatedTerms() []string { - if o == nil { - return nil - } - return o.NegatedTerms -} - -func (o *SearchResponseMetadata) GetModifiedQueryWasUsed() *bool { - if o == nil { - return nil - } - return o.ModifiedQueryWasUsed -} - -func (o *SearchResponseMetadata) GetOriginalQueryHadNoResults() *bool { - if o == nil { - return nil - } - return o.OriginalQueryHadNoResults -} - -func (o *SearchResponseMetadata) GetSearchWarning() *SearchWarning { - if o == nil { - return nil - } - return o.SearchWarning -} - -func (o *SearchResponseMetadata) GetTriggeredExpertDetection() *bool { - if o == nil { - return nil - } - return o.TriggeredExpertDetection -} - -func (o *SearchResponseMetadata) GetIsNoQuotesSuggestion() *bool { - if o == nil { - return nil - } - return o.IsNoQuotesSuggestion -} diff --git a/tests/mockserver/internal/sdk/models/components/searchresult.go b/tests/mockserver/internal/sdk/models/components/searchresult.go deleted file mode 100644 index 7327f8fd..00000000 --- a/tests/mockserver/internal/sdk/models/components/searchresult.go +++ /dev/null @@ -1,206 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type SearchResult struct { - // An array of entities in the work graph retrieved via a data request. - StructuredResults []StructuredResult `json:"structuredResults,omitempty"` - // An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. - TrackingToken *string `json:"trackingToken,omitempty"` - Document *Document `json:"document,omitempty"` - Title *string `json:"title,omitempty"` - URL string `json:"url"` - // A deep link, if available, into the datasource's native application for the user's platform (e.g. slack://...). - NativeAppURL *string `json:"nativeAppUrl,omitempty"` - // Text content from the result document which contains search query terms, if available. - Snippets []SearchResultSnippet `json:"snippets,omitempty"` - // The full body text of the result if not already contained in the snippets. Only populated for conversation results (e.g. results from a messaging app such as Slack). - FullText *string `json:"fullText,omitempty"` - // The full body text of the result if not already contained in the snippets; each item in the array represents a separate line in the original text. Only populated for conversation results (e.g. results from a messaging app such as Slack). - FullTextList []string `json:"fullTextList,omitempty"` - // A list of results related to this search result. Eg. for conversation results it contains individual messages from the conversation document which will be shown on SERP. - RelatedResults []RelatedDocuments `json:"relatedResults,omitempty"` - // A list of results that should be displayed as associated with this result. - ClusteredResults []SearchResult `json:"clusteredResults,omitempty"` - // A list of results that should be displayed as associated with this result. - AllClusteredResults []ClusterGroup `json:"allClusteredResults,omitempty"` - // The total number of attachments. - AttachmentCount *int64 `json:"attachmentCount,omitempty"` - // A (potentially partial) list of results representing documents attached to the main result document. - Attachments []SearchResult `json:"attachments,omitempty"` - // A list of results that should be displayed as backlinks of this result in reverse chronological order. - BacklinkResults []SearchResult `json:"backlinkResults,omitempty"` - // The reason for inclusion of clusteredResults. - ClusterType *ClusterTypeEnum `json:"clusterType,omitempty"` - MustIncludeSuggestions *QuerySuggestionList `json:"mustIncludeSuggestions,omitempty"` - QuerySuggestion *QuerySuggestion `json:"querySuggestion,omitempty"` - // The level of visual distinction that should be given to a result. - // - Prominence *SearchResultProminenceEnum `json:"prominence,omitempty"` - // Additional context for the relationship between the result and the document it's attached to. - AttachmentContext *string `json:"attachmentContext,omitempty"` - // A list of pins associated with this search result. - Pins []PinDocument `json:"pins,omitempty"` -} - -func (s SearchResult) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SearchResult) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, []string{"url"}); err != nil { - return err - } - return nil -} - -func (o *SearchResult) GetStructuredResults() []StructuredResult { - if o == nil { - return nil - } - return o.StructuredResults -} - -func (o *SearchResult) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *SearchResult) GetDocument() *Document { - if o == nil { - return nil - } - return o.Document -} - -func (o *SearchResult) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *SearchResult) GetURL() string { - if o == nil { - return "" - } - return o.URL -} - -func (o *SearchResult) GetNativeAppURL() *string { - if o == nil { - return nil - } - return o.NativeAppURL -} - -func (o *SearchResult) GetSnippets() []SearchResultSnippet { - if o == nil { - return nil - } - return o.Snippets -} - -func (o *SearchResult) GetFullText() *string { - if o == nil { - return nil - } - return o.FullText -} - -func (o *SearchResult) GetFullTextList() []string { - if o == nil { - return nil - } - return o.FullTextList -} - -func (o *SearchResult) GetRelatedResults() []RelatedDocuments { - if o == nil { - return nil - } - return o.RelatedResults -} - -func (o *SearchResult) GetClusteredResults() []SearchResult { - if o == nil { - return nil - } - return o.ClusteredResults -} - -func (o *SearchResult) GetAllClusteredResults() []ClusterGroup { - if o == nil { - return nil - } - return o.AllClusteredResults -} - -func (o *SearchResult) GetAttachmentCount() *int64 { - if o == nil { - return nil - } - return o.AttachmentCount -} - -func (o *SearchResult) GetAttachments() []SearchResult { - if o == nil { - return nil - } - return o.Attachments -} - -func (o *SearchResult) GetBacklinkResults() []SearchResult { - if o == nil { - return nil - } - return o.BacklinkResults -} - -func (o *SearchResult) GetClusterType() *ClusterTypeEnum { - if o == nil { - return nil - } - return o.ClusterType -} - -func (o *SearchResult) GetMustIncludeSuggestions() *QuerySuggestionList { - if o == nil { - return nil - } - return o.MustIncludeSuggestions -} - -func (o *SearchResult) GetQuerySuggestion() *QuerySuggestion { - if o == nil { - return nil - } - return o.QuerySuggestion -} - -func (o *SearchResult) GetProminence() *SearchResultProminenceEnum { - if o == nil { - return nil - } - return o.Prominence -} - -func (o *SearchResult) GetAttachmentContext() *string { - if o == nil { - return nil - } - return o.AttachmentContext -} - -func (o *SearchResult) GetPins() []PinDocument { - if o == nil { - return nil - } - return o.Pins -} diff --git a/tests/mockserver/internal/sdk/models/components/searchresultprominenceenum.go b/tests/mockserver/internal/sdk/models/components/searchresultprominenceenum.go deleted file mode 100644 index 789b4f27..00000000 --- a/tests/mockserver/internal/sdk/models/components/searchresultprominenceenum.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// SearchResultProminenceEnum - The level of visual distinction that should be given to a result. -type SearchResultProminenceEnum string - -const ( - SearchResultProminenceEnumHero SearchResultProminenceEnum = "HERO" - SearchResultProminenceEnumPromoted SearchResultProminenceEnum = "PROMOTED" - SearchResultProminenceEnumStandard SearchResultProminenceEnum = "STANDARD" -) - -func (e SearchResultProminenceEnum) ToPointer() *SearchResultProminenceEnum { - return &e -} -func (e *SearchResultProminenceEnum) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "HERO": - fallthrough - case "PROMOTED": - fallthrough - case "STANDARD": - *e = SearchResultProminenceEnum(v) - return nil - default: - return fmt.Errorf("invalid value for SearchResultProminenceEnum: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/searchresultsnippet.go b/tests/mockserver/internal/sdk/models/components/searchresultsnippet.go deleted file mode 100644 index 8f7d3660..00000000 --- a/tests/mockserver/internal/sdk/models/components/searchresultsnippet.go +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type SearchResultSnippet struct { - // The mime type of the snippets, currently either text/plain or text/html. - MimeType *string `json:"mimeType,omitempty"` - // A matching snippet from the document with no highlights. - Text *string `json:"text,omitempty"` - // Used for sorting based off the snippet's location within all_snippetable_text - SnippetTextOrdering *int64 `json:"snippetTextOrdering,omitempty"` - // The bolded ranges within text. - Ranges []TextRange `json:"ranges,omitempty"` - // A URL, generated based on availability, that links to the position of the snippet text or to the nearest header above the snippet text. - URL *string `json:"url,omitempty"` - // A matching snippet from the document. Query term matches are marked by the unicode characters uE006 and uE007. Use 'text' field instead. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Snippet string `json:"snippet"` -} - -func (s SearchResultSnippet) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SearchResultSnippet) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, []string{"snippet"}); err != nil { - return err - } - return nil -} - -func (o *SearchResultSnippet) GetMimeType() *string { - if o == nil { - return nil - } - return o.MimeType -} - -func (o *SearchResultSnippet) GetText() *string { - if o == nil { - return nil - } - return o.Text -} - -func (o *SearchResultSnippet) GetSnippetTextOrdering() *int64 { - if o == nil { - return nil - } - return o.SnippetTextOrdering -} - -func (o *SearchResultSnippet) GetRanges() []TextRange { - if o == nil { - return nil - } - return o.Ranges -} - -func (o *SearchResultSnippet) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *SearchResultSnippet) GetSnippet() string { - if o == nil { - return "" - } - return o.Snippet -} diff --git a/tests/mockserver/internal/sdk/models/components/searchwarning.go b/tests/mockserver/internal/sdk/models/components/searchwarning.go deleted file mode 100644 index 131f65a7..00000000 --- a/tests/mockserver/internal/sdk/models/components/searchwarning.go +++ /dev/null @@ -1,89 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// WarningType - The type of the warning. -type WarningType string - -const ( - WarningTypeLongQuery WarningType = "LONG_QUERY" - WarningTypeQuotedPunctuation WarningType = "QUOTED_PUNCTUATION" - WarningTypePunctuationOnly WarningType = "PUNCTUATION_ONLY" - WarningTypeCopypastedQuotes WarningType = "COPYPASTED_QUOTES" - WarningTypeInvalidOperator WarningType = "INVALID_OPERATOR" - WarningTypeMaybeInvalidFacetQuery WarningType = "MAYBE_INVALID_FACET_QUERY" - WarningTypeTooManyDatasourceGroups WarningType = "TOO_MANY_DATASOURCE_GROUPS" -) - -func (e WarningType) ToPointer() *WarningType { - return &e -} -func (e *WarningType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "LONG_QUERY": - fallthrough - case "QUOTED_PUNCTUATION": - fallthrough - case "PUNCTUATION_ONLY": - fallthrough - case "COPYPASTED_QUOTES": - fallthrough - case "INVALID_OPERATOR": - fallthrough - case "MAYBE_INVALID_FACET_QUERY": - fallthrough - case "TOO_MANY_DATASOURCE_GROUPS": - *e = WarningType(v) - return nil - default: - return fmt.Errorf("invalid value for WarningType: %v", v) - } -} - -type SearchWarning struct { - // The type of the warning. - WarningType WarningType `json:"warningType"` - // The last term we considered in the user's long query. - LastUsedTerm *string `json:"lastUsedTerm,omitempty"` - // The query after ignoring/removing quotes. - QuotesIgnoredQuery *string `json:"quotesIgnoredQuery,omitempty"` - // A list of query terms that were ignored when generating search results, if any. For example, terms containing invalid filters such as "updated:invalid_date" will be ignored. - IgnoredTerms []string `json:"ignoredTerms,omitempty"` -} - -func (o *SearchWarning) GetWarningType() WarningType { - if o == nil { - return WarningType("") - } - return o.WarningType -} - -func (o *SearchWarning) GetLastUsedTerm() *string { - if o == nil { - return nil - } - return o.LastUsedTerm -} - -func (o *SearchWarning) GetQuotesIgnoredQuery() *string { - if o == nil { - return nil - } - return o.QuotesIgnoredQuery -} - -func (o *SearchWarning) GetIgnoredTerms() []string { - if o == nil { - return nil - } - return o.IgnoredTerms -} diff --git a/tests/mockserver/internal/sdk/models/components/sectiontype.go b/tests/mockserver/internal/sdk/models/components/sectiontype.go deleted file mode 100644 index 395b5e46..00000000 --- a/tests/mockserver/internal/sdk/models/components/sectiontype.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// SectionType - Type of the section. This defines how the section should be interpreted and rendered in the digest. -type SectionType string - -const ( - SectionTypeChannel SectionType = "CHANNEL" - SectionTypeMentions SectionType = "MENTIONS" - SectionTypeTopic SectionType = "TOPIC" -) - -func (e SectionType) ToPointer() *SectionType { - return &e -} -func (e *SectionType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "CHANNEL": - fallthrough - case "MENTIONS": - fallthrough - case "TOPIC": - *e = SectionType(v) - return nil - default: - return fmt.Errorf("invalid value for SectionType: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/security.go b/tests/mockserver/internal/sdk/models/components/security.go deleted file mode 100644 index bc7c1954..00000000 --- a/tests/mockserver/internal/sdk/models/components/security.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type Security struct { - APIToken string `security:"scheme,type=http,subtype=bearer,name=Authorization"` -} - -func (o *Security) GetAPIToken() string { - if o == nil { - return "" - } - return o.APIToken -} diff --git a/tests/mockserver/internal/sdk/models/components/seenfeedbackinfo.go b/tests/mockserver/internal/sdk/models/components/seenfeedbackinfo.go deleted file mode 100644 index c1aa85e9..00000000 --- a/tests/mockserver/internal/sdk/models/components/seenfeedbackinfo.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type SeenFeedbackInfo struct { - // The confidence of the user seeing the object is high because they explicitly interacted with it e.g. answer impression in SERP with additional user interaction. - IsExplicit *bool `json:"isExplicit,omitempty"` -} - -func (o *SeenFeedbackInfo) GetIsExplicit() *bool { - if o == nil { - return nil - } - return o.IsExplicit -} diff --git a/tests/mockserver/internal/sdk/models/components/sensitivecontentoptions.go b/tests/mockserver/internal/sdk/models/components/sensitivecontentoptions.go deleted file mode 100644 index d08baa0c..00000000 --- a/tests/mockserver/internal/sdk/models/components/sensitivecontentoptions.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// SensitiveContentOptions - Options for defining sensitive content within scanned documents. -type SensitiveContentOptions struct { - // Predefined categories of terms to consider as sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available types. - SensitiveInfoTypes []SensitiveInfoType `json:"sensitiveInfoTypes,omitempty"` - // list of words and phrases to consider as sensitive content - SensitiveTerms []SensitiveExpression `json:"sensitiveTerms,omitempty"` - // list of regular expressions to consider as sensitive content - SensitiveRegexes []SensitiveExpression `json:"sensitiveRegexes,omitempty"` -} - -func (o *SensitiveContentOptions) GetSensitiveInfoTypes() []SensitiveInfoType { - if o == nil { - return nil - } - return o.SensitiveInfoTypes -} - -func (o *SensitiveContentOptions) GetSensitiveTerms() []SensitiveExpression { - if o == nil { - return nil - } - return o.SensitiveTerms -} - -func (o *SensitiveContentOptions) GetSensitiveRegexes() []SensitiveExpression { - if o == nil { - return nil - } - return o.SensitiveRegexes -} diff --git a/tests/mockserver/internal/sdk/models/components/sensitiveexpression.go b/tests/mockserver/internal/sdk/models/components/sensitiveexpression.go deleted file mode 100644 index a38113a3..00000000 --- a/tests/mockserver/internal/sdk/models/components/sensitiveexpression.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type SensitiveExpression struct { - // Sensitive word, phrase, or regular expression. - Expression *string `json:"expression,omitempty"` - // Zero to three proximate regular expressions necessary to consider an expression as sensitive content. - Hotwords []Hotword `json:"hotwords,omitempty"` -} - -func (o *SensitiveExpression) GetExpression() *string { - if o == nil { - return nil - } - return o.Expression -} - -func (o *SensitiveExpression) GetHotwords() []Hotword { - if o == nil { - return nil - } - return o.Hotwords -} diff --git a/tests/mockserver/internal/sdk/models/components/sensitiveinfotype.go b/tests/mockserver/internal/sdk/models/components/sensitiveinfotype.go deleted file mode 100644 index 683a1e84..00000000 --- a/tests/mockserver/internal/sdk/models/components/sensitiveinfotype.go +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// LikelihoodThreshold -// -// Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. -type LikelihoodThreshold string - -const ( - LikelihoodThresholdLikely LikelihoodThreshold = "LIKELY" - LikelihoodThresholdVeryLikely LikelihoodThreshold = "VERY_LIKELY" -) - -func (e LikelihoodThreshold) ToPointer() *LikelihoodThreshold { - return &e -} -func (e *LikelihoodThreshold) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "LIKELY": - fallthrough - case "VERY_LIKELY": - *e = LikelihoodThreshold(v) - return nil - default: - return fmt.Errorf("invalid value for LikelihoodThreshold: %v", v) - } -} - -type SensitiveInfoType struct { - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - LikelihoodThreshold *LikelihoodThreshold `json:"likelihoodThreshold,omitempty"` - // Text representation of an info-type to scan for. - InfoType *string `json:"infoType,omitempty"` -} - -func (o *SensitiveInfoType) GetLikelihoodThreshold() *LikelihoodThreshold { - if o == nil { - return nil - } - return o.LikelihoodThreshold -} - -func (o *SensitiveInfoType) GetInfoType() *string { - if o == nil { - return nil - } - return o.InfoType -} diff --git a/tests/mockserver/internal/sdk/models/components/sessioninfo.go b/tests/mockserver/internal/sdk/models/components/sessioninfo.go deleted file mode 100644 index ef3481af..00000000 --- a/tests/mockserver/internal/sdk/models/components/sessioninfo.go +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -type SessionInfo struct { - // A unique token for this session. A new session (and token) is created when the user issues a request from a new tab or when our server hasn't seen activity for more than 10 minutes from a tab. - SessionTrackingToken *string `json:"sessionTrackingToken,omitempty"` - // A unique id for all requests a user makes from a given tab, no matter how far apart. A new tab id is only generated when a user issues a request from a new tab. - TabID *string `json:"tabId,omitempty"` - // The last time the server saw this token. - LastSeen *time.Time `json:"lastSeen,omitempty"` - // The last query seen by the server. - LastQuery *string `json:"lastQuery,omitempty"` -} - -func (s SessionInfo) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SessionInfo) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *SessionInfo) GetSessionTrackingToken() *string { - if o == nil { - return nil - } - return o.SessionTrackingToken -} - -func (o *SessionInfo) GetTabID() *string { - if o == nil { - return nil - } - return o.TabID -} - -func (o *SessionInfo) GetLastSeen() *time.Time { - if o == nil { - return nil - } - return o.LastSeen -} - -func (o *SessionInfo) GetLastQuery() *string { - if o == nil { - return nil - } - return o.LastQuery -} diff --git a/tests/mockserver/internal/sdk/models/components/share.go b/tests/mockserver/internal/sdk/models/components/share.go deleted file mode 100644 index 82202845..00000000 --- a/tests/mockserver/internal/sdk/models/components/share.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// Share - Search endpoint will only fill out numDays ago since that's all we need to display shared badge; docmetadata endpoint will fill out all the fields so that we can display shared badge tooltip -type Share struct { - // The number of days that has passed since the share happened - NumDaysAgo int64 `json:"numDaysAgo"` - Sharer *Person `json:"sharer,omitempty"` - SharingDocument *Document `json:"sharingDocument,omitempty"` -} - -func (s Share) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *Share) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, []string{"numDaysAgo"}); err != nil { - return err - } - return nil -} - -func (o *Share) GetNumDaysAgo() int64 { - if o == nil { - return 0 - } - return o.NumDaysAgo -} - -func (o *Share) GetSharer() *Person { - if o == nil { - return nil - } - return o.Sharer -} - -func (o *Share) GetSharingDocument() *Document { - if o == nil { - return nil - } - return o.SharingDocument -} diff --git a/tests/mockserver/internal/sdk/models/components/sharingoptions.go b/tests/mockserver/internal/sdk/models/components/sharingoptions.go deleted file mode 100644 index a290b453..00000000 --- a/tests/mockserver/internal/sdk/models/components/sharingoptions.go +++ /dev/null @@ -1,79 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// SharingOptions - Controls how "shared" a document must be to get picked for scans. -type SharingOptions struct { - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Enabled *bool `json:"enabled,omitempty"` - // The minimum number of users the document is shared with. - Threshold *int64 `json:"threshold,omitempty"` - // Documents will be filtered based on how many people have access to it. - ThresholdEnabled *bool `json:"thresholdEnabled,omitempty"` - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - AnyoneWithLinkEnabled *bool `json:"anyoneWithLinkEnabled,omitempty"` - // Only users within the organization can access the document. - AnyoneInternalEnabled *bool `json:"anyoneInternalEnabled,omitempty"` - // Anyone on the internet can access the document. - AnonymousAccessEnabled *bool `json:"anonymousAccessEnabled,omitempty"` - // Enable user access check - UserAccessEnabled *bool `json:"userAccessEnabled,omitempty"` - // Any one of the specified users can access the document. - UserIds []string `json:"userIds,omitempty"` -} - -func (o *SharingOptions) GetEnabled() *bool { - if o == nil { - return nil - } - return o.Enabled -} - -func (o *SharingOptions) GetThreshold() *int64 { - if o == nil { - return nil - } - return o.Threshold -} - -func (o *SharingOptions) GetThresholdEnabled() *bool { - if o == nil { - return nil - } - return o.ThresholdEnabled -} - -func (o *SharingOptions) GetAnyoneWithLinkEnabled() *bool { - if o == nil { - return nil - } - return o.AnyoneWithLinkEnabled -} - -func (o *SharingOptions) GetAnyoneInternalEnabled() *bool { - if o == nil { - return nil - } - return o.AnyoneInternalEnabled -} - -func (o *SharingOptions) GetAnonymousAccessEnabled() *bool { - if o == nil { - return nil - } - return o.AnonymousAccessEnabled -} - -func (o *SharingOptions) GetUserAccessEnabled() *bool { - if o == nil { - return nil - } - return o.UserAccessEnabled -} - -func (o *SharingOptions) GetUserIds() []string { - if o == nil { - return nil - } - return o.UserIds -} diff --git a/tests/mockserver/internal/sdk/models/components/shortcut.go b/tests/mockserver/internal/sdk/models/components/shortcut.go deleted file mode 100644 index 63b419de..00000000 --- a/tests/mockserver/internal/sdk/models/components/shortcut.go +++ /dev/null @@ -1,216 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -type Shortcut struct { - // The opaque id of the user generated content. - ID *int64 `json:"id,omitempty"` - // Link text following go/ prefix as entered by the user. - InputAlias string `json:"inputAlias"` - // Destination URL for the shortcut. - DestinationURL *string `json:"destinationUrl,omitempty"` - // Glean Document ID for the URL, if known. - DestinationDocumentID *string `json:"destinationDocumentId,omitempty"` - // A short, plain text blurb to help people understand the intent of the shortcut. - Description *string `json:"description,omitempty"` - // Whether this shortcut is unlisted or not. Unlisted shortcuts are visible to author + admins only. - Unlisted *bool `json:"unlisted,omitempty"` - // For variable shortcuts, contains the URL template; note, `destinationUrl` contains default URL. - URLTemplate *string `json:"urlTemplate,omitempty"` - // A list of user roles added for the Shortcut. - AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"` - // A list of user roles removed for the Shortcut. - RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` - CreatedBy *Person `json:"createdBy,omitempty"` - // The time the shortcut was created in ISO format (ISO 8601). - CreateTime *time.Time `json:"createTime,omitempty"` - UpdatedBy *Person `json:"updatedBy,omitempty"` - // The time the shortcut was updated in ISO format (ISO 8601). - UpdateTime *time.Time `json:"updateTime,omitempty"` - DestinationDocument *Document `json:"destinationDocument,omitempty"` - // The URL from which the user is then redirected to the destination URL. Full replacement for https://go/. - IntermediateURL *string `json:"intermediateUrl,omitempty"` - // The part of the shortcut preceding the input alias when used for showing shortcuts to users. Should end with "/". e.g. "go/" for native shortcuts. - ViewPrefix *string `json:"viewPrefix,omitempty"` - // Indicates whether a shortcut is native or external. - IsExternal *bool `json:"isExternal,omitempty"` - // The URL using which the user can access the edit page of the shortcut. - EditURL *string `json:"editUrl,omitempty"` - // canonical link text following go/ prefix where hyphen/underscore is removed. - Alias *string `json:"alias,omitempty"` - // Title for the Go Link - Title *string `json:"title,omitempty"` - // A list of user roles for the Go Link. - Roles []UserRoleSpecification `json:"roles,omitempty"` -} - -func (s Shortcut) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *Shortcut) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, []string{"inputAlias"}); err != nil { - return err - } - return nil -} - -func (o *Shortcut) GetID() *int64 { - if o == nil { - return nil - } - return o.ID -} - -func (o *Shortcut) GetInputAlias() string { - if o == nil { - return "" - } - return o.InputAlias -} - -func (o *Shortcut) GetDestinationURL() *string { - if o == nil { - return nil - } - return o.DestinationURL -} - -func (o *Shortcut) GetDestinationDocumentID() *string { - if o == nil { - return nil - } - return o.DestinationDocumentID -} - -func (o *Shortcut) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *Shortcut) GetUnlisted() *bool { - if o == nil { - return nil - } - return o.Unlisted -} - -func (o *Shortcut) GetURLTemplate() *string { - if o == nil { - return nil - } - return o.URLTemplate -} - -func (o *Shortcut) GetAddedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.AddedRoles -} - -func (o *Shortcut) GetRemovedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.RemovedRoles -} - -func (o *Shortcut) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *Shortcut) GetCreatedBy() *Person { - if o == nil { - return nil - } - return o.CreatedBy -} - -func (o *Shortcut) GetCreateTime() *time.Time { - if o == nil { - return nil - } - return o.CreateTime -} - -func (o *Shortcut) GetUpdatedBy() *Person { - if o == nil { - return nil - } - return o.UpdatedBy -} - -func (o *Shortcut) GetUpdateTime() *time.Time { - if o == nil { - return nil - } - return o.UpdateTime -} - -func (o *Shortcut) GetDestinationDocument() *Document { - if o == nil { - return nil - } - return o.DestinationDocument -} - -func (o *Shortcut) GetIntermediateURL() *string { - if o == nil { - return nil - } - return o.IntermediateURL -} - -func (o *Shortcut) GetViewPrefix() *string { - if o == nil { - return nil - } - return o.ViewPrefix -} - -func (o *Shortcut) GetIsExternal() *bool { - if o == nil { - return nil - } - return o.IsExternal -} - -func (o *Shortcut) GetEditURL() *string { - if o == nil { - return nil - } - return o.EditURL -} - -func (o *Shortcut) GetAlias() *string { - if o == nil { - return nil - } - return o.Alias -} - -func (o *Shortcut) GetTitle() *string { - if o == nil { - return nil - } - return o.Title -} - -func (o *Shortcut) GetRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.Roles -} diff --git a/tests/mockserver/internal/sdk/models/components/shortcuterror.go b/tests/mockserver/internal/sdk/models/components/shortcuterror.go deleted file mode 100644 index 5ecd3e9e..00000000 --- a/tests/mockserver/internal/sdk/models/components/shortcuterror.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type ShortcutErrorErrorType string - -const ( - ShortcutErrorErrorTypeNoPermission ShortcutErrorErrorType = "NO_PERMISSION" - ShortcutErrorErrorTypeInvalidID ShortcutErrorErrorType = "INVALID_ID" - ShortcutErrorErrorTypeExistingShortcut ShortcutErrorErrorType = "EXISTING_SHORTCUT" - ShortcutErrorErrorTypeInvalidChars ShortcutErrorErrorType = "INVALID_CHARS" -) - -func (e ShortcutErrorErrorType) ToPointer() *ShortcutErrorErrorType { - return &e -} -func (e *ShortcutErrorErrorType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "NO_PERMISSION": - fallthrough - case "INVALID_ID": - fallthrough - case "EXISTING_SHORTCUT": - fallthrough - case "INVALID_CHARS": - *e = ShortcutErrorErrorType(v) - return nil - default: - return fmt.Errorf("invalid value for ShortcutErrorErrorType: %v", v) - } -} - -type ShortcutError struct { - ErrorType *ShortcutErrorErrorType `json:"errorType,omitempty"` -} - -func (o *ShortcutError) GetErrorType() *ShortcutErrorErrorType { - if o == nil { - return nil - } - return o.ErrorType -} diff --git a/tests/mockserver/internal/sdk/models/components/shortcutinsight.go b/tests/mockserver/internal/sdk/models/components/shortcutinsight.go deleted file mode 100644 index e4a60038..00000000 --- a/tests/mockserver/internal/sdk/models/components/shortcutinsight.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ShortcutInsight struct { - Shortcut Shortcut `json:"shortcut"` - VisitCount *CountInfo `json:"visitCount,omitempty"` - VisitorCount *CountInfo `json:"visitorCount,omitempty"` -} - -func (o *ShortcutInsight) GetShortcut() Shortcut { - if o == nil { - return Shortcut{} - } - return o.Shortcut -} - -func (o *ShortcutInsight) GetVisitCount() *CountInfo { - if o == nil { - return nil - } - return o.VisitCount -} - -func (o *ShortcutInsight) GetVisitorCount() *CountInfo { - if o == nil { - return nil - } - return o.VisitorCount -} diff --git a/tests/mockserver/internal/sdk/models/components/shortcutinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/shortcutinsightsresponse.go deleted file mode 100644 index b2edf8e3..00000000 --- a/tests/mockserver/internal/sdk/models/components/shortcutinsightsresponse.go +++ /dev/null @@ -1,42 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ShortcutInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - // Insights for shortcuts. - ShortcutInsights []ShortcutInsight `json:"shortcutInsights,omitempty"` - // list of departments applicable for shortcuts tab. - Departments []string `json:"departments,omitempty"` - // Min threshold in number of visitors while populating results, otherwise 0. - MinVisitorThreshold *int64 `json:"minVisitorThreshold,omitempty"` -} - -func (o *ShortcutInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *ShortcutInsightsResponse) GetShortcutInsights() []ShortcutInsight { - if o == nil { - return nil - } - return o.ShortcutInsights -} - -func (o *ShortcutInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} - -func (o *ShortcutInsightsResponse) GetMinVisitorThreshold() *int64 { - if o == nil { - return nil - } - return o.MinVisitorThreshold -} diff --git a/tests/mockserver/internal/sdk/models/components/shortcutmutableproperties.go b/tests/mockserver/internal/sdk/models/components/shortcutmutableproperties.go deleted file mode 100644 index 00cb907c..00000000 --- a/tests/mockserver/internal/sdk/models/components/shortcutmutableproperties.go +++ /dev/null @@ -1,78 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ShortcutMutableProperties struct { - // Link text following go/ prefix as entered by the user. - InputAlias *string `json:"inputAlias,omitempty"` - // Destination URL for the shortcut. - DestinationURL *string `json:"destinationUrl,omitempty"` - // Glean Document ID for the URL, if known. - DestinationDocumentID *string `json:"destinationDocumentId,omitempty"` - // A short, plain text blurb to help people understand the intent of the shortcut. - Description *string `json:"description,omitempty"` - // Whether this shortcut is unlisted or not. Unlisted shortcuts are visible to author + admins only. - Unlisted *bool `json:"unlisted,omitempty"` - // For variable shortcuts, contains the URL template; note, `destinationUrl` contains default URL. - URLTemplate *string `json:"urlTemplate,omitempty"` - // A list of user roles added for the Shortcut. - AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"` - // A list of user roles removed for the Shortcut. - RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"` -} - -func (o *ShortcutMutableProperties) GetInputAlias() *string { - if o == nil { - return nil - } - return o.InputAlias -} - -func (o *ShortcutMutableProperties) GetDestinationURL() *string { - if o == nil { - return nil - } - return o.DestinationURL -} - -func (o *ShortcutMutableProperties) GetDestinationDocumentID() *string { - if o == nil { - return nil - } - return o.DestinationDocumentID -} - -func (o *ShortcutMutableProperties) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *ShortcutMutableProperties) GetUnlisted() *bool { - if o == nil { - return nil - } - return o.Unlisted -} - -func (o *ShortcutMutableProperties) GetURLTemplate() *string { - if o == nil { - return nil - } - return o.URLTemplate -} - -func (o *ShortcutMutableProperties) GetAddedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.AddedRoles -} - -func (o *ShortcutMutableProperties) GetRemovedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.RemovedRoles -} diff --git a/tests/mockserver/internal/sdk/models/components/shortcutspaginationmetadata.go b/tests/mockserver/internal/sdk/models/components/shortcutspaginationmetadata.go deleted file mode 100644 index 6732831e..00000000 --- a/tests/mockserver/internal/sdk/models/components/shortcutspaginationmetadata.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ShortcutsPaginationMetadata struct { - // Cursor indicates the start of the next page of results - Cursor *string `json:"cursor,omitempty"` - HasNextPage *bool `json:"hasNextPage,omitempty"` - TotalItemCount *int64 `json:"totalItemCount,omitempty"` -} - -func (o *ShortcutsPaginationMetadata) GetCursor() *string { - if o == nil { - return nil - } - return o.Cursor -} - -func (o *ShortcutsPaginationMetadata) GetHasNextPage() *bool { - if o == nil { - return nil - } - return o.HasNextPage -} - -func (o *ShortcutsPaginationMetadata) GetTotalItemCount() *int64 { - if o == nil { - return nil - } - return o.TotalItemCount -} diff --git a/tests/mockserver/internal/sdk/models/components/sidebysideimplementation.go b/tests/mockserver/internal/sdk/models/components/sidebysideimplementation.go deleted file mode 100644 index f1cf399e..00000000 --- a/tests/mockserver/internal/sdk/models/components/sidebysideimplementation.go +++ /dev/null @@ -1,82 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ResponseMetadata - Metadata about the response (e.g., latency, token count). -type ResponseMetadata struct { - // Time taken to generate the response in milliseconds. - LatencyMs *int64 `json:"latencyMs,omitempty"` - // Number of tokens in the response. - TokenCount *int64 `json:"tokenCount,omitempty"` - // The specific model version used. - ModelUsed *string `json:"modelUsed,omitempty"` -} - -func (o *ResponseMetadata) GetLatencyMs() *int64 { - if o == nil { - return nil - } - return o.LatencyMs -} - -func (o *ResponseMetadata) GetTokenCount() *int64 { - if o == nil { - return nil - } - return o.TokenCount -} - -func (o *ResponseMetadata) GetModelUsed() *string { - if o == nil { - return nil - } - return o.ModelUsed -} - -type SideBySideImplementation struct { - // Unique identifier for this implementation variant. - ImplementationID *string `json:"implementationId,omitempty"` - // Human-readable name for this implementation (e.g., "Variant A", "GPT-4", "Claude"). - ImplementationName *string `json:"implementationName,omitempty"` - // The search/chat parameters used for this implementation. - SearchParams map[string]string `json:"searchParams,omitempty"` - // The full response generated by this implementation. - Response *string `json:"response,omitempty"` - // Metadata about the response (e.g., latency, token count). - ResponseMetadata *ResponseMetadata `json:"responseMetadata,omitempty"` -} - -func (o *SideBySideImplementation) GetImplementationID() *string { - if o == nil { - return nil - } - return o.ImplementationID -} - -func (o *SideBySideImplementation) GetImplementationName() *string { - if o == nil { - return nil - } - return o.ImplementationName -} - -func (o *SideBySideImplementation) GetSearchParams() map[string]string { - if o == nil { - return nil - } - return o.SearchParams -} - -func (o *SideBySideImplementation) GetResponse() *string { - if o == nil { - return nil - } - return o.Response -} - -func (o *SideBySideImplementation) GetResponseMetadata() *ResponseMetadata { - if o == nil { - return nil - } - return o.ResponseMetadata -} diff --git a/tests/mockserver/internal/sdk/models/components/socialnetwork.go b/tests/mockserver/internal/sdk/models/components/socialnetwork.go deleted file mode 100644 index acf04b4a..00000000 --- a/tests/mockserver/internal/sdk/models/components/socialnetwork.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type SocialNetwork struct { - // Possible values are "twitter", "linkedin". - Name string `json:"name"` - // Human-readable profile name. - ProfileName *string `json:"profileName,omitempty"` - // Link to profile. - ProfileURL string `json:"profileUrl"` -} - -func (s SocialNetwork) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SocialNetwork) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, []string{"name", "profileUrl"}); err != nil { - return err - } - return nil -} - -func (o *SocialNetwork) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *SocialNetwork) GetProfileName() *string { - if o == nil { - return nil - } - return o.ProfileName -} - -func (o *SocialNetwork) GetProfileURL() string { - if o == nil { - return "" - } - return o.ProfileURL -} diff --git a/tests/mockserver/internal/sdk/models/components/socialnetworkdefinition.go b/tests/mockserver/internal/sdk/models/components/socialnetworkdefinition.go deleted file mode 100644 index 668935e3..00000000 --- a/tests/mockserver/internal/sdk/models/components/socialnetworkdefinition.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// SocialNetworkDefinition - Employee's social network profile -type SocialNetworkDefinition struct { - // Possible values are "twitter", "linkedin". - Name *string `json:"name,omitempty"` - // Human-readable profile name. - ProfileName *string `json:"profileName,omitempty"` - // Link to profile. - ProfileURL *string `json:"profileUrl,omitempty"` -} - -func (o *SocialNetworkDefinition) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *SocialNetworkDefinition) GetProfileName() *string { - if o == nil { - return nil - } - return o.ProfileName -} - -func (o *SocialNetworkDefinition) GetProfileURL() *string { - if o == nil { - return nil - } - return o.ProfileURL -} diff --git a/tests/mockserver/internal/sdk/models/components/sortoptions.go b/tests/mockserver/internal/sdk/models/components/sortoptions.go deleted file mode 100644 index 0f3949f1..00000000 --- a/tests/mockserver/internal/sdk/models/components/sortoptions.go +++ /dev/null @@ -1,53 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type OrderBy string - -const ( - OrderByAsc OrderBy = "ASC" - OrderByDesc OrderBy = "DESC" -) - -func (e OrderBy) ToPointer() *OrderBy { - return &e -} -func (e *OrderBy) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ASC": - fallthrough - case "DESC": - *e = OrderBy(v) - return nil - default: - return fmt.Errorf("invalid value for OrderBy: %v", v) - } -} - -type SortOptions struct { - OrderBy *OrderBy `json:"orderBy,omitempty"` - SortBy *string `json:"sortBy,omitempty"` -} - -func (o *SortOptions) GetOrderBy() *OrderBy { - if o == nil { - return nil - } - return o.OrderBy -} - -func (o *SortOptions) GetSortBy() *string { - if o == nil { - return nil - } - return o.SortBy -} diff --git a/tests/mockserver/internal/sdk/models/components/structuredlink.go b/tests/mockserver/internal/sdk/models/components/structuredlink.go deleted file mode 100644 index 00f03620..00000000 --- a/tests/mockserver/internal/sdk/models/components/structuredlink.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// StructuredLink - The display configuration for a link. -type StructuredLink struct { - // The display name for the link - Name *string `json:"name,omitempty"` - // The URL for the link. - URL *string `json:"url,omitempty"` - // Defines how to render an icon - IconConfig *IconConfig `json:"iconConfig,omitempty"` -} - -func (o *StructuredLink) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *StructuredLink) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *StructuredLink) GetIconConfig() *IconConfig { - if o == nil { - return nil - } - return o.IconConfig -} diff --git a/tests/mockserver/internal/sdk/models/components/structuredlocation.go b/tests/mockserver/internal/sdk/models/components/structuredlocation.go deleted file mode 100644 index d1068852..00000000 --- a/tests/mockserver/internal/sdk/models/components/structuredlocation.go +++ /dev/null @@ -1,103 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// StructuredLocation - Detailed location with information about country, state, city etc. -type StructuredLocation struct { - // Desk number. - DeskLocation *string `json:"deskLocation,omitempty"` - // Location's timezone, e.g. UTC, PST. - Timezone *string `json:"timezone,omitempty"` - // Office address or name. - Address *string `json:"address,omitempty"` - // Name of the city. - City *string `json:"city,omitempty"` - // State code. - State *string `json:"state,omitempty"` - // Region information, e.g. NORAM, APAC. - Region *string `json:"region,omitempty"` - // ZIP Code for the address. - ZipCode *string `json:"zipCode,omitempty"` - // Country name. - Country *string `json:"country,omitempty"` - // Alpha-2 or Alpha-3 ISO 3166 country code, e.g. US or USA. - CountryCode *string `json:"countryCode,omitempty"` -} - -func (s StructuredLocation) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *StructuredLocation) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *StructuredLocation) GetDeskLocation() *string { - if o == nil { - return nil - } - return o.DeskLocation -} - -func (o *StructuredLocation) GetTimezone() *string { - if o == nil { - return nil - } - return o.Timezone -} - -func (o *StructuredLocation) GetAddress() *string { - if o == nil { - return nil - } - return o.Address -} - -func (o *StructuredLocation) GetCity() *string { - if o == nil { - return nil - } - return o.City -} - -func (o *StructuredLocation) GetState() *string { - if o == nil { - return nil - } - return o.State -} - -func (o *StructuredLocation) GetRegion() *string { - if o == nil { - return nil - } - return o.Region -} - -func (o *StructuredLocation) GetZipCode() *string { - if o == nil { - return nil - } - return o.ZipCode -} - -func (o *StructuredLocation) GetCountry() *string { - if o == nil { - return nil - } - return o.Country -} - -func (o *StructuredLocation) GetCountryCode() *string { - if o == nil { - return nil - } - return o.CountryCode -} diff --git a/tests/mockserver/internal/sdk/models/components/structuredresult.go b/tests/mockserver/internal/sdk/models/components/structuredresult.go deleted file mode 100644 index b4fcac94..00000000 --- a/tests/mockserver/internal/sdk/models/components/structuredresult.go +++ /dev/null @@ -1,263 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -// Prominence - The level of visual distinction that should be given to a result. -type Prominence string - -const ( - ProminenceHero Prominence = "HERO" - ProminencePromoted Prominence = "PROMOTED" - ProminenceStandard Prominence = "STANDARD" -) - -func (e Prominence) ToPointer() *Prominence { - return &e -} -func (e *Prominence) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "HERO": - fallthrough - case "PROMOTED": - fallthrough - case "STANDARD": - *e = Prominence(v) - return nil - default: - return fmt.Errorf("invalid value for Prominence: %v", v) - } -} - -// StructuredResultSource - Source context for this result. Possible values depend on the result type. -type StructuredResultSource string - -const ( - StructuredResultSourceExpertDetection StructuredResultSource = "EXPERT_DETECTION" - StructuredResultSourceEntityNlq StructuredResultSource = "ENTITY_NLQ" -) - -func (e StructuredResultSource) ToPointer() *StructuredResultSource { - return &e -} -func (e *StructuredResultSource) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "EXPERT_DETECTION": - fallthrough - case "ENTITY_NLQ": - *e = StructuredResultSource(v) - return nil - default: - return fmt.Errorf("invalid value for StructuredResultSource: %v", v) - } -} - -// StructuredResult - A single object that can support any object in the work graph. Only a single object will be populated. -type StructuredResult struct { - Document *Document `json:"document,omitempty"` - Person *Person `json:"person,omitempty"` - Customer *Customer `json:"customer,omitempty"` - Team *Team `json:"team,omitempty"` - CustomEntity *CustomEntity `json:"customEntity,omitempty"` - Answer *Answer `json:"answer,omitempty"` - GeneratedQna *GeneratedQna `json:"generatedQna,omitempty"` - ExtractedQnA *ExtractedQnA `json:"extractedQnA,omitempty"` - Meeting *Meeting `json:"meeting,omitempty"` - App *AppResult `json:"app,omitempty"` - Collection *Collection `json:"collection,omitempty"` - AnswerBoard *AnswerBoard `json:"answerBoard,omitempty"` - Code *Code `json:"code,omitempty"` - Shortcut *Shortcut `json:"shortcut,omitempty"` - QuerySuggestions *QuerySuggestionList `json:"querySuggestions,omitempty"` - // A list of documents related to this structured result. - RelatedDocuments []RelatedDocuments `json:"relatedDocuments,omitempty"` - RelatedQuestion *RelatedQuestion `json:"relatedQuestion,omitempty"` - // A disambiguation between multiple entities with the same name - Disambiguation *Disambiguation `json:"disambiguation,omitempty"` - // Any snippets associated to the populated object. - Snippets []SearchResultSnippet `json:"snippets,omitempty"` - // An opaque token that represents this particular result in this particular query. To be used for /feedback reporting. - TrackingToken *string `json:"trackingToken,omitempty"` - // The level of visual distinction that should be given to a result. - Prominence *Prominence `json:"prominence,omitempty"` - // Source context for this result. Possible values depend on the result type. - Source *StructuredResultSource `json:"source,omitempty"` -} - -func (s StructuredResult) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *StructuredResult) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *StructuredResult) GetDocument() *Document { - if o == nil { - return nil - } - return o.Document -} - -func (o *StructuredResult) GetPerson() *Person { - if o == nil { - return nil - } - return o.Person -} - -func (o *StructuredResult) GetCustomer() *Customer { - if o == nil { - return nil - } - return o.Customer -} - -func (o *StructuredResult) GetTeam() *Team { - if o == nil { - return nil - } - return o.Team -} - -func (o *StructuredResult) GetCustomEntity() *CustomEntity { - if o == nil { - return nil - } - return o.CustomEntity -} - -func (o *StructuredResult) GetAnswer() *Answer { - if o == nil { - return nil - } - return o.Answer -} - -func (o *StructuredResult) GetGeneratedQna() *GeneratedQna { - if o == nil { - return nil - } - return o.GeneratedQna -} - -func (o *StructuredResult) GetExtractedQnA() *ExtractedQnA { - if o == nil { - return nil - } - return o.ExtractedQnA -} - -func (o *StructuredResult) GetMeeting() *Meeting { - if o == nil { - return nil - } - return o.Meeting -} - -func (o *StructuredResult) GetApp() *AppResult { - if o == nil { - return nil - } - return o.App -} - -func (o *StructuredResult) GetCollection() *Collection { - if o == nil { - return nil - } - return o.Collection -} - -func (o *StructuredResult) GetAnswerBoard() *AnswerBoard { - if o == nil { - return nil - } - return o.AnswerBoard -} - -func (o *StructuredResult) GetCode() *Code { - if o == nil { - return nil - } - return o.Code -} - -func (o *StructuredResult) GetShortcut() *Shortcut { - if o == nil { - return nil - } - return o.Shortcut -} - -func (o *StructuredResult) GetQuerySuggestions() *QuerySuggestionList { - if o == nil { - return nil - } - return o.QuerySuggestions -} - -func (o *StructuredResult) GetRelatedDocuments() []RelatedDocuments { - if o == nil { - return nil - } - return o.RelatedDocuments -} - -func (o *StructuredResult) GetRelatedQuestion() *RelatedQuestion { - if o == nil { - return nil - } - return o.RelatedQuestion -} - -func (o *StructuredResult) GetDisambiguation() *Disambiguation { - if o == nil { - return nil - } - return o.Disambiguation -} - -func (o *StructuredResult) GetSnippets() []SearchResultSnippet { - if o == nil { - return nil - } - return o.Snippets -} - -func (o *StructuredResult) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} - -func (o *StructuredResult) GetProminence() *Prominence { - if o == nil { - return nil - } - return o.Prominence -} - -func (o *StructuredResult) GetSource() *StructuredResultSource { - if o == nil { - return nil - } - return o.Source -} diff --git a/tests/mockserver/internal/sdk/models/components/structuredtext.go b/tests/mockserver/internal/sdk/models/components/structuredtext.go deleted file mode 100644 index 3c09f214..00000000 --- a/tests/mockserver/internal/sdk/models/components/structuredtext.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type StructuredText struct { - Text string `json:"text"` - // An array of objects each of which contains either a string or a link which optionally corresponds to a document. - StructuredList []StructuredTextItem `json:"structuredList,omitempty"` -} - -func (s StructuredText) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *StructuredText) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, []string{"text"}); err != nil { - return err - } - return nil -} - -func (o *StructuredText) GetText() string { - if o == nil { - return "" - } - return o.Text -} - -func (o *StructuredText) GetStructuredList() []StructuredTextItem { - if o == nil { - return nil - } - return o.StructuredList -} diff --git a/tests/mockserver/internal/sdk/models/components/structuredtextitem.go b/tests/mockserver/internal/sdk/models/components/structuredtextitem.go deleted file mode 100644 index 8fea354a..00000000 --- a/tests/mockserver/internal/sdk/models/components/structuredtextitem.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type StructuredTextItem struct { - Link *string `json:"link,omitempty"` - Document *Document `json:"document,omitempty"` - Text *string `json:"text,omitempty"` - // A single object that can support any object in the work graph. Only a single object will be populated. - StructuredResult *StructuredResult `json:"structuredResult,omitempty"` -} - -func (s StructuredTextItem) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *StructuredTextItem) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *StructuredTextItem) GetLink() *string { - if o == nil { - return nil - } - return o.Link -} - -func (o *StructuredTextItem) GetDocument() *Document { - if o == nil { - return nil - } - return o.Document -} - -func (o *StructuredTextItem) GetText() *string { - if o == nil { - return nil - } - return o.Text -} - -func (o *StructuredTextItem) GetStructuredResult() *StructuredResult { - if o == nil { - return nil - } - return o.StructuredResult -} diff --git a/tests/mockserver/internal/sdk/models/components/structuredtextmutableproperties.go b/tests/mockserver/internal/sdk/models/components/structuredtextmutableproperties.go deleted file mode 100644 index ab29bfc2..00000000 --- a/tests/mockserver/internal/sdk/models/components/structuredtextmutableproperties.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type StructuredTextMutableProperties struct { - Text string `json:"text"` -} - -func (o *StructuredTextMutableProperties) GetText() string { - if o == nil { - return "" - } - return o.Text -} diff --git a/tests/mockserver/internal/sdk/models/components/summarizerequest.go b/tests/mockserver/internal/sdk/models/components/summarizerequest.go deleted file mode 100644 index 4fb50658..00000000 --- a/tests/mockserver/internal/sdk/models/components/summarizerequest.go +++ /dev/null @@ -1,68 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -// SummarizeRequest - Summary of the document -type SummarizeRequest struct { - // The ISO 8601 timestamp associated with the client request. - Timestamp *time.Time `json:"timestamp,omitempty"` - // Optional query that the summary should be about - Query *string `json:"query,omitempty"` - // Optional length of summary output. If not given, defaults to 500 chars. - PreferredSummaryLength *int64 `json:"preferredSummaryLength,omitempty"` - // Specifications of documents to summarize - DocumentSpecs []DocumentSpecUnion `json:"documentSpecs"` - // An opaque token that represents this particular result. To be used for /feedback reporting. - TrackingToken *string `json:"trackingToken,omitempty"` -} - -func (s SummarizeRequest) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(s, "", false) -} - -func (s *SummarizeRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &s, "", false, []string{"documentSpecs"}); err != nil { - return err - } - return nil -} - -func (o *SummarizeRequest) GetTimestamp() *time.Time { - if o == nil { - return nil - } - return o.Timestamp -} - -func (o *SummarizeRequest) GetQuery() *string { - if o == nil { - return nil - } - return o.Query -} - -func (o *SummarizeRequest) GetPreferredSummaryLength() *int64 { - if o == nil { - return nil - } - return o.PreferredSummaryLength -} - -func (o *SummarizeRequest) GetDocumentSpecs() []DocumentSpecUnion { - if o == nil { - return []DocumentSpecUnion{} - } - return o.DocumentSpecs -} - -func (o *SummarizeRequest) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} diff --git a/tests/mockserver/internal/sdk/models/components/summarizeresponse.go b/tests/mockserver/internal/sdk/models/components/summarizeresponse.go deleted file mode 100644 index b196ab2d..00000000 --- a/tests/mockserver/internal/sdk/models/components/summarizeresponse.go +++ /dev/null @@ -1,42 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type Error struct { - Message *string `json:"message,omitempty"` -} - -func (o *Error) GetMessage() *string { - if o == nil { - return nil - } - return o.Message -} - -type SummarizeResponse struct { - Error *Error `json:"error,omitempty"` - Summary *Summary `json:"summary,omitempty"` - // An opaque token that represents this summary in this particular query. To be used for /feedback reporting. - TrackingToken *string `json:"trackingToken,omitempty"` -} - -func (o *SummarizeResponse) GetError() *Error { - if o == nil { - return nil - } - return o.Error -} - -func (o *SummarizeResponse) GetSummary() *Summary { - if o == nil { - return nil - } - return o.Summary -} - -func (o *SummarizeResponse) GetTrackingToken() *string { - if o == nil { - return nil - } - return o.TrackingToken -} diff --git a/tests/mockserver/internal/sdk/models/components/summary.go b/tests/mockserver/internal/sdk/models/components/summary.go deleted file mode 100644 index 1e715524..00000000 --- a/tests/mockserver/internal/sdk/models/components/summary.go +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type Summary struct { - Text *string `json:"text,omitempty"` - // Follow-up prompts based on the summarized doc - FollowUpPrompts []string `json:"followUpPrompts,omitempty"` -} - -func (o *Summary) GetText() *string { - if o == nil { - return nil - } - return o.Text -} - -func (o *Summary) GetFollowUpPrompts() []string { - if o == nil { - return nil - } - return o.FollowUpPrompts -} diff --git a/tests/mockserver/internal/sdk/models/components/team.go b/tests/mockserver/internal/sdk/models/components/team.go deleted file mode 100644 index 85e653f2..00000000 --- a/tests/mockserver/internal/sdk/models/components/team.go +++ /dev/null @@ -1,242 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -// TeamStatus - whether this team is fully processed or there are still unprocessed operations that'll affect it -type TeamStatus string - -const ( - TeamStatusProcessed TeamStatus = "PROCESSED" - TeamStatusQueuedForCreation TeamStatus = "QUEUED_FOR_CREATION" - TeamStatusQueuedForDeletion TeamStatus = "QUEUED_FOR_DELETION" -) - -func (e TeamStatus) ToPointer() *TeamStatus { - return &e -} -func (e *TeamStatus) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "PROCESSED": - fallthrough - case "QUEUED_FOR_CREATION": - fallthrough - case "QUEUED_FOR_DELETION": - *e = TeamStatus(v) - return nil - default: - return fmt.Errorf("invalid value for TeamStatus: %v", v) - } -} - -type Team struct { - // A list of objects related to a source object. - RelatedObjects map[string]RelatedObjectEdge `json:"relatedObjects,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` - // Unique identifier - ID string `json:"id"` - // Team name - Name string `json:"name"` - // A description of the team - Description *string `json:"description,omitempty"` - // Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. - BusinessUnit *string `json:"businessUnit,omitempty"` - // An organizational unit where everyone has a similar task, e.g. `Engineering`. - Department *string `json:"department,omitempty"` - // A link to the team's photo. - PhotoURL *string `json:"photoUrl,omitempty"` - // A link to the team's banner photo. - BannerURL *string `json:"bannerUrl,omitempty"` - // Link to a team page on the internet or your company's intranet - ExternalLink *string `json:"externalLink,omitempty"` - // The members on this team - Members []PersonToTeamRelationship `json:"members,omitempty"` - // Number of members on this team (recursive; includes all individuals that belong to this team, and all individuals that belong to a subteam within this team) - MemberCount *int64 `json:"memberCount,omitempty"` - // The emails for this team - Emails []TeamEmail `json:"emails,omitempty"` - // Customizable fields for additional team information. - CustomFields []CustomFieldData `json:"customFields,omitempty"` - // The datasource profiles of the team - DatasourceProfiles []DatasourceProfile `json:"datasourceProfiles,omitempty"` - // the data source of the team, e.g. GDRIVE - Datasource *string `json:"datasource,omitempty"` - // For teams created from docs, the doc title. Otherwise empty. - CreatedFrom *string `json:"createdFrom,omitempty"` - // when this team was last updated. - LastUpdatedAt *time.Time `json:"lastUpdatedAt,omitempty"` - // whether this team is fully processed or there are still unprocessed operations that'll affect it - Status *TeamStatus `default:"PROCESSED" json:"status"` - // can this team be deleted. Some manually ingested teams like GCS_CSV or PUSH_API cannot - CanBeDeleted *bool `default:"true" json:"canBeDeleted"` - // The logging id of the team used in scrubbed logs, client analytics, and metrics. - LoggingID *string `json:"loggingId,omitempty"` -} - -func (t Team) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(t, "", false) -} - -func (t *Team) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, []string{"id", "name"}); err != nil { - return err - } - return nil -} - -func (o *Team) GetRelatedObjects() map[string]RelatedObjectEdge { - if o == nil { - return nil - } - return o.RelatedObjects -} - -func (o *Team) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *Team) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -func (o *Team) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *Team) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *Team) GetBusinessUnit() *string { - if o == nil { - return nil - } - return o.BusinessUnit -} - -func (o *Team) GetDepartment() *string { - if o == nil { - return nil - } - return o.Department -} - -func (o *Team) GetPhotoURL() *string { - if o == nil { - return nil - } - return o.PhotoURL -} - -func (o *Team) GetBannerURL() *string { - if o == nil { - return nil - } - return o.BannerURL -} - -func (o *Team) GetExternalLink() *string { - if o == nil { - return nil - } - return o.ExternalLink -} - -func (o *Team) GetMembers() []PersonToTeamRelationship { - if o == nil { - return nil - } - return o.Members -} - -func (o *Team) GetMemberCount() *int64 { - if o == nil { - return nil - } - return o.MemberCount -} - -func (o *Team) GetEmails() []TeamEmail { - if o == nil { - return nil - } - return o.Emails -} - -func (o *Team) GetCustomFields() []CustomFieldData { - if o == nil { - return nil - } - return o.CustomFields -} - -func (o *Team) GetDatasourceProfiles() []DatasourceProfile { - if o == nil { - return nil - } - return o.DatasourceProfiles -} - -func (o *Team) GetDatasource() *string { - if o == nil { - return nil - } - return o.Datasource -} - -func (o *Team) GetCreatedFrom() *string { - if o == nil { - return nil - } - return o.CreatedFrom -} - -func (o *Team) GetLastUpdatedAt() *time.Time { - if o == nil { - return nil - } - return o.LastUpdatedAt -} - -func (o *Team) GetStatus() *TeamStatus { - if o == nil { - return nil - } - return o.Status -} - -func (o *Team) GetCanBeDeleted() *bool { - if o == nil { - return nil - } - return o.CanBeDeleted -} - -func (o *Team) GetLoggingID() *string { - if o == nil { - return nil - } - return o.LoggingID -} diff --git a/tests/mockserver/internal/sdk/models/components/teamemail.go b/tests/mockserver/internal/sdk/models/components/teamemail.go deleted file mode 100644 index cafd3471..00000000 --- a/tests/mockserver/internal/sdk/models/components/teamemail.go +++ /dev/null @@ -1,40 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// TeamEmail - Information about a team's email -type TeamEmail struct { - // An email address - Email string `json:"email"` - // An enum of `PRIMARY`, `SECONDARY`, `ONCALL`, `OTHER` - Type *string `default:"OTHER" json:"type"` -} - -func (t TeamEmail) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(t, "", false) -} - -func (t *TeamEmail) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, []string{"email"}); err != nil { - return err - } - return nil -} - -func (o *TeamEmail) GetEmail() string { - if o == nil { - return "" - } - return o.Email -} - -func (o *TeamEmail) GetType() *string { - if o == nil { - return nil - } - return o.Type -} diff --git a/tests/mockserver/internal/sdk/models/components/teaminfodefinition.go b/tests/mockserver/internal/sdk/models/components/teaminfodefinition.go deleted file mode 100644 index 9dea6e19..00000000 --- a/tests/mockserver/internal/sdk/models/components/teaminfodefinition.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// TeamInfoDefinition - Information about an employee's team -type TeamInfoDefinition struct { - // The unique ID of the team - ID string `json:"id"` - // Human-readable team name - Name string `json:"name"` - // The description of this team - Description *string `json:"description,omitempty"` - // Typically the highest level organizational unit; generally applies to bigger companies with multiple distinct businesses. - BusinessUnit *string `json:"businessUnit,omitempty"` - // An organizational unit where everyone has a similar task, e.g. `Engineering`. - Department *string `json:"department,omitempty"` - // A link to the team's photo - PhotoURL *string `json:"photoUrl,omitempty"` - // A link to an external team page. If set, team results will link to it. - // - ExternalLink *string `json:"externalLink,omitempty"` - // The emails of the team - Emails []TeamEmail `json:"emails,omitempty"` - // The datasource profiles of the team, e.g. `Slack`,`Github`. - DatasourceProfiles []DatasourceProfile `json:"datasourceProfiles,omitempty"` - // The members of the team - Members []TeamMember `json:"members"` - // List of additional fields with more information about the team. - AdditionalFields []AdditionalFieldDefinition `json:"additionalFields,omitempty"` -} - -func (o *TeamInfoDefinition) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -func (o *TeamInfoDefinition) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *TeamInfoDefinition) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *TeamInfoDefinition) GetBusinessUnit() *string { - if o == nil { - return nil - } - return o.BusinessUnit -} - -func (o *TeamInfoDefinition) GetDepartment() *string { - if o == nil { - return nil - } - return o.Department -} - -func (o *TeamInfoDefinition) GetPhotoURL() *string { - if o == nil { - return nil - } - return o.PhotoURL -} - -func (o *TeamInfoDefinition) GetExternalLink() *string { - if o == nil { - return nil - } - return o.ExternalLink -} - -func (o *TeamInfoDefinition) GetEmails() []TeamEmail { - if o == nil { - return nil - } - return o.Emails -} - -func (o *TeamInfoDefinition) GetDatasourceProfiles() []DatasourceProfile { - if o == nil { - return nil - } - return o.DatasourceProfiles -} - -func (o *TeamInfoDefinition) GetMembers() []TeamMember { - if o == nil { - return []TeamMember{} - } - return o.Members -} - -func (o *TeamInfoDefinition) GetAdditionalFields() []AdditionalFieldDefinition { - if o == nil { - return nil - } - return o.AdditionalFields -} diff --git a/tests/mockserver/internal/sdk/models/components/teammember.go b/tests/mockserver/internal/sdk/models/components/teammember.go deleted file mode 100644 index 121d5bb3..00000000 --- a/tests/mockserver/internal/sdk/models/components/teammember.go +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/types" - "mockserver/internal/sdk/utils" -) - -// TeamMember - Information about a team's member -type TeamMember struct { - // The member's email - Email string `json:"email"` - // The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, `OTHER` - Relationship *string `default:"MEMBER" json:"relationship"` - // The member's start date - JoinDate *types.Date `json:"join_date,omitempty"` -} - -func (t TeamMember) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(t, "", false) -} - -func (t *TeamMember) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, []string{"email"}); err != nil { - return err - } - return nil -} - -func (o *TeamMember) GetEmail() string { - if o == nil { - return "" - } - return o.Email -} - -func (o *TeamMember) GetRelationship() *string { - if o == nil { - return nil - } - return o.Relationship -} - -func (o *TeamMember) GetJoinDate() *types.Date { - if o == nil { - return nil - } - return o.JoinDate -} diff --git a/tests/mockserver/internal/sdk/models/components/textrange.go b/tests/mockserver/internal/sdk/models/components/textrange.go deleted file mode 100644 index ebd99e4a..00000000 --- a/tests/mockserver/internal/sdk/models/components/textrange.go +++ /dev/null @@ -1,99 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -type TextRangeType string - -const ( - TextRangeTypeBold TextRangeType = "BOLD" - TextRangeTypeCitation TextRangeType = "CITATION" - TextRangeTypeHighlight TextRangeType = "HIGHLIGHT" - TextRangeTypeLink TextRangeType = "LINK" -) - -func (e TextRangeType) ToPointer() *TextRangeType { - return &e -} -func (e *TextRangeType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "BOLD": - fallthrough - case "CITATION": - fallthrough - case "HIGHLIGHT": - fallthrough - case "LINK": - *e = TextRangeType(v) - return nil - default: - return fmt.Errorf("invalid value for TextRangeType: %v", v) - } -} - -// TextRange - A subsection of a given string to which some special formatting should be applied. -type TextRange struct { - // The inclusive start index of the range. - StartIndex int64 `json:"startIndex"` - // The exclusive end index of the range. - EndIndex *int64 `json:"endIndex,omitempty"` - Type *TextRangeType `json:"type,omitempty"` - // The URL associated with the range, if applicable. For example, the linked URL for a LINK range. - URL *string `json:"url,omitempty"` - Document *Document `json:"document,omitempty"` -} - -func (t TextRange) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(t, "", false) -} - -func (t *TextRange) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, []string{"startIndex"}); err != nil { - return err - } - return nil -} - -func (o *TextRange) GetStartIndex() int64 { - if o == nil { - return 0 - } - return o.StartIndex -} - -func (o *TextRange) GetEndIndex() *int64 { - if o == nil { - return nil - } - return o.EndIndex -} - -func (o *TextRange) GetType() *TextRangeType { - if o == nil { - return nil - } - return o.Type -} - -func (o *TextRange) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} - -func (o *TextRange) GetDocument() *Document { - if o == nil { - return nil - } - return o.Document -} diff --git a/tests/mockserver/internal/sdk/models/components/thumbnail.go b/tests/mockserver/internal/sdk/models/components/thumbnail.go deleted file mode 100644 index 11629380..00000000 --- a/tests/mockserver/internal/sdk/models/components/thumbnail.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type Thumbnail struct { - // Photo id if the thumbnail is from splash. - PhotoID *string `json:"photoId,omitempty"` - // Thumbnail URL. This can be user provided image and/or from downloaded images hosted by Glean. - URL *string `json:"url,omitempty"` -} - -func (t Thumbnail) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(t, "", false) -} - -func (t *Thumbnail) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *Thumbnail) GetPhotoID() *string { - if o == nil { - return nil - } - return o.PhotoID -} - -func (o *Thumbnail) GetURL() *string { - if o == nil { - return nil - } - return o.URL -} diff --git a/tests/mockserver/internal/sdk/models/components/timeinterval.go b/tests/mockserver/internal/sdk/models/components/timeinterval.go deleted file mode 100644 index cad1e0d2..00000000 --- a/tests/mockserver/internal/sdk/models/components/timeinterval.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type TimeInterval struct { - // The RFC3339 timestamp formatted start time of this event. - Start string `json:"start"` - // The RFC3339 timestamp formatted end time of this event. - End string `json:"end"` -} - -func (t TimeInterval) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(t, "", false) -} - -func (t *TimeInterval) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, []string{"start", "end"}); err != nil { - return err - } - return nil -} - -func (o *TimeInterval) GetStart() string { - if o == nil { - return "" - } - return o.Start -} - -func (o *TimeInterval) GetEnd() string { - if o == nil { - return "" - } - return o.End -} diff --git a/tests/mockserver/internal/sdk/models/components/timepoint.go b/tests/mockserver/internal/sdk/models/components/timepoint.go deleted file mode 100644 index 1879f106..00000000 --- a/tests/mockserver/internal/sdk/models/components/timepoint.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type TimePoint struct { - // Epoch seconds. Has precedence over daysFromNow. - EpochSeconds *int64 `json:"epochSeconds,omitempty"` - // The number of days from now. Specification relative to current time. Can be negative. - DaysFromNow *int64 `json:"daysFromNow,omitempty"` -} - -func (t TimePoint) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(t, "", false) -} - -func (t *TimePoint) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *TimePoint) GetEpochSeconds() *int64 { - if o == nil { - return nil - } - return o.EpochSeconds -} - -func (o *TimePoint) GetDaysFromNow() *int64 { - if o == nil { - return nil - } - return o.DaysFromNow -} diff --git a/tests/mockserver/internal/sdk/models/components/timerange.go b/tests/mockserver/internal/sdk/models/components/timerange.go deleted file mode 100644 index 2671083b..00000000 --- a/tests/mockserver/internal/sdk/models/components/timerange.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" - "time" -) - -type TimeRange struct { - // start time of the time range, applicable for the CUSTOM type. - StartTime *time.Time `json:"startTime,omitempty"` - // end time of the time range, applicable for the CUSTOM type. - EndTime *time.Time `json:"endTime,omitempty"` - // The number of days to look back from the current time, applicable for the LAST_N_DAYS type. - LastNDaysValue *int64 `json:"lastNDaysValue,omitempty"` -} - -func (t TimeRange) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(t, "", false) -} - -func (t *TimeRange) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *TimeRange) GetStartTime() *time.Time { - if o == nil { - return nil - } - return o.StartTime -} - -func (o *TimeRange) GetEndTime() *time.Time { - if o == nil { - return nil - } - return o.EndTime -} - -func (o *TimeRange) GetLastNDaysValue() *int64 { - if o == nil { - return nil - } - return o.LastNDaysValue -} diff --git a/tests/mockserver/internal/sdk/models/components/tool.go b/tests/mockserver/internal/sdk/models/components/tool.go deleted file mode 100644 index ed0eadfe..00000000 --- a/tests/mockserver/internal/sdk/models/components/tool.go +++ /dev/null @@ -1,83 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// ToolType - Type of tool (READ, WRITE) -type ToolType string - -const ( - ToolTypeRead ToolType = "READ" - ToolTypeWrite ToolType = "WRITE" -) - -func (e ToolType) ToPointer() *ToolType { - return &e -} -func (e *ToolType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "READ": - fallthrough - case "WRITE": - *e = ToolType(v) - return nil - default: - return fmt.Errorf("invalid value for ToolType: %v", v) - } -} - -type Tool struct { - // Type of tool (READ, WRITE) - Type *ToolType `json:"type,omitempty"` - // Unique identifier for the tool - Name *string `json:"name,omitempty"` - // Human-readable name - DisplayName *string `json:"displayName,omitempty"` - // LLM friendly description of the tool - Description *string `json:"description,omitempty"` - // The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. - Parameters map[string]ToolParameter `json:"parameters,omitempty"` -} - -func (o *Tool) GetType() *ToolType { - if o == nil { - return nil - } - return o.Type -} - -func (o *Tool) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *Tool) GetDisplayName() *string { - if o == nil { - return nil - } - return o.DisplayName -} - -func (o *Tool) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *Tool) GetParameters() map[string]ToolParameter { - if o == nil { - return nil - } - return o.Parameters -} diff --git a/tests/mockserver/internal/sdk/models/components/toolinfo.go b/tests/mockserver/internal/sdk/models/components/toolinfo.go deleted file mode 100644 index dea3298b..00000000 --- a/tests/mockserver/internal/sdk/models/components/toolinfo.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ToolInfo struct { - // The manifest for a tool that can be used to augment Glean Assistant. - Metadata *ToolMetadata `json:"metadata,omitempty"` - // Parameters supported by the tool. - Parameters map[string]WriteActionParameter `json:"parameters,omitempty"` -} - -func (o *ToolInfo) GetMetadata() *ToolMetadata { - if o == nil { - return nil - } - return o.Metadata -} - -func (o *ToolInfo) GetParameters() map[string]WriteActionParameter { - if o == nil { - return nil - } - return o.Parameters -} diff --git a/tests/mockserver/internal/sdk/models/components/toolmetadata.go b/tests/mockserver/internal/sdk/models/components/toolmetadata.go deleted file mode 100644 index 90afded8..00000000 --- a/tests/mockserver/internal/sdk/models/components/toolmetadata.go +++ /dev/null @@ -1,316 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -// ToolMetadataType - The type of tool. -type ToolMetadataType string - -const ( - ToolMetadataTypeRetrieval ToolMetadataType = "RETRIEVAL" - ToolMetadataTypeAction ToolMetadataType = "ACTION" -) - -func (e ToolMetadataType) ToPointer() *ToolMetadataType { - return &e -} -func (e *ToolMetadataType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "RETRIEVAL": - fallthrough - case "ACTION": - *e = ToolMetadataType(v) - return nil - default: - return fmt.Errorf("invalid value for ToolMetadataType: %v", v) - } -} - -// KnowledgeType - Indicates the kind of knowledge a tool would access or modify. -type KnowledgeType string - -const ( - KnowledgeTypeNeutralKnowledge KnowledgeType = "NEUTRAL_KNOWLEDGE" - KnowledgeTypeCompanyKnowledge KnowledgeType = "COMPANY_KNOWLEDGE" - KnowledgeTypeWorldKnowledge KnowledgeType = "WORLD_KNOWLEDGE" -) - -func (e KnowledgeType) ToPointer() *KnowledgeType { - return &e -} -func (e *KnowledgeType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "NEUTRAL_KNOWLEDGE": - fallthrough - case "COMPANY_KNOWLEDGE": - fallthrough - case "WORLD_KNOWLEDGE": - *e = KnowledgeType(v) - return nil - default: - return fmt.Errorf("invalid value for KnowledgeType: %v", v) - } -} - -// WriteActionType - Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. -type WriteActionType string - -const ( - WriteActionTypeRedirect WriteActionType = "REDIRECT" - WriteActionTypeExecution WriteActionType = "EXECUTION" -) - -func (e WriteActionType) ToPointer() *WriteActionType { - return &e -} -func (e *WriteActionType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "REDIRECT": - fallthrough - case "EXECUTION": - *e = WriteActionType(v) - return nil - default: - return fmt.Errorf("invalid value for WriteActionType: %v", v) - } -} - -// AuthType - The type of authentication being used. -// Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. -// 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. -// 'OAUTH_USER' uses individual user tokens for external API calls. -// 'DWD' refers to domain wide delegation. -type AuthType string - -const ( - AuthTypeNone AuthType = "NONE" - AuthTypeOauthUser AuthType = "OAUTH_USER" - AuthTypeOauthAdmin AuthType = "OAUTH_ADMIN" - AuthTypeAPIKey AuthType = "API_KEY" - AuthTypeBasicAuth AuthType = "BASIC_AUTH" - AuthTypeDwd AuthType = "DWD" -) - -func (e AuthType) ToPointer() *AuthType { - return &e -} -func (e *AuthType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "NONE": - fallthrough - case "OAUTH_USER": - fallthrough - case "OAUTH_ADMIN": - fallthrough - case "API_KEY": - fallthrough - case "BASIC_AUTH": - fallthrough - case "DWD": - *e = AuthType(v) - return nil - default: - return fmt.Errorf("invalid value for AuthType: %v", v) - } -} - -// ToolMetadata - The manifest for a tool that can be used to augment Glean Assistant. -type ToolMetadata struct { - // The type of tool. - Type ToolMetadataType `json:"type"` - // Unique identifier for the tool. Name should be understandable by the LLM, and will be used to invoke a tool. - Name string `json:"name"` - // Human understandable name of the tool. Max 50 characters. - DisplayName string `json:"displayName"` - // An opaque id which is unique identifier for the tool. - ToolID *string `json:"toolId,omitempty"` - // Description of the tool meant for a human. - DisplayDescription string `json:"displayDescription"` - // URL used to fetch the logo. - LogoURL *string `json:"logoUrl,omitempty"` - // Name of the generated object. This will be used to indicate to the end user what the generated object contains. - ObjectName *string `json:"objectName,omitempty"` - // Indicates the kind of knowledge a tool would access or modify. - KnowledgeType *KnowledgeType `json:"knowledgeType,omitempty"` - CreatedBy *PersonObject `json:"createdBy,omitempty"` - LastUpdatedBy *PersonObject `json:"lastUpdatedBy,omitempty"` - // The time the tool was created in ISO format (ISO 8601) - CreatedAt *time.Time `json:"createdAt,omitempty"` - // The time the tool was last updated in ISO format (ISO 8601) - LastUpdatedAt *time.Time `json:"lastUpdatedAt,omitempty"` - // Valid only for write actions. Represents the type of write action. REDIRECT - The client renders the URL which contains information for carrying out the action. EXECUTION - Send a request to an external server and execute the action. - WriteActionType *WriteActionType `json:"writeActionType,omitempty"` - // The type of authentication being used. - // Use 'OAUTH_*' when Glean calls an external API (e.g., Jira) on behalf of a user to obtain an OAuth token. - // 'OAUTH_ADMIN' utilizes an admin token for external API calls on behalf all users. - // 'OAUTH_USER' uses individual user tokens for external API calls. - // 'DWD' refers to domain wide delegation. - // - AuthType *AuthType `json:"authType,omitempty"` - // Config for tool's authentication method. - Auth *AuthConfig `json:"auth,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` - // Usage instructions for the LLM to use this action. - UsageInstructions *string `json:"usageInstructions,omitempty"` - // Whether this action has been fully configured and validated. - IsSetupFinished *bool `json:"isSetupFinished,omitempty"` -} - -func (t ToolMetadata) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(t, "", false) -} - -func (t *ToolMetadata) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &t, "", false, []string{"type", "name", "displayName", "displayDescription"}); err != nil { - return err - } - return nil -} - -func (o *ToolMetadata) GetType() ToolMetadataType { - if o == nil { - return ToolMetadataType("") - } - return o.Type -} - -func (o *ToolMetadata) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *ToolMetadata) GetDisplayName() string { - if o == nil { - return "" - } - return o.DisplayName -} - -func (o *ToolMetadata) GetToolID() *string { - if o == nil { - return nil - } - return o.ToolID -} - -func (o *ToolMetadata) GetDisplayDescription() string { - if o == nil { - return "" - } - return o.DisplayDescription -} - -func (o *ToolMetadata) GetLogoURL() *string { - if o == nil { - return nil - } - return o.LogoURL -} - -func (o *ToolMetadata) GetObjectName() *string { - if o == nil { - return nil - } - return o.ObjectName -} - -func (o *ToolMetadata) GetKnowledgeType() *KnowledgeType { - if o == nil { - return nil - } - return o.KnowledgeType -} - -func (o *ToolMetadata) GetCreatedBy() *PersonObject { - if o == nil { - return nil - } - return o.CreatedBy -} - -func (o *ToolMetadata) GetLastUpdatedBy() *PersonObject { - if o == nil { - return nil - } - return o.LastUpdatedBy -} - -func (o *ToolMetadata) GetCreatedAt() *time.Time { - if o == nil { - return nil - } - return o.CreatedAt -} - -func (o *ToolMetadata) GetLastUpdatedAt() *time.Time { - if o == nil { - return nil - } - return o.LastUpdatedAt -} - -func (o *ToolMetadata) GetWriteActionType() *WriteActionType { - if o == nil { - return nil - } - return o.WriteActionType -} - -func (o *ToolMetadata) GetAuthType() *AuthType { - if o == nil { - return nil - } - return o.AuthType -} - -func (o *ToolMetadata) GetAuth() *AuthConfig { - if o == nil { - return nil - } - return o.Auth -} - -func (o *ToolMetadata) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *ToolMetadata) GetUsageInstructions() *string { - if o == nil { - return nil - } - return o.UsageInstructions -} - -func (o *ToolMetadata) GetIsSetupFinished() *bool { - if o == nil { - return nil - } - return o.IsSetupFinished -} diff --git a/tests/mockserver/internal/sdk/models/components/toolparameter.go b/tests/mockserver/internal/sdk/models/components/toolparameter.go deleted file mode 100644 index fd0c3c73..00000000 --- a/tests/mockserver/internal/sdk/models/components/toolparameter.go +++ /dev/null @@ -1,109 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// ToolParameterType - Parameter type (string, number, boolean, object, array) -type ToolParameterType string - -const ( - ToolParameterTypeString ToolParameterType = "string" - ToolParameterTypeNumber ToolParameterType = "number" - ToolParameterTypeBoolean ToolParameterType = "boolean" - ToolParameterTypeObject ToolParameterType = "object" - ToolParameterTypeArray ToolParameterType = "array" -) - -func (e ToolParameterType) ToPointer() *ToolParameterType { - return &e -} -func (e *ToolParameterType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "string": - fallthrough - case "number": - fallthrough - case "boolean": - fallthrough - case "object": - fallthrough - case "array": - *e = ToolParameterType(v) - return nil - default: - return fmt.Errorf("invalid value for ToolParameterType: %v", v) - } -} - -type ToolParameter struct { - // Parameter type (string, number, boolean, object, array) - Type *ToolParameterType `json:"type,omitempty"` - // The name of the parameter - Name *string `json:"name,omitempty"` - // The description of the parameter - Description *string `json:"description,omitempty"` - // Whether the parameter is required - IsRequired *bool `json:"isRequired,omitempty"` - // The possible values for the parameter. Can contain only primitive values or arrays of primitive values. - PossibleValues []string `json:"possibleValues,omitempty"` - Items *ToolParameter `json:"items,omitempty"` - // When type is 'object', this describes the structure of the object. - Properties map[string]ToolParameter `json:"properties,omitempty"` -} - -func (o *ToolParameter) GetType() *ToolParameterType { - if o == nil { - return nil - } - return o.Type -} - -func (o *ToolParameter) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *ToolParameter) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *ToolParameter) GetIsRequired() *bool { - if o == nil { - return nil - } - return o.IsRequired -} - -func (o *ToolParameter) GetPossibleValues() []string { - if o == nil { - return nil - } - return o.PossibleValues -} - -func (o *ToolParameter) GetItems() *ToolParameter { - if o == nil { - return nil - } - return o.Items -} - -func (o *ToolParameter) GetProperties() map[string]ToolParameter { - if o == nil { - return nil - } - return o.Properties -} diff --git a/tests/mockserver/internal/sdk/models/components/toolscallparameter.go b/tests/mockserver/internal/sdk/models/components/toolscallparameter.go deleted file mode 100644 index ddfbe5f9..00000000 --- a/tests/mockserver/internal/sdk/models/components/toolscallparameter.go +++ /dev/null @@ -1,42 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ToolsCallParameter struct { - // The name of the parameter - Name string `json:"name"` - // The value of the parameter (for primitive types) - Value string `json:"value"` - // The value of the parameter (for array types) - Items []ToolsCallParameter `json:"items,omitempty"` - // The value of the parameter (for object types) - Properties map[string]ToolsCallParameter `json:"properties,omitempty"` -} - -func (o *ToolsCallParameter) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *ToolsCallParameter) GetValue() string { - if o == nil { - return "" - } - return o.Value -} - -func (o *ToolsCallParameter) GetItems() []ToolsCallParameter { - if o == nil { - return nil - } - return o.Items -} - -func (o *ToolsCallParameter) GetProperties() map[string]ToolsCallParameter { - if o == nil { - return nil - } - return o.Properties -} diff --git a/tests/mockserver/internal/sdk/models/components/toolscallrequest.go b/tests/mockserver/internal/sdk/models/components/toolscallrequest.go deleted file mode 100644 index 4678acfc..00000000 --- a/tests/mockserver/internal/sdk/models/components/toolscallrequest.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ToolsCallRequest struct { - // Required name of the tool to execute - Name string `json:"name"` - // The parameters for the tool. Each key is the name of the parameter and the value is the parameter object. - Parameters map[string]ToolsCallParameter `json:"parameters"` -} - -func (o *ToolsCallRequest) GetName() string { - if o == nil { - return "" - } - return o.Name -} - -func (o *ToolsCallRequest) GetParameters() map[string]ToolsCallParameter { - if o == nil { - return map[string]ToolsCallParameter{} - } - return o.Parameters -} diff --git a/tests/mockserver/internal/sdk/models/components/toolscallresponse.go b/tests/mockserver/internal/sdk/models/components/toolscallresponse.go deleted file mode 100644 index 03e9af73..00000000 --- a/tests/mockserver/internal/sdk/models/components/toolscallresponse.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ToolsCallResponse struct { - // The raw response from the tool - RawResponse map[string]any `json:"rawResponse,omitempty"` - // The error message if applicable - Error *string `json:"error,omitempty"` -} - -func (o *ToolsCallResponse) GetRawResponse() map[string]any { - if o == nil { - return nil - } - return o.RawResponse -} - -func (o *ToolsCallResponse) GetError() *string { - if o == nil { - return nil - } - return o.Error -} diff --git a/tests/mockserver/internal/sdk/models/components/toolsets.go b/tests/mockserver/internal/sdk/models/components/toolsets.go deleted file mode 100644 index 755f3654..00000000 --- a/tests/mockserver/internal/sdk/models/components/toolsets.go +++ /dev/null @@ -1,25 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// ToolSets - The types of tools that the agent is allowed to use. Only works with FAST and ADVANCED `agent` values -type ToolSets struct { - // Whether the agent is allowed to use web search (default: true). - EnableWebSearch *bool `json:"enableWebSearch,omitempty"` - // Whether the agent is allowed to search internal company resources (default: true). - EnableCompanyTools *bool `json:"enableCompanyTools,omitempty"` -} - -func (o *ToolSets) GetEnableWebSearch() *bool { - if o == nil { - return nil - } - return o.EnableWebSearch -} - -func (o *ToolSets) GetEnableCompanyTools() *bool { - if o == nil { - return nil - } - return o.EnableCompanyTools -} diff --git a/tests/mockserver/internal/sdk/models/components/toolslistresponse.go b/tests/mockserver/internal/sdk/models/components/toolslistresponse.go deleted file mode 100644 index 7a6a8980..00000000 --- a/tests/mockserver/internal/sdk/models/components/toolslistresponse.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type ToolsListResponse struct { - Tools []Tool `json:"tools,omitempty"` -} - -func (o *ToolsListResponse) GetTools() []Tool { - if o == nil { - return nil - } - return o.Tools -} diff --git a/tests/mockserver/internal/sdk/models/components/ugctype.go b/tests/mockserver/internal/sdk/models/components/ugctype.go deleted file mode 100644 index e1cdc164..00000000 --- a/tests/mockserver/internal/sdk/models/components/ugctype.go +++ /dev/null @@ -1,46 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -type UgcType string - -const ( - UgcTypeAnnouncementsType UgcType = "ANNOUNCEMENTS_TYPE" - UgcTypeAnswersType UgcType = "ANSWERS_TYPE" - UgcTypeCollectionsType UgcType = "COLLECTIONS_TYPE" - UgcTypeShortcutsType UgcType = "SHORTCUTS_TYPE" - UgcTypeWorkflowsType UgcType = "WORKFLOWS_TYPE" - UgcTypePromptTemplatesType UgcType = "PROMPT_TEMPLATES_TYPE" -) - -func (e UgcType) ToPointer() *UgcType { - return &e -} -func (e *UgcType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ANNOUNCEMENTS_TYPE": - fallthrough - case "ANSWERS_TYPE": - fallthrough - case "COLLECTIONS_TYPE": - fallthrough - case "SHORTCUTS_TYPE": - fallthrough - case "WORKFLOWS_TYPE": - fallthrough - case "PROMPT_TEMPLATES_TYPE": - *e = UgcType(v) - return nil - default: - return fmt.Errorf("invalid value for UgcType: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/unpin.go b/tests/mockserver/internal/sdk/models/components/unpin.go deleted file mode 100644 index c7d34319..00000000 --- a/tests/mockserver/internal/sdk/models/components/unpin.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type Unpin struct { - // The opaque id of the pin to be unpinned. - ID *string `json:"id,omitempty"` -} - -func (o *Unpin) GetID() *string { - if o == nil { - return nil - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/updateannouncementrequest.go b/tests/mockserver/internal/sdk/models/components/updateannouncementrequest.go deleted file mode 100644 index 9a66e2cb..00000000 --- a/tests/mockserver/internal/sdk/models/components/updateannouncementrequest.go +++ /dev/null @@ -1,210 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -// UpdateAnnouncementRequestChannel - This determines whether this is a Social Feed post or a regular announcement. -type UpdateAnnouncementRequestChannel string - -const ( - UpdateAnnouncementRequestChannelMain UpdateAnnouncementRequestChannel = "MAIN" - UpdateAnnouncementRequestChannelSocialFeed UpdateAnnouncementRequestChannel = "SOCIAL_FEED" -) - -func (e UpdateAnnouncementRequestChannel) ToPointer() *UpdateAnnouncementRequestChannel { - return &e -} -func (e *UpdateAnnouncementRequestChannel) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "MAIN": - fallthrough - case "SOCIAL_FEED": - *e = UpdateAnnouncementRequestChannel(v) - return nil - default: - return fmt.Errorf("invalid value for UpdateAnnouncementRequestChannel: %v", v) - } -} - -// UpdateAnnouncementRequestPostType - This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. -type UpdateAnnouncementRequestPostType string - -const ( - UpdateAnnouncementRequestPostTypeText UpdateAnnouncementRequestPostType = "TEXT" - UpdateAnnouncementRequestPostTypeLink UpdateAnnouncementRequestPostType = "LINK" -) - -func (e UpdateAnnouncementRequestPostType) ToPointer() *UpdateAnnouncementRequestPostType { - return &e -} -func (e *UpdateAnnouncementRequestPostType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "TEXT": - fallthrough - case "LINK": - *e = UpdateAnnouncementRequestPostType(v) - return nil - default: - return fmt.Errorf("invalid value for UpdateAnnouncementRequestPostType: %v", v) - } -} - -type UpdateAnnouncementRequest struct { - // The date and time at which the announcement becomes active. - StartTime time.Time `json:"startTime"` - // The date and time at which the announcement expires. - EndTime time.Time `json:"endTime"` - // The headline of the announcement. - Title string `json:"title"` - Body *StructuredText `json:"body,omitempty"` - // An emoji used to indicate the nature of the announcement. - Emoji *string `json:"emoji,omitempty"` - Thumbnail *Thumbnail `json:"thumbnail,omitempty"` - Banner *Thumbnail `json:"banner,omitempty"` - // Filters which restrict who should see the announcement. Values are taken from the corresponding filters in people search. - AudienceFilters []FacetFilter `json:"audienceFilters,omitempty"` - // The Glean Document ID of the source document this Announcement was created from (e.g. Slack thread). - SourceDocumentID *string `json:"sourceDocumentId,omitempty"` - // Whether or not to hide an author attribution. - HideAttribution *bool `json:"hideAttribution,omitempty"` - // This determines whether this is a Social Feed post or a regular announcement. - Channel *UpdateAnnouncementRequestChannel `json:"channel,omitempty"` - // This determines whether this is an external-link post or a regular announcement post. TEXT - Regular announcement that can contain rich text. LINK - Announcement that is linked to an external site. - PostType *UpdateAnnouncementRequestPostType `json:"postType,omitempty"` - // Used by the Social Feed to pin posts to the front of the feed. - IsPrioritized *bool `json:"isPrioritized,omitempty"` - // URL for viewing the announcement. It will be set to document URL for announcements from other datasources e.g. simpplr. Can only be written when channel="SOCIAL_FEED". - ViewURL *string `json:"viewUrl,omitempty"` - // The opaque id of the announcement. - ID int64 `json:"id"` -} - -func (u UpdateAnnouncementRequest) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(u, "", false) -} - -func (u *UpdateAnnouncementRequest) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, []string{"startTime", "endTime", "title", "id"}); err != nil { - return err - } - return nil -} - -func (o *UpdateAnnouncementRequest) GetStartTime() time.Time { - if o == nil { - return time.Time{} - } - return o.StartTime -} - -func (o *UpdateAnnouncementRequest) GetEndTime() time.Time { - if o == nil { - return time.Time{} - } - return o.EndTime -} - -func (o *UpdateAnnouncementRequest) GetTitle() string { - if o == nil { - return "" - } - return o.Title -} - -func (o *UpdateAnnouncementRequest) GetBody() *StructuredText { - if o == nil { - return nil - } - return o.Body -} - -func (o *UpdateAnnouncementRequest) GetEmoji() *string { - if o == nil { - return nil - } - return o.Emoji -} - -func (o *UpdateAnnouncementRequest) GetThumbnail() *Thumbnail { - if o == nil { - return nil - } - return o.Thumbnail -} - -func (o *UpdateAnnouncementRequest) GetBanner() *Thumbnail { - if o == nil { - return nil - } - return o.Banner -} - -func (o *UpdateAnnouncementRequest) GetAudienceFilters() []FacetFilter { - if o == nil { - return nil - } - return o.AudienceFilters -} - -func (o *UpdateAnnouncementRequest) GetSourceDocumentID() *string { - if o == nil { - return nil - } - return o.SourceDocumentID -} - -func (o *UpdateAnnouncementRequest) GetHideAttribution() *bool { - if o == nil { - return nil - } - return o.HideAttribution -} - -func (o *UpdateAnnouncementRequest) GetChannel() *UpdateAnnouncementRequestChannel { - if o == nil { - return nil - } - return o.Channel -} - -func (o *UpdateAnnouncementRequest) GetPostType() *UpdateAnnouncementRequestPostType { - if o == nil { - return nil - } - return o.PostType -} - -func (o *UpdateAnnouncementRequest) GetIsPrioritized() *bool { - if o == nil { - return nil - } - return o.IsPrioritized -} - -func (o *UpdateAnnouncementRequest) GetViewURL() *string { - if o == nil { - return nil - } - return o.ViewURL -} - -func (o *UpdateAnnouncementRequest) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/updatedlpconfigrequest.go b/tests/mockserver/internal/sdk/models/components/updatedlpconfigrequest.go deleted file mode 100644 index 676fbf0c..00000000 --- a/tests/mockserver/internal/sdk/models/components/updatedlpconfigrequest.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type UpdateDlpConfigRequest struct { - // Detailed configuration of what documents and sensitive content will be scanned. - Config *DlpConfig `json:"config,omitempty"` - // Only "ONCE" is supported for reports. - Frequency *string `json:"frequency,omitempty"` -} - -func (o *UpdateDlpConfigRequest) GetConfig() *DlpConfig { - if o == nil { - return nil - } - return o.Config -} - -func (o *UpdateDlpConfigRequest) GetFrequency() *string { - if o == nil { - return nil - } - return o.Frequency -} diff --git a/tests/mockserver/internal/sdk/models/components/updatedlpconfigresponse.go b/tests/mockserver/internal/sdk/models/components/updatedlpconfigresponse.go deleted file mode 100644 index 7f2dceec..00000000 --- a/tests/mockserver/internal/sdk/models/components/updatedlpconfigresponse.go +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type UpdateDlpConfigResponse struct { - Result *DlpSimpleResult `json:"result,omitempty"` - // The id of the report that was just created and run. - ReportID *string `json:"reportId,omitempty"` -} - -func (o *UpdateDlpConfigResponse) GetResult() *DlpSimpleResult { - if o == nil { - return nil - } - return o.Result -} - -func (o *UpdateDlpConfigResponse) GetReportID() *string { - if o == nil { - return nil - } - return o.ReportID -} diff --git a/tests/mockserver/internal/sdk/models/components/updatedlpreportrequest.go b/tests/mockserver/internal/sdk/models/components/updatedlpreportrequest.go deleted file mode 100644 index 7b8e524e..00000000 --- a/tests/mockserver/internal/sdk/models/components/updatedlpreportrequest.go +++ /dev/null @@ -1,51 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type UpdateDlpReportRequest struct { - // Detailed configuration of what documents and sensitive content will be scanned. - Config *DlpConfig `json:"config,omitempty"` - // Interval between scans. DAILY is deprecated. - Frequency *DlpFrequency `json:"frequency,omitempty"` - // The status of the policy/report. Only ACTIVE status will be picked for scans. - Status *DlpReportStatus `json:"status,omitempty"` - // The new autoHideDoc boolean the policy will be updated to if provided. - AutoHideDocs *bool `json:"autoHideDocs,omitempty"` - // The new name of the policy if provided. - ReportName *string `json:"reportName,omitempty"` -} - -func (o *UpdateDlpReportRequest) GetConfig() *DlpConfig { - if o == nil { - return nil - } - return o.Config -} - -func (o *UpdateDlpReportRequest) GetFrequency() *DlpFrequency { - if o == nil { - return nil - } - return o.Frequency -} - -func (o *UpdateDlpReportRequest) GetStatus() *DlpReportStatus { - if o == nil { - return nil - } - return o.Status -} - -func (o *UpdateDlpReportRequest) GetAutoHideDocs() *bool { - if o == nil { - return nil - } - return o.AutoHideDocs -} - -func (o *UpdateDlpReportRequest) GetReportName() *string { - if o == nil { - return nil - } - return o.ReportName -} diff --git a/tests/mockserver/internal/sdk/models/components/updatedlpreportresponse.go b/tests/mockserver/internal/sdk/models/components/updatedlpreportresponse.go deleted file mode 100644 index beff94eb..00000000 --- a/tests/mockserver/internal/sdk/models/components/updatedlpreportresponse.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type UpdateDlpReportResponse struct { - Result *DlpSimpleResult `json:"result,omitempty"` -} - -func (o *UpdateDlpReportResponse) GetResult() *DlpSimpleResult { - if o == nil { - return nil - } - return o.Result -} diff --git a/tests/mockserver/internal/sdk/models/components/updatedocumentvisibilityoverridesrequest.go b/tests/mockserver/internal/sdk/models/components/updatedocumentvisibilityoverridesrequest.go deleted file mode 100644 index e26ea504..00000000 --- a/tests/mockserver/internal/sdk/models/components/updatedocumentvisibilityoverridesrequest.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type UpdateDocumentVisibilityOverridesRequest struct { - VisibilityOverrides []DocumentVisibilityOverride `json:"visibilityOverrides,omitempty"` -} - -func (o *UpdateDocumentVisibilityOverridesRequest) GetVisibilityOverrides() []DocumentVisibilityOverride { - if o == nil { - return nil - } - return o.VisibilityOverrides -} diff --git a/tests/mockserver/internal/sdk/models/components/updatedocumentvisibilityoverridesresponse.go b/tests/mockserver/internal/sdk/models/components/updatedocumentvisibilityoverridesresponse.go deleted file mode 100644 index 638a1b97..00000000 --- a/tests/mockserver/internal/sdk/models/components/updatedocumentvisibilityoverridesresponse.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type UpdateDocumentVisibilityOverridesResponse struct { - // The documents and whether their visibility was successfully updated. - Results []DocumentVisibilityUpdateResult `json:"results,omitempty"` -} - -func (o *UpdateDocumentVisibilityOverridesResponse) GetResults() []DocumentVisibilityUpdateResult { - if o == nil { - return nil - } - return o.Results -} diff --git a/tests/mockserver/internal/sdk/models/components/updatepermissionsrequest.go b/tests/mockserver/internal/sdk/models/components/updatepermissionsrequest.go deleted file mode 100644 index a2455c34..00000000 --- a/tests/mockserver/internal/sdk/models/components/updatepermissionsrequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// UpdatePermissionsRequest - Describes the request body of the /updatepermissions API call -type UpdatePermissionsRequest struct { - Datasource string `json:"datasource"` - // The type of the document (Case, KnowledgeArticle for Salesforce for example). It cannot have spaces or _ - ObjectType *string `json:"objectType,omitempty"` - // The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. - ID *string `json:"id,omitempty"` - // The permalink for viewing the document. **Note: viewURL is a required field if id was not set when uploading the document.**' - // - ViewURL *string `json:"viewURL,omitempty"` - // describes the access control details of the document - Permissions DocumentPermissionsDefinition `json:"permissions"` -} - -func (o *UpdatePermissionsRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *UpdatePermissionsRequest) GetObjectType() *string { - if o == nil { - return nil - } - return o.ObjectType -} - -func (o *UpdatePermissionsRequest) GetID() *string { - if o == nil { - return nil - } - return o.ID -} - -func (o *UpdatePermissionsRequest) GetViewURL() *string { - if o == nil { - return nil - } - return o.ViewURL -} - -func (o *UpdatePermissionsRequest) GetPermissions() DocumentPermissionsDefinition { - if o == nil { - return DocumentPermissionsDefinition{} - } - return o.Permissions -} diff --git a/tests/mockserver/internal/sdk/models/components/updateshortcutrequest.go b/tests/mockserver/internal/sdk/models/components/updateshortcutrequest.go deleted file mode 100644 index e9e8dd98..00000000 --- a/tests/mockserver/internal/sdk/models/components/updateshortcutrequest.go +++ /dev/null @@ -1,87 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type UpdateShortcutRequest struct { - // The opaque id of the user generated content. - ID int64 `json:"id"` - // Link text following go/ prefix as entered by the user. - InputAlias *string `json:"inputAlias,omitempty"` - // Destination URL for the shortcut. - DestinationURL *string `json:"destinationUrl,omitempty"` - // Glean Document ID for the URL, if known. - DestinationDocumentID *string `json:"destinationDocumentId,omitempty"` - // A short, plain text blurb to help people understand the intent of the shortcut. - Description *string `json:"description,omitempty"` - // Whether this shortcut is unlisted or not. Unlisted shortcuts are visible to author + admins only. - Unlisted *bool `json:"unlisted,omitempty"` - // For variable shortcuts, contains the URL template; note, `destinationUrl` contains default URL. - URLTemplate *string `json:"urlTemplate,omitempty"` - // A list of user roles added for the Shortcut. - AddedRoles []UserRoleSpecification `json:"addedRoles,omitempty"` - // A list of user roles removed for the Shortcut. - RemovedRoles []UserRoleSpecification `json:"removedRoles,omitempty"` -} - -func (o *UpdateShortcutRequest) GetID() int64 { - if o == nil { - return 0 - } - return o.ID -} - -func (o *UpdateShortcutRequest) GetInputAlias() *string { - if o == nil { - return nil - } - return o.InputAlias -} - -func (o *UpdateShortcutRequest) GetDestinationURL() *string { - if o == nil { - return nil - } - return o.DestinationURL -} - -func (o *UpdateShortcutRequest) GetDestinationDocumentID() *string { - if o == nil { - return nil - } - return o.DestinationDocumentID -} - -func (o *UpdateShortcutRequest) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *UpdateShortcutRequest) GetUnlisted() *bool { - if o == nil { - return nil - } - return o.Unlisted -} - -func (o *UpdateShortcutRequest) GetURLTemplate() *string { - if o == nil { - return nil - } - return o.URLTemplate -} - -func (o *UpdateShortcutRequest) GetAddedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.AddedRoles -} - -func (o *UpdateShortcutRequest) GetRemovedRoles() []UserRoleSpecification { - if o == nil { - return nil - } - return o.RemovedRoles -} diff --git a/tests/mockserver/internal/sdk/models/components/updateshortcutresponse.go b/tests/mockserver/internal/sdk/models/components/updateshortcutresponse.go deleted file mode 100644 index f4ab9bee..00000000 --- a/tests/mockserver/internal/sdk/models/components/updateshortcutresponse.go +++ /dev/null @@ -1,22 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type UpdateShortcutResponse struct { - Shortcut *Shortcut `json:"shortcut,omitempty"` - Error *ShortcutError `json:"error,omitempty"` -} - -func (o *UpdateShortcutResponse) GetShortcut() *Shortcut { - if o == nil { - return nil - } - return o.Shortcut -} - -func (o *UpdateShortcutResponse) GetError() *ShortcutError { - if o == nil { - return nil - } - return o.Error -} diff --git a/tests/mockserver/internal/sdk/models/components/updatetype.go b/tests/mockserver/internal/sdk/models/components/updatetype.go deleted file mode 100644 index 1d45f587..00000000 --- a/tests/mockserver/internal/sdk/models/components/updatetype.go +++ /dev/null @@ -1,35 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// UpdateType - Optional type classification for the update. -type UpdateType string - -const ( - UpdateTypeActionable UpdateType = "ACTIONABLE" - UpdateTypeInformative UpdateType = "INFORMATIVE" -) - -func (e UpdateType) ToPointer() *UpdateType { - return &e -} -func (e *UpdateType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ACTIONABLE": - fallthrough - case "INFORMATIVE": - *e = UpdateType(v) - return nil - default: - return fmt.Errorf("invalid value for UpdateType: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/uploadchatfilesrequest.go b/tests/mockserver/internal/sdk/models/components/uploadchatfilesrequest.go deleted file mode 100644 index 7c324627..00000000 --- a/tests/mockserver/internal/sdk/models/components/uploadchatfilesrequest.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "io" -) - -type File struct { - FileName string `multipartForm:"name=fileName"` - Content io.Reader `multipartForm:"content"` -} - -func (o *File) GetFileName() string { - if o == nil { - return "" - } - return o.FileName -} - -func (o *File) GetContent() io.Reader { - if o == nil { - return nil - } - return o.Content -} - -type UploadChatFilesRequest struct { - // Raw files to be uploaded for chat in binary format. - Files []File `multipartForm:"file"` -} - -func (o *UploadChatFilesRequest) GetFiles() []File { - if o == nil { - return []File{} - } - return o.Files -} diff --git a/tests/mockserver/internal/sdk/models/components/uploadchatfilesresponse.go b/tests/mockserver/internal/sdk/models/components/uploadchatfilesresponse.go deleted file mode 100644 index a10030cf..00000000 --- a/tests/mockserver/internal/sdk/models/components/uploadchatfilesresponse.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type UploadChatFilesResponse struct { - // Files uploaded for chat. - Files []ChatFile `json:"files,omitempty"` -} - -func (o *UploadChatFilesResponse) GetFiles() []ChatFile { - if o == nil { - return nil - } - return o.Files -} diff --git a/tests/mockserver/internal/sdk/models/components/uploadshortcutsrequest.go b/tests/mockserver/internal/sdk/models/components/uploadshortcutsrequest.go deleted file mode 100644 index 4549bec3..00000000 --- a/tests/mockserver/internal/sdk/models/components/uploadshortcutsrequest.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// UploadShortcutsRequest - Describes the request body of the /uploadshortcuts API call -type UploadShortcutsRequest struct { - // Unique id that must be used for this bulk upload instance - UploadID string `json:"uploadId"` - // true if this is the first page of the upload. Defaults to false - IsFirstPage *bool `json:"isFirstPage,omitempty"` - // true if this is the last page of the upload. Defaults to false - IsLastPage *bool `json:"isLastPage,omitempty"` - // Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true - ForceRestartUpload *bool `json:"forceRestartUpload,omitempty"` - // Batch of shortcuts information - Shortcuts []IndexingShortcut `json:"shortcuts"` -} - -func (o *UploadShortcutsRequest) GetUploadID() string { - if o == nil { - return "" - } - return o.UploadID -} - -func (o *UploadShortcutsRequest) GetIsFirstPage() *bool { - if o == nil { - return nil - } - return o.IsFirstPage -} - -func (o *UploadShortcutsRequest) GetIsLastPage() *bool { - if o == nil { - return nil - } - return o.IsLastPage -} - -func (o *UploadShortcutsRequest) GetForceRestartUpload() *bool { - if o == nil { - return nil - } - return o.ForceRestartUpload -} - -func (o *UploadShortcutsRequest) GetShortcuts() []IndexingShortcut { - if o == nil { - return []IndexingShortcut{} - } - return o.Shortcuts -} diff --git a/tests/mockserver/internal/sdk/models/components/uploadstatusenum.go b/tests/mockserver/internal/sdk/models/components/uploadstatusenum.go deleted file mode 100644 index 90546c9d..00000000 --- a/tests/mockserver/internal/sdk/models/components/uploadstatusenum.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// UploadStatusEnum - Upload status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN -type UploadStatusEnum string - -const ( - UploadStatusEnumUploaded UploadStatusEnum = "UPLOADED" - UploadStatusEnumNotUploaded UploadStatusEnum = "NOT_UPLOADED" - UploadStatusEnumStatusUnknown UploadStatusEnum = "STATUS_UNKNOWN" -) - -func (e UploadStatusEnum) ToPointer() *UploadStatusEnum { - return &e -} -func (e *UploadStatusEnum) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "UPLOADED": - fallthrough - case "NOT_UPLOADED": - fallthrough - case "STATUS_UNKNOWN": - *e = UploadStatusEnum(v) - return nil - default: - return fmt.Errorf("invalid value for UploadStatusEnum: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/user.go b/tests/mockserver/internal/sdk/models/components/user.go deleted file mode 100644 index c9309929..00000000 --- a/tests/mockserver/internal/sdk/models/components/user.go +++ /dev/null @@ -1,24 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type User struct { - // An opaque user ID for the claimed authority (i.e., the actas param, or the origid if actas is not specified). - UserID *string `json:"userID,omitempty"` - // An opaque user ID for the authenticated user (ignores actas). - OrigID *string `json:"origID,omitempty"` -} - -func (o *User) GetUserID() *string { - if o == nil { - return nil - } - return o.UserID -} - -func (o *User) GetOrigID() *string { - if o == nil { - return nil - } - return o.OrigID -} diff --git a/tests/mockserver/internal/sdk/models/components/useractivity.go b/tests/mockserver/internal/sdk/models/components/useractivity.go deleted file mode 100644 index 686d1176..00000000 --- a/tests/mockserver/internal/sdk/models/components/useractivity.go +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// UserActivityAction - The action for the activity -type UserActivityAction string - -const ( - UserActivityActionAdd UserActivityAction = "ADD" - UserActivityActionAddReminder UserActivityAction = "ADD_REMINDER" - UserActivityActionClick UserActivityAction = "CLICK" - UserActivityActionComment UserActivityAction = "COMMENT" - UserActivityActionDelete UserActivityAction = "DELETE" - UserActivityActionDismiss UserActivityAction = "DISMISS" - UserActivityActionEdit UserActivityAction = "EDIT" - UserActivityActionMention UserActivityAction = "MENTION" - UserActivityActionMove UserActivityAction = "MOVE" - UserActivityActionOther UserActivityAction = "OTHER" - UserActivityActionRestore UserActivityAction = "RESTORE" - UserActivityActionUnknown UserActivityAction = "UNKNOWN" - UserActivityActionVerify UserActivityAction = "VERIFY" - UserActivityActionView UserActivityAction = "VIEW" -) - -func (e UserActivityAction) ToPointer() *UserActivityAction { - return &e -} -func (e *UserActivityAction) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ADD": - fallthrough - case "ADD_REMINDER": - fallthrough - case "CLICK": - fallthrough - case "COMMENT": - fallthrough - case "DELETE": - fallthrough - case "DISMISS": - fallthrough - case "EDIT": - fallthrough - case "MENTION": - fallthrough - case "MOVE": - fallthrough - case "OTHER": - fallthrough - case "RESTORE": - fallthrough - case "UNKNOWN": - fallthrough - case "VERIFY": - fallthrough - case "VIEW": - *e = UserActivityAction(v) - return nil - default: - return fmt.Errorf("invalid value for UserActivityAction: %v", v) - } -} - -type UserActivity struct { - Actor *Person `json:"actor,omitempty"` - // Unix timestamp of the activity (in seconds since epoch UTC). - Timestamp *int64 `json:"timestamp,omitempty"` - // The action for the activity - Action *UserActivityAction `json:"action,omitempty"` - AggregateVisitCount *CountInfo `json:"aggregateVisitCount,omitempty"` -} - -func (o *UserActivity) GetActor() *Person { - if o == nil { - return nil - } - return o.Actor -} - -func (o *UserActivity) GetTimestamp() *int64 { - if o == nil { - return nil - } - return o.Timestamp -} - -func (o *UserActivity) GetAction() *UserActivityAction { - if o == nil { - return nil - } - return o.Action -} - -func (o *UserActivity) GetAggregateVisitCount() *CountInfo { - if o == nil { - return nil - } - return o.AggregateVisitCount -} diff --git a/tests/mockserver/internal/sdk/models/components/useractivityinsight.go b/tests/mockserver/internal/sdk/models/components/useractivityinsight.go deleted file mode 100644 index ef7cc879..00000000 --- a/tests/mockserver/internal/sdk/models/components/useractivityinsight.go +++ /dev/null @@ -1,80 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// ActivityEnum - Activity e.g. search, home page visit or all. -type ActivityEnum string - -const ( - ActivityEnumAll ActivityEnum = "ALL" - ActivityEnumSearch ActivityEnum = "SEARCH" -) - -func (e ActivityEnum) ToPointer() *ActivityEnum { - return &e -} -func (e *ActivityEnum) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ALL": - fallthrough - case "SEARCH": - *e = ActivityEnum(v) - return nil - default: - return fmt.Errorf("invalid value for ActivityEnum: %v", v) - } -} - -type UserActivityInsight struct { - User Person `json:"user"` - // Activity e.g. search, home page visit or all. - Activity ActivityEnum `json:"activity"` - // Unix timestamp of the last activity (in seconds since epoch UTC). - LastActivityTimestamp *int64 `json:"lastActivityTimestamp,omitempty"` - ActivityCount *CountInfo `json:"activityCount,omitempty"` - ActiveDayCount *CountInfo `json:"activeDayCount,omitempty"` -} - -func (o *UserActivityInsight) GetUser() Person { - if o == nil { - return Person{} - } - return o.User -} - -func (o *UserActivityInsight) GetActivity() ActivityEnum { - if o == nil { - return ActivityEnum("") - } - return o.Activity -} - -func (o *UserActivityInsight) GetLastActivityTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastActivityTimestamp -} - -func (o *UserActivityInsight) GetActivityCount() *CountInfo { - if o == nil { - return nil - } - return o.ActivityCount -} - -func (o *UserActivityInsight) GetActiveDayCount() *CountInfo { - if o == nil { - return nil - } - return o.ActiveDayCount -} diff --git a/tests/mockserver/internal/sdk/models/components/usergeneratedcontentid.go b/tests/mockserver/internal/sdk/models/components/usergeneratedcontentid.go deleted file mode 100644 index 9fc1da08..00000000 --- a/tests/mockserver/internal/sdk/models/components/usergeneratedcontentid.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type UserGeneratedContentID struct { - // The opaque id of the user generated content. - ID *int64 `json:"id,omitempty"` -} - -func (u UserGeneratedContentID) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(u, "", false) -} - -func (u *UserGeneratedContentID) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *UserGeneratedContentID) GetID() *int64 { - if o == nil { - return nil - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/userinsightsresponse.go b/tests/mockserver/internal/sdk/models/components/userinsightsresponse.go deleted file mode 100644 index 2fb26d2f..00000000 --- a/tests/mockserver/internal/sdk/models/components/userinsightsresponse.go +++ /dev/null @@ -1,60 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type UserInsightsResponse struct { - // Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - LastLogTimestamp *int64 `json:"lastLogTimestamp,omitempty"` - // Insights for all active users with respect to set of actions. - ActivityInsights []UserActivityInsight `json:"activityInsights,omitempty"` - // Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0. - InactiveInsights []UserActivityInsight `json:"inactiveInsights,omitempty"` - // Total number of teammates that have logged in to the product, that are still valid teammates. - TotalTeammates *int64 `json:"totalTeammates,omitempty"` - // Total number of active users in the requested period. - TotalActiveUsers *int64 `json:"totalActiveUsers,omitempty"` - // list of departments applicable for users tab. - Departments []string `json:"departments,omitempty"` -} - -func (o *UserInsightsResponse) GetLastLogTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastLogTimestamp -} - -func (o *UserInsightsResponse) GetActivityInsights() []UserActivityInsight { - if o == nil { - return nil - } - return o.ActivityInsights -} - -func (o *UserInsightsResponse) GetInactiveInsights() []UserActivityInsight { - if o == nil { - return nil - } - return o.InactiveInsights -} - -func (o *UserInsightsResponse) GetTotalTeammates() *int64 { - if o == nil { - return nil - } - return o.TotalTeammates -} - -func (o *UserInsightsResponse) GetTotalActiveUsers() *int64 { - if o == nil { - return nil - } - return o.TotalActiveUsers -} - -func (o *UserInsightsResponse) GetDepartments() []string { - if o == nil { - return nil - } - return o.Departments -} diff --git a/tests/mockserver/internal/sdk/models/components/userreferencedefinition.go b/tests/mockserver/internal/sdk/models/components/userreferencedefinition.go deleted file mode 100644 index 29153dad..00000000 --- a/tests/mockserver/internal/sdk/models/components/userreferencedefinition.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// UserReferenceDefinition - Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. -type UserReferenceDefinition struct { - Email *string `json:"email,omitempty"` - // some datasources refer to the user by the datasource user id in the document - DatasourceUserID *string `json:"datasourceUserId,omitempty"` - Name *string `json:"name,omitempty"` -} - -func (o *UserReferenceDefinition) GetEmail() *string { - if o == nil { - return nil - } - return o.Email -} - -func (o *UserReferenceDefinition) GetDatasourceUserID() *string { - if o == nil { - return nil - } - return o.DatasourceUserID -} - -func (o *UserReferenceDefinition) GetName() *string { - if o == nil { - return nil - } - return o.Name -} diff --git a/tests/mockserver/internal/sdk/models/components/userrole.go b/tests/mockserver/internal/sdk/models/components/userrole.go deleted file mode 100644 index 7697e0b0..00000000 --- a/tests/mockserver/internal/sdk/models/components/userrole.go +++ /dev/null @@ -1,44 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// UserRole - A user's role with respect to a specific document. -type UserRole string - -const ( - UserRoleOwner UserRole = "OWNER" - UserRoleViewer UserRole = "VIEWER" - UserRoleAnswerModerator UserRole = "ANSWER_MODERATOR" - UserRoleEditor UserRole = "EDITOR" - UserRoleVerifier UserRole = "VERIFIER" -) - -func (e UserRole) ToPointer() *UserRole { - return &e -} -func (e *UserRole) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "OWNER": - fallthrough - case "VIEWER": - fallthrough - case "ANSWER_MODERATOR": - fallthrough - case "EDITOR": - fallthrough - case "VERIFIER": - *e = UserRole(v) - return nil - default: - return fmt.Errorf("invalid value for UserRole: %v", v) - } -} diff --git a/tests/mockserver/internal/sdk/models/components/userrolespecification.go b/tests/mockserver/internal/sdk/models/components/userrolespecification.go deleted file mode 100644 index 6e478462..00000000 --- a/tests/mockserver/internal/sdk/models/components/userrolespecification.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type UserRoleSpecification struct { - SourceDocumentSpec *DocumentSpecUnion `json:"sourceDocumentSpec,omitempty"` - Person *Person `json:"person,omitempty"` - Group *Group `json:"group,omitempty"` - // A user's role with respect to a specific document. - Role UserRole `json:"role"` -} - -func (u UserRoleSpecification) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(u, "", false) -} - -func (u *UserRoleSpecification) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &u, "", false, []string{"role"}); err != nil { - return err - } - return nil -} - -func (o *UserRoleSpecification) GetSourceDocumentSpec() *DocumentSpecUnion { - if o == nil { - return nil - } - return o.SourceDocumentSpec -} - -func (o *UserRoleSpecification) GetPerson() *Person { - if o == nil { - return nil - } - return o.Person -} - -func (o *UserRoleSpecification) GetGroup() *Group { - if o == nil { - return nil - } - return o.Group -} - -func (o *UserRoleSpecification) GetRole() UserRole { - if o == nil { - return UserRole("") - } - return o.Role -} diff --git a/tests/mockserver/internal/sdk/models/components/userstatusresponse.go b/tests/mockserver/internal/sdk/models/components/userstatusresponse.go deleted file mode 100644 index 7457001c..00000000 --- a/tests/mockserver/internal/sdk/models/components/userstatusresponse.go +++ /dev/null @@ -1,34 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -// UserStatusResponse - Describes the user status response body -type UserStatusResponse struct { - // Whether the user is active or not - IsActiveUser *bool `json:"isActiveUser,omitempty"` - // Upload status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN - UploadStatus *UploadStatusEnum `json:"uploadStatus,omitempty"` - // Time of last successful upload for the user, in ISO 8601 format - LastUploadedAt *string `json:"lastUploadedAt,omitempty"` -} - -func (o *UserStatusResponse) GetIsActiveUser() *bool { - if o == nil { - return nil - } - return o.IsActiveUser -} - -func (o *UserStatusResponse) GetUploadStatus() *UploadStatusEnum { - if o == nil { - return nil - } - return o.UploadStatus -} - -func (o *UserStatusResponse) GetLastUploadedAt() *string { - if o == nil { - return nil - } - return o.LastUploadedAt -} diff --git a/tests/mockserver/internal/sdk/models/components/userviewinfo.go b/tests/mockserver/internal/sdk/models/components/userviewinfo.go deleted file mode 100644 index e256289a..00000000 --- a/tests/mockserver/internal/sdk/models/components/userviewinfo.go +++ /dev/null @@ -1,33 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type UserViewInfo struct { - // Unique Glean Document ID of the associated document. - DocID *string `json:"docId,omitempty"` - // Title of associated document. - DocTitle *string `json:"docTitle,omitempty"` - // URL of associated document. - DocURL *string `json:"docUrl,omitempty"` -} - -func (o *UserViewInfo) GetDocID() *string { - if o == nil { - return nil - } - return o.DocID -} - -func (o *UserViewInfo) GetDocTitle() *string { - if o == nil { - return nil - } - return o.DocTitle -} - -func (o *UserViewInfo) GetDocURL() *string { - if o == nil { - return nil - } - return o.DocURL -} diff --git a/tests/mockserver/internal/sdk/models/components/verification.go b/tests/mockserver/internal/sdk/models/components/verification.go deleted file mode 100644 index e5d1b407..00000000 --- a/tests/mockserver/internal/sdk/models/components/verification.go +++ /dev/null @@ -1,70 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" -) - -// State - The verification state for the document. -type State string - -const ( - StateUnverified State = "UNVERIFIED" - StateVerified State = "VERIFIED" - StateDeprecated State = "DEPRECATED" -) - -func (e State) ToPointer() *State { - return &e -} -func (e *State) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "UNVERIFIED": - fallthrough - case "VERIFIED": - fallthrough - case "DEPRECATED": - *e = State(v) - return nil - default: - return fmt.Errorf("invalid value for State: %v", v) - } -} - -type Verification struct { - // The verification state for the document. - State State `json:"state"` - Metadata *VerificationMetadata `json:"metadata,omitempty"` -} - -func (v Verification) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(v, "", false) -} - -func (v *Verification) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &v, "", false, []string{"state"}); err != nil { - return err - } - return nil -} - -func (o *Verification) GetState() State { - if o == nil { - return State("") - } - return o.State -} - -func (o *Verification) GetMetadata() *VerificationMetadata { - if o == nil { - return nil - } - return o.Metadata -} diff --git a/tests/mockserver/internal/sdk/models/components/verificationfeed.go b/tests/mockserver/internal/sdk/models/components/verificationfeed.go deleted file mode 100644 index 74a08b65..00000000 --- a/tests/mockserver/internal/sdk/models/components/verificationfeed.go +++ /dev/null @@ -1,15 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type VerificationFeed struct { - // List of document infos that include verification related information for them. - Documents []Verification `json:"documents,omitempty"` -} - -func (o *VerificationFeed) GetDocuments() []Verification { - if o == nil { - return nil - } - return o.Documents -} diff --git a/tests/mockserver/internal/sdk/models/components/verificationmetadata.go b/tests/mockserver/internal/sdk/models/components/verificationmetadata.go deleted file mode 100644 index 1d77b47c..00000000 --- a/tests/mockserver/internal/sdk/models/components/verificationmetadata.go +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -type VerificationMetadata struct { - LastVerifier *Person `json:"lastVerifier,omitempty"` - // The unix timestamp of the verification (in seconds since epoch UTC). - LastVerificationTs *int64 `json:"lastVerificationTs,omitempty"` - // The unix timestamp of the verification expiration if applicable (in seconds since epoch UTC). - ExpirationTs *int64 `json:"expirationTs,omitempty"` - Document *Document `json:"document,omitempty"` - // Info about all outstanding verification reminders for the document if exists. - Reminders []Reminder `json:"reminders,omitempty"` - LastReminder *Reminder `json:"lastReminder,omitempty"` - // Number of visitors to the document during included time periods. - VisitorCount []CountInfo `json:"visitorCount,omitempty"` - // List of potential verifiers for the document e.g. old verifiers and/or users with view/edit permissions. - CandidateVerifiers []Person `json:"candidateVerifiers,omitempty"` -} - -func (v VerificationMetadata) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(v, "", false) -} - -func (v *VerificationMetadata) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &v, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *VerificationMetadata) GetLastVerifier() *Person { - if o == nil { - return nil - } - return o.LastVerifier -} - -func (o *VerificationMetadata) GetLastVerificationTs() *int64 { - if o == nil { - return nil - } - return o.LastVerificationTs -} - -func (o *VerificationMetadata) GetExpirationTs() *int64 { - if o == nil { - return nil - } - return o.ExpirationTs -} - -func (o *VerificationMetadata) GetDocument() *Document { - if o == nil { - return nil - } - return o.Document -} - -func (o *VerificationMetadata) GetReminders() []Reminder { - if o == nil { - return nil - } - return o.Reminders -} - -func (o *VerificationMetadata) GetLastReminder() *Reminder { - if o == nil { - return nil - } - return o.LastReminder -} - -func (o *VerificationMetadata) GetVisitorCount() []CountInfo { - if o == nil { - return nil - } - return o.VisitorCount -} - -func (o *VerificationMetadata) GetCandidateVerifiers() []Person { - if o == nil { - return nil - } - return o.CandidateVerifiers -} diff --git a/tests/mockserver/internal/sdk/models/components/verifyrequest.go b/tests/mockserver/internal/sdk/models/components/verifyrequest.go deleted file mode 100644 index 18059e0b..00000000 --- a/tests/mockserver/internal/sdk/models/components/verifyrequest.go +++ /dev/null @@ -1,59 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// VerifyRequestAction - The verification action requested. -type VerifyRequestAction string - -const ( - VerifyRequestActionVerify VerifyRequestAction = "VERIFY" - VerifyRequestActionDeprecate VerifyRequestAction = "DEPRECATE" - VerifyRequestActionUnverify VerifyRequestAction = "UNVERIFY" -) - -func (e VerifyRequestAction) ToPointer() *VerifyRequestAction { - return &e -} -func (e *VerifyRequestAction) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "VERIFY": - fallthrough - case "DEPRECATE": - fallthrough - case "UNVERIFY": - *e = VerifyRequestAction(v) - return nil - default: - return fmt.Errorf("invalid value for VerifyRequestAction: %v", v) - } -} - -type VerifyRequest struct { - // The document which is verified. - DocumentID string `json:"documentId"` - // The verification action requested. - Action *VerifyRequestAction `json:"action,omitempty"` -} - -func (o *VerifyRequest) GetDocumentID() string { - if o == nil { - return "" - } - return o.DocumentID -} - -func (o *VerifyRequest) GetAction() *VerifyRequestAction { - if o == nil { - return nil - } - return o.Action -} diff --git a/tests/mockserver/internal/sdk/models/components/viewerinfo.go b/tests/mockserver/internal/sdk/models/components/viewerinfo.go deleted file mode 100644 index 1f310364..00000000 --- a/tests/mockserver/internal/sdk/models/components/viewerinfo.go +++ /dev/null @@ -1,75 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" - "mockserver/internal/sdk/utils" - "time" -) - -// Role - DEPRECATED - use permissions instead. Viewer's role on the specific document. -// -// Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. -type Role string - -const ( - RoleAnswerModerator Role = "ANSWER_MODERATOR" - RoleOwner Role = "OWNER" - RoleViewer Role = "VIEWER" -) - -func (e Role) ToPointer() *Role { - return &e -} -func (e *Role) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ANSWER_MODERATOR": - fallthrough - case "OWNER": - fallthrough - case "VIEWER": - *e = Role(v) - return nil - default: - return fmt.Errorf("invalid value for Role: %v", v) - } -} - -type ViewerInfo struct { - // DEPRECATED - use permissions instead. Viewer's role on the specific document. - // - // Deprecated: This will be removed in a future release, please migrate away from it as soon as possible. - Role *Role `json:"role,omitempty"` - LastViewedTime *time.Time `json:"lastViewedTime,omitempty"` -} - -func (v ViewerInfo) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(v, "", false) -} - -func (v *ViewerInfo) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &v, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *ViewerInfo) GetRole() *Role { - if o == nil { - return nil - } - return o.Role -} - -func (o *ViewerInfo) GetLastViewedTime() *time.Time { - if o == nil { - return nil - } - return o.LastViewedTime -} diff --git a/tests/mockserver/internal/sdk/models/components/workflow.go b/tests/mockserver/internal/sdk/models/components/workflow.go deleted file mode 100644 index 4d9b678b..00000000 --- a/tests/mockserver/internal/sdk/models/components/workflow.go +++ /dev/null @@ -1,66 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type Workflow struct { - // The name of the workflow. - Name *string `json:"name,omitempty"` - Author *Person `json:"author,omitempty"` - // Server Unix timestamp of the creation time. - CreateTimestamp *int64 `json:"createTimestamp,omitempty"` - // Server Unix timestamp of the last update time. - LastUpdateTimestamp *int64 `json:"lastUpdateTimestamp,omitempty"` - LastUpdatedBy *Person `json:"lastUpdatedBy,omitempty"` - Permissions *ObjectPermissions `json:"permissions,omitempty"` - // The ID of the workflow. - ID *string `json:"id,omitempty"` -} - -func (o *Workflow) GetName() *string { - if o == nil { - return nil - } - return o.Name -} - -func (o *Workflow) GetAuthor() *Person { - if o == nil { - return nil - } - return o.Author -} - -func (o *Workflow) GetCreateTimestamp() *int64 { - if o == nil { - return nil - } - return o.CreateTimestamp -} - -func (o *Workflow) GetLastUpdateTimestamp() *int64 { - if o == nil { - return nil - } - return o.LastUpdateTimestamp -} - -func (o *Workflow) GetLastUpdatedBy() *Person { - if o == nil { - return nil - } - return o.LastUpdatedBy -} - -func (o *Workflow) GetPermissions() *ObjectPermissions { - if o == nil { - return nil - } - return o.Permissions -} - -func (o *Workflow) GetID() *string { - if o == nil { - return nil - } - return o.ID -} diff --git a/tests/mockserver/internal/sdk/models/components/workflowfeedbackinfo.go b/tests/mockserver/internal/sdk/models/components/workflowfeedbackinfo.go deleted file mode 100644 index e13579ac..00000000 --- a/tests/mockserver/internal/sdk/models/components/workflowfeedbackinfo.go +++ /dev/null @@ -1,50 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// WorkflowFeedbackInfoSource - Where the feedback of the workflow originated from -type WorkflowFeedbackInfoSource string - -const ( - WorkflowFeedbackInfoSourceZeroState WorkflowFeedbackInfoSource = "ZERO_STATE" - WorkflowFeedbackInfoSourceLibrary WorkflowFeedbackInfoSource = "LIBRARY" - WorkflowFeedbackInfoSourceHomepage WorkflowFeedbackInfoSource = "HOMEPAGE" -) - -func (e WorkflowFeedbackInfoSource) ToPointer() *WorkflowFeedbackInfoSource { - return &e -} -func (e *WorkflowFeedbackInfoSource) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "ZERO_STATE": - fallthrough - case "LIBRARY": - fallthrough - case "HOMEPAGE": - *e = WorkflowFeedbackInfoSource(v) - return nil - default: - return fmt.Errorf("invalid value for WorkflowFeedbackInfoSource: %v", v) - } -} - -type WorkflowFeedbackInfo struct { - // Where the feedback of the workflow originated from - Source *WorkflowFeedbackInfoSource `json:"source,omitempty"` -} - -func (o *WorkflowFeedbackInfo) GetSource() *WorkflowFeedbackInfoSource { - if o == nil { - return nil - } - return o.Source -} diff --git a/tests/mockserver/internal/sdk/models/components/workflowresult.go b/tests/mockserver/internal/sdk/models/components/workflowresult.go deleted file mode 100644 index 63529735..00000000 --- a/tests/mockserver/internal/sdk/models/components/workflowresult.go +++ /dev/null @@ -1,14 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -type WorkflowResult struct { - Workflow Workflow `json:"workflow"` -} - -func (o *WorkflowResult) GetWorkflow() Workflow { - if o == nil { - return Workflow{} - } - return o.Workflow -} diff --git a/tests/mockserver/internal/sdk/models/components/writeactionparameter.go b/tests/mockserver/internal/sdk/models/components/writeactionparameter.go deleted file mode 100644 index de5e3bb3..00000000 --- a/tests/mockserver/internal/sdk/models/components/writeactionparameter.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "encoding/json" - "fmt" -) - -// WriteActionParameterType - The type of the value (e.g., integer, string, boolean, etc.) -type WriteActionParameterType string - -const ( - WriteActionParameterTypeUnknown WriteActionParameterType = "UNKNOWN" - WriteActionParameterTypeInteger WriteActionParameterType = "INTEGER" - WriteActionParameterTypeString WriteActionParameterType = "STRING" - WriteActionParameterTypeBoolean WriteActionParameterType = "BOOLEAN" -) - -func (e WriteActionParameterType) ToPointer() *WriteActionParameterType { - return &e -} -func (e *WriteActionParameterType) UnmarshalJSON(data []byte) error { - var v string - if err := json.Unmarshal(data, &v); err != nil { - return err - } - switch v { - case "UNKNOWN": - fallthrough - case "INTEGER": - fallthrough - case "STRING": - fallthrough - case "BOOLEAN": - *e = WriteActionParameterType(v) - return nil - default: - return fmt.Errorf("invalid value for WriteActionParameterType: %v", v) - } -} - -type WriteActionParameter struct { - // The type of the value (e.g., integer, string, boolean, etc.) - Type *WriteActionParameterType `json:"type,omitempty"` - // Human readable display name for the key. - DisplayName *string `json:"displayName,omitempty"` - // The value of the field. - Value *string `json:"value,omitempty"` - // Is the parameter a required field. - IsRequired *bool `json:"isRequired,omitempty"` - // Description of the parameter. - Description *string `json:"description,omitempty"` - // Possible values that the parameter can take. - PossibleValues []PossibleValue `json:"possibleValues,omitempty"` -} - -func (o *WriteActionParameter) GetType() *WriteActionParameterType { - if o == nil { - return nil - } - return o.Type -} - -func (o *WriteActionParameter) GetDisplayName() *string { - if o == nil { - return nil - } - return o.DisplayName -} - -func (o *WriteActionParameter) GetValue() *string { - if o == nil { - return nil - } - return o.Value -} - -func (o *WriteActionParameter) GetIsRequired() *bool { - if o == nil { - return nil - } - return o.IsRequired -} - -func (o *WriteActionParameter) GetDescription() *string { - if o == nil { - return nil - } - return o.Description -} - -func (o *WriteActionParameter) GetPossibleValues() []PossibleValue { - if o == nil { - return nil - } - return o.PossibleValues -} diff --git a/tests/mockserver/internal/sdk/models/components/writepermission.go b/tests/mockserver/internal/sdk/models/components/writepermission.go deleted file mode 100644 index 66f1973b..00000000 --- a/tests/mockserver/internal/sdk/models/components/writepermission.go +++ /dev/null @@ -1,58 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package components - -import ( - "mockserver/internal/sdk/utils" -) - -// WritePermission - Describes the write permissions levels that a user has for a specific feature -type WritePermission struct { - // Describes the scope for a ReadPermission, WritePermission, or GrantPermission object - ScopeType *ScopeType `json:"scopeType,omitempty"` - // True if user has create permission for this feature and scope - Create *bool `json:"create,omitempty"` - // True if user has update permission for this feature and scope - Update *bool `json:"update,omitempty"` - // True if user has delete permission for this feature and scope - Delete *bool `json:"delete,omitempty"` -} - -func (w WritePermission) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(w, "", false) -} - -func (w *WritePermission) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &w, "", false, nil); err != nil { - return err - } - return nil -} - -func (o *WritePermission) GetScopeType() *ScopeType { - if o == nil { - return nil - } - return o.ScopeType -} - -func (o *WritePermission) GetCreate() *bool { - if o == nil { - return nil - } - return o.Create -} - -func (o *WritePermission) GetUpdate() *bool { - if o == nil { - return nil - } - return o.Update -} - -func (o *WritePermission) GetDelete() *bool { - if o == nil { - return nil - } - return o.Delete -} diff --git a/tests/mockserver/internal/sdk/models/operations/activity.go b/tests/mockserver/internal/sdk/models/operations/activity.go deleted file mode 100644 index fbeadfb6..00000000 --- a/tests/mockserver/internal/sdk/models/operations/activity.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type ActivityResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *ActivityResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/addcollectionitems.go b/tests/mockserver/internal/sdk/models/operations/addcollectionitems.go deleted file mode 100644 index fd74638a..00000000 --- a/tests/mockserver/internal/sdk/models/operations/addcollectionitems.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type AddcollectionitemsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - AddCollectionItemsResponse *components.AddCollectionItemsResponse -} - -func (o *AddcollectionitemsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *AddcollectionitemsResponse) GetAddCollectionItemsResponse() *components.AddCollectionItemsResponse { - if o == nil { - return nil - } - return o.AddCollectionItemsResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/addverificationreminder.go b/tests/mockserver/internal/sdk/models/operations/addverificationreminder.go deleted file mode 100644 index fb8ab5ad..00000000 --- a/tests/mockserver/internal/sdk/models/operations/addverificationreminder.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type AddverificationreminderResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - Verification *components.Verification -} - -func (o *AddverificationreminderResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *AddverificationreminderResponse) GetVerification() *components.Verification { - if o == nil { - return nil - } - return o.Verification -} diff --git a/tests/mockserver/internal/sdk/models/operations/adminsearch.go b/tests/mockserver/internal/sdk/models/operations/adminsearch.go deleted file mode 100644 index 3a9fc431..00000000 --- a/tests/mockserver/internal/sdk/models/operations/adminsearch.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type AdminsearchResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - SearchResponse *components.SearchResponse -} - -func (o *AdminsearchResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *AdminsearchResponse) GetSearchResponse() *components.SearchResponse { - if o == nil { - return nil - } - return o.SearchResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/autocomplete.go b/tests/mockserver/internal/sdk/models/operations/autocomplete.go deleted file mode 100644 index 106f5474..00000000 --- a/tests/mockserver/internal/sdk/models/operations/autocomplete.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type AutocompleteResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - AutocompleteResponse *components.AutocompleteResponse -} - -func (o *AutocompleteResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *AutocompleteResponse) GetAutocompleteResponse() *components.AutocompleteResponse { - if o == nil { - return nil - } - return o.AutocompleteResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/chat.go b/tests/mockserver/internal/sdk/models/operations/chat.go deleted file mode 100644 index 4f0f7fb1..00000000 --- a/tests/mockserver/internal/sdk/models/operations/chat.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type ChatRequest struct { - // 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) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *ChatRequest) GetChatRequest() components.ChatRequest { - if o == nil { - return components.ChatRequest{} - } - return o.ChatRequest -} - -type ChatResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - ChatResponse *components.ChatResponse -} - -func (o *ChatResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *ChatResponse) GetChatResponse() *components.ChatResponse { - if o == nil { - return nil - } - return o.ChatResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/chatstream.go b/tests/mockserver/internal/sdk/models/operations/chatstream.go deleted file mode 100644 index a8d81d42..00000000 --- a/tests/mockserver/internal/sdk/models/operations/chatstream.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type ChatStreamRequest struct { - // 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 *ChatStreamRequest) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *ChatStreamRequest) GetChatRequest() components.ChatRequest { - if o == nil { - return components.ChatRequest{} - } - return o.ChatRequest -} - -type ChatStreamResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - ChatRequestStream *string -} - -func (o *ChatStreamResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *ChatStreamResponse) GetChatRequestStream() *string { - if o == nil { - return nil - } - return o.ChatRequestStream -} diff --git a/tests/mockserver/internal/sdk/models/operations/createandstreamrun.go b/tests/mockserver/internal/sdk/models/operations/createandstreamrun.go deleted file mode 100644 index 0dbe446c..00000000 --- a/tests/mockserver/internal/sdk/models/operations/createandstreamrun.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type CreateAndStreamRunResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // Success - Res *string -} - -func (o *CreateAndStreamRunResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *CreateAndStreamRunResponse) GetRes() *string { - if o == nil { - return nil - } - return o.Res -} diff --git a/tests/mockserver/internal/sdk/models/operations/createandwaitrun.go b/tests/mockserver/internal/sdk/models/operations/createandwaitrun.go deleted file mode 100644 index 7286ef64..00000000 --- a/tests/mockserver/internal/sdk/models/operations/createandwaitrun.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type CreateAndWaitRunResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // Success - AgentRunWaitResponse *components.AgentRunWaitResponse -} - -func (o *CreateAndWaitRunResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *CreateAndWaitRunResponse) GetAgentRunWaitResponse() *components.AgentRunWaitResponse { - if o == nil { - return nil - } - return o.AgentRunWaitResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/createannouncement.go b/tests/mockserver/internal/sdk/models/operations/createannouncement.go deleted file mode 100644 index 86d9ba17..00000000 --- a/tests/mockserver/internal/sdk/models/operations/createannouncement.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type CreateannouncementResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - Announcement *components.Announcement -} - -func (o *CreateannouncementResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *CreateannouncementResponse) GetAnnouncement() *components.Announcement { - if o == nil { - return nil - } - return o.Announcement -} diff --git a/tests/mockserver/internal/sdk/models/operations/createanswer.go b/tests/mockserver/internal/sdk/models/operations/createanswer.go deleted file mode 100644 index 8abc5c94..00000000 --- a/tests/mockserver/internal/sdk/models/operations/createanswer.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type CreateanswerResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - Answer *components.Answer -} - -func (o *CreateanswerResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *CreateanswerResponse) GetAnswer() *components.Answer { - if o == nil { - return nil - } - return o.Answer -} diff --git a/tests/mockserver/internal/sdk/models/operations/createauthtoken.go b/tests/mockserver/internal/sdk/models/operations/createauthtoken.go deleted file mode 100644 index be32a0f3..00000000 --- a/tests/mockserver/internal/sdk/models/operations/createauthtoken.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type CreateauthtokenResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - CreateAuthTokenResponse *components.CreateAuthTokenResponse -} - -func (o *CreateauthtokenResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *CreateauthtokenResponse) GetCreateAuthTokenResponse() *components.CreateAuthTokenResponse { - if o == nil { - return nil - } - return o.CreateAuthTokenResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/createcollection.go b/tests/mockserver/internal/sdk/models/operations/createcollection.go deleted file mode 100644 index 04eaedbc..00000000 --- a/tests/mockserver/internal/sdk/models/operations/createcollection.go +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "errors" - "fmt" - "mockserver/internal/sdk/models/components" - "mockserver/internal/sdk/utils" -) - -type ResponseBody2 struct { - Collection *components.Collection `json:"collection,omitempty"` - Error components.CollectionError `json:"error"` -} - -func (r ResponseBody2) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *ResponseBody2) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, []string{"error"}); err != nil { - return err - } - return nil -} - -func (o *ResponseBody2) GetCollection() *components.Collection { - if o == nil { - return nil - } - return o.Collection -} - -func (o *ResponseBody2) GetError() components.CollectionError { - if o == nil { - return components.CollectionError{} - } - return o.Error -} - -type ResponseBody1 struct { - Collection components.Collection `json:"collection"` - Error *components.CollectionError `json:"error,omitempty"` -} - -func (r ResponseBody1) MarshalJSON() ([]byte, error) { - return utils.MarshalJSON(r, "", false) -} - -func (r *ResponseBody1) UnmarshalJSON(data []byte) error { - if err := utils.UnmarshalJSON(data, &r, "", false, []string{"collection"}); err != nil { - return err - } - return nil -} - -func (o *ResponseBody1) GetCollection() components.Collection { - if o == nil { - return components.Collection{} - } - return o.Collection -} - -func (o *ResponseBody1) GetError() *components.CollectionError { - if o == nil { - return nil - } - return o.Error -} - -type CreatecollectionResponseBodyType string - -const ( - CreatecollectionResponseBodyTypeResponseBody1 CreatecollectionResponseBodyType = "ResponseBody_1" - CreatecollectionResponseBodyTypeResponseBody2 CreatecollectionResponseBodyType = "ResponseBody_2" -) - -// CreatecollectionResponseBody - OK -type CreatecollectionResponseBody struct { - ResponseBody1 *ResponseBody1 `queryParam:"inline"` - ResponseBody2 *ResponseBody2 `queryParam:"inline"` - - Type CreatecollectionResponseBodyType -} - -func CreateCreatecollectionResponseBodyResponseBody1(responseBody1 ResponseBody1) CreatecollectionResponseBody { - typ := CreatecollectionResponseBodyTypeResponseBody1 - - return CreatecollectionResponseBody{ - ResponseBody1: &responseBody1, - Type: typ, - } -} - -func CreateCreatecollectionResponseBodyResponseBody2(responseBody2 ResponseBody2) CreatecollectionResponseBody { - typ := CreatecollectionResponseBodyTypeResponseBody2 - - return CreatecollectionResponseBody{ - ResponseBody2: &responseBody2, - Type: typ, - } -} - -func (u *CreatecollectionResponseBody) UnmarshalJSON(data []byte) error { - - var responseBody1 ResponseBody1 = ResponseBody1{} - if err := utils.UnmarshalJSON(data, &responseBody1, "", true, nil); err == nil { - u.ResponseBody1 = &responseBody1 - u.Type = CreatecollectionResponseBodyTypeResponseBody1 - return nil - } - - var responseBody2 ResponseBody2 = ResponseBody2{} - if err := utils.UnmarshalJSON(data, &responseBody2, "", true, nil); err == nil { - u.ResponseBody2 = &responseBody2 - u.Type = CreatecollectionResponseBodyTypeResponseBody2 - return nil - } - - return fmt.Errorf("could not unmarshal `%s` into any supported union types for CreatecollectionResponseBody", string(data)) -} - -func (u CreatecollectionResponseBody) MarshalJSON() ([]byte, error) { - if u.ResponseBody1 != nil { - return utils.MarshalJSON(u.ResponseBody1, "", true) - } - - if u.ResponseBody2 != nil { - return utils.MarshalJSON(u.ResponseBody2, "", true) - } - - return nil, errors.New("could not marshal union type CreatecollectionResponseBody: all fields are null") -} - -type CreatecollectionResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - OneOf *CreatecollectionResponseBody -} - -func (o *CreatecollectionResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *CreatecollectionResponse) GetOneOf() *CreatecollectionResponseBody { - if o == nil { - return nil - } - return o.OneOf -} diff --git a/tests/mockserver/internal/sdk/models/operations/createpolicy.go b/tests/mockserver/internal/sdk/models/operations/createpolicy.go deleted file mode 100644 index d0c5b8e1..00000000 --- a/tests/mockserver/internal/sdk/models/operations/createpolicy.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type CreatepolicyResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - CreateDlpReportResponse *components.CreateDlpReportResponse -} - -func (o *CreatepolicyResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *CreatepolicyResponse) GetCreateDlpReportResponse() *components.CreateDlpReportResponse { - if o == nil { - return nil - } - return o.CreateDlpReportResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/createreport.go b/tests/mockserver/internal/sdk/models/operations/createreport.go deleted file mode 100644 index 7a9d07ab..00000000 --- a/tests/mockserver/internal/sdk/models/operations/createreport.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type CreatereportResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - UpdateDlpConfigResponse *components.UpdateDlpConfigResponse -} - -func (o *CreatereportResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *CreatereportResponse) GetUpdateDlpConfigResponse() *components.UpdateDlpConfigResponse { - if o == nil { - return nil - } - return o.UpdateDlpConfigResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/createshortcut.go b/tests/mockserver/internal/sdk/models/operations/createshortcut.go deleted file mode 100644 index b17cc638..00000000 --- a/tests/mockserver/internal/sdk/models/operations/createshortcut.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type CreateshortcutResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - CreateShortcutResponse *components.CreateShortcutResponse -} - -func (o *CreateshortcutResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *CreateshortcutResponse) GetCreateShortcutResponse() *components.CreateShortcutResponse { - if o == nil { - return nil - } - return o.CreateShortcutResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/deleteallchats.go b/tests/mockserver/internal/sdk/models/operations/deleteallchats.go deleted file mode 100644 index d28cebb1..00000000 --- a/tests/mockserver/internal/sdk/models/operations/deleteallchats.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type DeleteallchatsRequest struct { - // 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) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -type DeleteallchatsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *DeleteallchatsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/deleteannouncement.go b/tests/mockserver/internal/sdk/models/operations/deleteannouncement.go deleted file mode 100644 index 774b4d1f..00000000 --- a/tests/mockserver/internal/sdk/models/operations/deleteannouncement.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type DeleteannouncementResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *DeleteannouncementResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/deleteanswer.go b/tests/mockserver/internal/sdk/models/operations/deleteanswer.go deleted file mode 100644 index 46b181b2..00000000 --- a/tests/mockserver/internal/sdk/models/operations/deleteanswer.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type DeleteanswerResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *DeleteanswerResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/deletechatfiles.go b/tests/mockserver/internal/sdk/models/operations/deletechatfiles.go deleted file mode 100644 index 0d3acc15..00000000 --- a/tests/mockserver/internal/sdk/models/operations/deletechatfiles.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type DeletechatfilesRequest struct { - // 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) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *DeletechatfilesRequest) GetDeleteChatFilesRequest() components.DeleteChatFilesRequest { - if o == nil { - return components.DeleteChatFilesRequest{} - } - return o.DeleteChatFilesRequest -} - -type DeletechatfilesResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *DeletechatfilesResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/deletechats.go b/tests/mockserver/internal/sdk/models/operations/deletechats.go deleted file mode 100644 index a3f3f497..00000000 --- a/tests/mockserver/internal/sdk/models/operations/deletechats.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type DeletechatsRequest struct { - // 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) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *DeletechatsRequest) GetDeleteChatsRequest() components.DeleteChatsRequest { - if o == nil { - return components.DeleteChatsRequest{} - } - return o.DeleteChatsRequest -} - -type DeletechatsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *DeletechatsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/deletecollection.go b/tests/mockserver/internal/sdk/models/operations/deletecollection.go deleted file mode 100644 index b21f01fa..00000000 --- a/tests/mockserver/internal/sdk/models/operations/deletecollection.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type DeletecollectionResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *DeletecollectionResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/deletecollectionitem.go b/tests/mockserver/internal/sdk/models/operations/deletecollectionitem.go deleted file mode 100644 index f9b6a404..00000000 --- a/tests/mockserver/internal/sdk/models/operations/deletecollectionitem.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type DeletecollectionitemResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - DeleteCollectionItemResponse *components.DeleteCollectionItemResponse -} - -func (o *DeletecollectionitemResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *DeletecollectionitemResponse) GetDeleteCollectionItemResponse() *components.DeleteCollectionItemResponse { - if o == nil { - return nil - } - return o.DeleteCollectionItemResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/deleteshortcut.go b/tests/mockserver/internal/sdk/models/operations/deleteshortcut.go deleted file mode 100644 index 03a740b6..00000000 --- a/tests/mockserver/internal/sdk/models/operations/deleteshortcut.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type DeleteshortcutResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *DeleteshortcutResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/downloadpolicycsv.go b/tests/mockserver/internal/sdk/models/operations/downloadpolicycsv.go deleted file mode 100644 index f11d56e2..00000000 --- a/tests/mockserver/internal/sdk/models/operations/downloadpolicycsv.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type DownloadpolicycsvRequest struct { - // The id of the policy to download violations for. - ID string `pathParam:"style=simple,explode=false,name=id"` -} - -func (o *DownloadpolicycsvRequest) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -type DownloadpolicycsvResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // Downloads csv of batch policy violations. - Res *string -} - -func (o *DownloadpolicycsvResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *DownloadpolicycsvResponse) GetRes() *string { - if o == nil { - return nil - } - return o.Res -} diff --git a/tests/mockserver/internal/sdk/models/operations/downloadreportcsv.go b/tests/mockserver/internal/sdk/models/operations/downloadreportcsv.go deleted file mode 100644 index 40814b93..00000000 --- a/tests/mockserver/internal/sdk/models/operations/downloadreportcsv.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type DownloadreportcsvRequest struct { - // The id of the report to download violations for. - ID string `pathParam:"style=simple,explode=false,name=id"` -} - -func (o *DownloadreportcsvRequest) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -type DownloadreportcsvResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // Downloads csv of one-time report violations. - Res *string -} - -func (o *DownloadreportcsvResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *DownloadreportcsvResponse) GetRes() *string { - if o == nil { - return nil - } - return o.Res -} diff --git a/tests/mockserver/internal/sdk/models/operations/editanswer.go b/tests/mockserver/internal/sdk/models/operations/editanswer.go deleted file mode 100644 index 92a67c43..00000000 --- a/tests/mockserver/internal/sdk/models/operations/editanswer.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type EditanswerResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - Answer *components.Answer -} - -func (o *EditanswerResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *EditanswerResponse) GetAnswer() *components.Answer { - if o == nil { - return nil - } - return o.Answer -} diff --git a/tests/mockserver/internal/sdk/models/operations/editcollection.go b/tests/mockserver/internal/sdk/models/operations/editcollection.go deleted file mode 100644 index 6b17b377..00000000 --- a/tests/mockserver/internal/sdk/models/operations/editcollection.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type EditcollectionResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - EditCollectionResponse *components.EditCollectionResponse -} - -func (o *EditcollectionResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *EditcollectionResponse) GetEditCollectionResponse() *components.EditCollectionResponse { - if o == nil { - return nil - } - return o.EditCollectionResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/editcollectionitem.go b/tests/mockserver/internal/sdk/models/operations/editcollectionitem.go deleted file mode 100644 index 8ac9f5a9..00000000 --- a/tests/mockserver/internal/sdk/models/operations/editcollectionitem.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type EditcollectionitemResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - EditCollectionItemResponse *components.EditCollectionItemResponse -} - -func (o *EditcollectionitemResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *EditcollectionitemResponse) GetEditCollectionItemResponse() *components.EditCollectionItemResponse { - if o == nil { - return nil - } - return o.EditCollectionItemResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/editpin.go b/tests/mockserver/internal/sdk/models/operations/editpin.go deleted file mode 100644 index 921ea93c..00000000 --- a/tests/mockserver/internal/sdk/models/operations/editpin.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type EditpinResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - PinDocument *components.PinDocument -} - -func (o *EditpinResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *EditpinResponse) GetPinDocument() *components.PinDocument { - if o == nil { - return nil - } - return o.PinDocument -} diff --git a/tests/mockserver/internal/sdk/models/operations/feed.go b/tests/mockserver/internal/sdk/models/operations/feed.go deleted file mode 100644 index 1d0cbfbf..00000000 --- a/tests/mockserver/internal/sdk/models/operations/feed.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type FeedResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - FeedResponse *components.FeedResponse -} - -func (o *FeedResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *FeedResponse) GetFeedResponse() *components.FeedResponse { - if o == nil { - return nil - } - return o.FeedResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/feedback.go b/tests/mockserver/internal/sdk/models/operations/feedback.go deleted file mode 100644 index e81f65fc..00000000 --- a/tests/mockserver/internal/sdk/models/operations/feedback.go +++ /dev/null @@ -1,38 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type FeedbackRequest struct { - // 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) GetFeedbackQueryParameter() *string { - if o == nil { - return nil - } - return o.FeedbackQueryParameter -} - -func (o *FeedbackRequest) GetFeedback1() *components.Feedback { - if o == nil { - return nil - } - return o.Feedback1 -} - -type FeedbackResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *FeedbackResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/getagent.go b/tests/mockserver/internal/sdk/models/operations/getagent.go deleted file mode 100644 index 471bb945..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getagent.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetAgentRequest struct { - // 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"` - // The ID of the agent. - AgentID string `pathParam:"style=simple,explode=false,name=agent_id"` -} - -func (o *GetAgentRequest) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *GetAgentRequest) GetAgentID() string { - if o == nil { - return "" - } - return o.AgentID -} - -type GetAgentResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // Success - Agent *components.Agent -} - -func (o *GetAgentResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetAgentResponse) GetAgent() *components.Agent { - if o == nil { - return nil - } - return o.Agent -} diff --git a/tests/mockserver/internal/sdk/models/operations/getagentschemas.go b/tests/mockserver/internal/sdk/models/operations/getagentschemas.go deleted file mode 100644 index b4aa8ea6..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getagentschemas.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetAgentSchemasRequest struct { - // 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"` - // The ID of the agent. - AgentID string `pathParam:"style=simple,explode=false,name=agent_id"` -} - -func (o *GetAgentSchemasRequest) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *GetAgentSchemasRequest) GetAgentID() string { - if o == nil { - return "" - } - return o.AgentID -} - -type GetAgentSchemasResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // Success - AgentSchemas *components.AgentSchemas -} - -func (o *GetAgentSchemasResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetAgentSchemasResponse) GetAgentSchemas() *components.AgentSchemas { - if o == nil { - return nil - } - return o.AgentSchemas -} diff --git a/tests/mockserver/internal/sdk/models/operations/getanswer.go b/tests/mockserver/internal/sdk/models/operations/getanswer.go deleted file mode 100644 index ce29ef9f..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getanswer.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetanswerResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetAnswerResponse *components.GetAnswerResponse -} - -func (o *GetanswerResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetanswerResponse) GetGetAnswerResponse() *components.GetAnswerResponse { - if o == nil { - return nil - } - return o.GetAnswerResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getchat.go b/tests/mockserver/internal/sdk/models/operations/getchat.go deleted file mode 100644 index 9ce30de8..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getchat.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetchatRequest struct { - // 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) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *GetchatRequest) GetGetChatRequest() components.GetChatRequest { - if o == nil { - return components.GetChatRequest{} - } - return o.GetChatRequest -} - -type GetchatResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetChatResponse *components.GetChatResponse -} - -func (o *GetchatResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetchatResponse) GetGetChatResponse() *components.GetChatResponse { - if o == nil { - return nil - } - return o.GetChatResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getchatapplication.go b/tests/mockserver/internal/sdk/models/operations/getchatapplication.go deleted file mode 100644 index ec673be9..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getchatapplication.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetchatapplicationRequest struct { - // 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) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *GetchatapplicationRequest) GetGetChatApplicationRequest() components.GetChatApplicationRequest { - if o == nil { - return components.GetChatApplicationRequest{} - } - return o.GetChatApplicationRequest -} - -type GetchatapplicationResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetChatApplicationResponse *components.GetChatApplicationResponse -} - -func (o *GetchatapplicationResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetchatapplicationResponse) GetGetChatApplicationResponse() *components.GetChatApplicationResponse { - if o == nil { - return nil - } - return o.GetChatApplicationResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getchatfiles.go b/tests/mockserver/internal/sdk/models/operations/getchatfiles.go deleted file mode 100644 index 24bcda85..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getchatfiles.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetchatfilesRequest struct { - // 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) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *GetchatfilesRequest) GetGetChatFilesRequest() components.GetChatFilesRequest { - if o == nil { - return components.GetChatFilesRequest{} - } - return o.GetChatFilesRequest -} - -type GetchatfilesResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetChatFilesResponse *components.GetChatFilesResponse -} - -func (o *GetchatfilesResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetchatfilesResponse) GetGetChatFilesResponse() *components.GetChatFilesResponse { - if o == nil { - return nil - } - return o.GetChatFilesResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getcollection.go b/tests/mockserver/internal/sdk/models/operations/getcollection.go deleted file mode 100644 index 38e38763..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getcollection.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetcollectionResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetCollectionResponse *components.GetCollectionResponse -} - -func (o *GetcollectionResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetcollectionResponse) GetGetCollectionResponse() *components.GetCollectionResponse { - if o == nil { - return nil - } - return o.GetCollectionResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getdocpermissions.go b/tests/mockserver/internal/sdk/models/operations/getdocpermissions.go deleted file mode 100644 index a509a3a7..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getdocpermissions.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetdocpermissionsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetDocPermissionsResponse *components.GetDocPermissionsResponse -} - -func (o *GetdocpermissionsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetdocpermissionsResponse) GetGetDocPermissionsResponse() *components.GetDocPermissionsResponse { - if o == nil { - return nil - } - return o.GetDocPermissionsResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getdocuments.go b/tests/mockserver/internal/sdk/models/operations/getdocuments.go deleted file mode 100644 index a2ef5c08..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getdocuments.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetdocumentsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetDocumentsResponse *components.GetDocumentsResponse -} - -func (o *GetdocumentsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetdocumentsResponse) GetGetDocumentsResponse() *components.GetDocumentsResponse { - if o == nil { - return nil - } - return o.GetDocumentsResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go b/tests/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go deleted file mode 100644 index 12629e29..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getdocumentsbyfacets.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetdocumentsbyfacetsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetDocumentsByFacetsResponse *components.GetDocumentsByFacetsResponse -} - -func (o *GetdocumentsbyfacetsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetdocumentsbyfacetsResponse) GetGetDocumentsByFacetsResponse() *components.GetDocumentsByFacetsResponse { - if o == nil { - return nil - } - return o.GetDocumentsByFacetsResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getdocvisibility.go b/tests/mockserver/internal/sdk/models/operations/getdocvisibility.go deleted file mode 100644 index 8fbe2575..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getdocvisibility.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetdocvisibilityRequest struct { - // List of doc-ids which will have their hide status fetched. - DocIds []string `queryParam:"style=form,explode=true,name=docIds"` -} - -func (o *GetdocvisibilityRequest) GetDocIds() []string { - if o == nil { - return nil - } - return o.DocIds -} - -type GetdocvisibilityResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // The visibility status of documents - GetDocumentVisibilityOverridesResponse *components.GetDocumentVisibilityOverridesResponse -} - -func (o *GetdocvisibilityResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetdocvisibilityResponse) GetGetDocumentVisibilityOverridesResponse() *components.GetDocumentVisibilityOverridesResponse { - if o == nil { - return nil - } - return o.GetDocumentVisibilityOverridesResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getpin.go b/tests/mockserver/internal/sdk/models/operations/getpin.go deleted file mode 100644 index 9ccb680e..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getpin.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetpinResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetPinResponse *components.GetPinResponse -} - -func (o *GetpinResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetpinResponse) GetGetPinResponse() *components.GetPinResponse { - if o == nil { - return nil - } - return o.GetPinResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getpolicy.go b/tests/mockserver/internal/sdk/models/operations/getpolicy.go deleted file mode 100644 index 1cac9e52..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getpolicy.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetpolicyRequest struct { - // The id of the policy to fetch. - ID string `pathParam:"style=simple,explode=false,name=id"` - // The version of the policy to fetch. Each time a policy is updated, the older version is still stored. If this is left empty, the latest policy is fetched. - Version *int64 `queryParam:"style=form,explode=true,name=version"` -} - -func (o *GetpolicyRequest) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -func (o *GetpolicyRequest) GetVersion() *int64 { - if o == nil { - return nil - } - return o.Version -} - -type GetpolicyResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetDlpReportResponse *components.GetDlpReportResponse -} - -func (o *GetpolicyResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetpolicyResponse) GetGetDlpReportResponse() *components.GetDlpReportResponse { - if o == nil { - return nil - } - return o.GetDlpReportResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getreportstatus.go b/tests/mockserver/internal/sdk/models/operations/getreportstatus.go deleted file mode 100644 index d83ce726..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getreportstatus.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetreportstatusRequest struct { - // The id of the report to get run status for. - ID string `pathParam:"style=simple,explode=false,name=id"` -} - -func (o *GetreportstatusRequest) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -type GetreportstatusResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // Fetches status of report run. - ReportStatusResponse *components.ReportStatusResponse -} - -func (o *GetreportstatusResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetreportstatusResponse) GetReportStatusResponse() *components.ReportStatusResponse { - if o == nil { - return nil - } - return o.ReportStatusResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getrestapiv1toolslist.go b/tests/mockserver/internal/sdk/models/operations/getrestapiv1toolslist.go deleted file mode 100644 index 4d9d36df..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getrestapiv1toolslist.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetRestAPIV1ToolsListRequest struct { - // Optional array of tool names to filter by - ToolNames []string `queryParam:"style=form,explode=false,name=toolNames"` -} - -func (o *GetRestAPIV1ToolsListRequest) GetToolNames() []string { - if o == nil { - return nil - } - return o.ToolNames -} - -type GetRestAPIV1ToolsListResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // Successful operation - ToolsListResponse *components.ToolsListResponse -} - -func (o *GetRestAPIV1ToolsListResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetRestAPIV1ToolsListResponse) GetToolsListResponse() *components.ToolsListResponse { - if o == nil { - return nil - } - return o.ToolsListResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/getshortcut.go b/tests/mockserver/internal/sdk/models/operations/getshortcut.go deleted file mode 100644 index 032c32c5..00000000 --- a/tests/mockserver/internal/sdk/models/operations/getshortcut.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type GetshortcutResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetShortcutResponse *components.GetShortcutResponse -} - -func (o *GetshortcutResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *GetshortcutResponse) GetGetShortcutResponse() *components.GetShortcutResponse { - if o == nil { - return nil - } - return o.GetShortcutResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/insights.go b/tests/mockserver/internal/sdk/models/operations/insights.go deleted file mode 100644 index 0f883502..00000000 --- a/tests/mockserver/internal/sdk/models/operations/insights.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type InsightsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - InsightsResponse *components.InsightsResponse -} - -func (o *InsightsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *InsightsResponse) GetInsightsResponse() *components.InsightsResponse { - if o == nil { - return nil - } - return o.InsightsResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/listanswers.go b/tests/mockserver/internal/sdk/models/operations/listanswers.go deleted file mode 100644 index 2229cf7f..00000000 --- a/tests/mockserver/internal/sdk/models/operations/listanswers.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type ListanswersResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - ListAnswersResponse *components.ListAnswersResponse -} - -func (o *ListanswersResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *ListanswersResponse) GetListAnswersResponse() *components.ListAnswersResponse { - if o == nil { - return nil - } - return o.ListAnswersResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/listchats.go b/tests/mockserver/internal/sdk/models/operations/listchats.go deleted file mode 100644 index 36a64f6c..00000000 --- a/tests/mockserver/internal/sdk/models/operations/listchats.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type ListchatsRequest struct { - // 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) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -type ListchatsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - ListChatsResponse *components.ListChatsResponse -} - -func (o *ListchatsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *ListchatsResponse) GetListChatsResponse() *components.ListChatsResponse { - if o == nil { - return nil - } - return o.ListChatsResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/listcollections.go b/tests/mockserver/internal/sdk/models/operations/listcollections.go deleted file mode 100644 index 9efddbd6..00000000 --- a/tests/mockserver/internal/sdk/models/operations/listcollections.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type ListcollectionsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - ListCollectionsResponse *components.ListCollectionsResponse -} - -func (o *ListcollectionsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *ListcollectionsResponse) GetListCollectionsResponse() *components.ListCollectionsResponse { - if o == nil { - return nil - } - return o.ListCollectionsResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/listentities.go b/tests/mockserver/internal/sdk/models/operations/listentities.go deleted file mode 100644 index d05441f9..00000000 --- a/tests/mockserver/internal/sdk/models/operations/listentities.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type ListentitiesResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - ListEntitiesResponse *components.ListEntitiesResponse -} - -func (o *ListentitiesResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *ListentitiesResponse) GetListEntitiesResponse() *components.ListEntitiesResponse { - if o == nil { - return nil - } - return o.ListEntitiesResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/listpins.go b/tests/mockserver/internal/sdk/models/operations/listpins.go deleted file mode 100644 index 45c93a45..00000000 --- a/tests/mockserver/internal/sdk/models/operations/listpins.go +++ /dev/null @@ -1,31 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -// ListpinsRequest - List pins request -type ListpinsRequest struct { -} - -type ListpinsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - ListPinsResponse *components.ListPinsResponse -} - -func (o *ListpinsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *ListpinsResponse) GetListPinsResponse() *components.ListPinsResponse { - if o == nil { - return nil - } - return o.ListPinsResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/listpolicies.go b/tests/mockserver/internal/sdk/models/operations/listpolicies.go deleted file mode 100644 index 61d27e4f..00000000 --- a/tests/mockserver/internal/sdk/models/operations/listpolicies.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type ListpoliciesRequest struct { - // Filter to return reports with a given value of auto-hide. - AutoHide *bool `queryParam:"style=form,explode=true,name=autoHide"` - // Filter to return reports with a given frequency. - Frequency *string `queryParam:"style=form,explode=true,name=frequency"` -} - -func (o *ListpoliciesRequest) GetAutoHide() *bool { - if o == nil { - return nil - } - return o.AutoHide -} - -func (o *ListpoliciesRequest) GetFrequency() *string { - if o == nil { - return nil - } - return o.Frequency -} - -type ListpoliciesResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - ListDlpReportsResponse *components.ListDlpReportsResponse -} - -func (o *ListpoliciesResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *ListpoliciesResponse) GetListDlpReportsResponse() *components.ListDlpReportsResponse { - if o == nil { - return nil - } - return o.ListDlpReportsResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/listshortcuts.go b/tests/mockserver/internal/sdk/models/operations/listshortcuts.go deleted file mode 100644 index a5b0962f..00000000 --- a/tests/mockserver/internal/sdk/models/operations/listshortcuts.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type ListshortcutsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - ListShortcutsPaginatedResponse *components.ListShortcutsPaginatedResponse -} - -func (o *ListshortcutsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *ListshortcutsResponse) GetListShortcutsPaginatedResponse() *components.ListShortcutsPaginatedResponse { - if o == nil { - return nil - } - return o.ListShortcutsPaginatedResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/listverifications.go b/tests/mockserver/internal/sdk/models/operations/listverifications.go deleted file mode 100644 index 13015ee5..00000000 --- a/tests/mockserver/internal/sdk/models/operations/listverifications.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type ListverificationsRequest struct { - // Maximum number of documents to return - Count *int64 `queryParam:"style=form,explode=true,name=count"` -} - -func (o *ListverificationsRequest) GetCount() *int64 { - if o == nil { - return nil - } - return o.Count -} - -type ListverificationsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - VerificationFeed *components.VerificationFeed -} - -func (o *ListverificationsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *ListverificationsResponse) GetVerificationFeed() *components.VerificationFeed { - if o == nil { - return nil - } - return o.VerificationFeed -} diff --git a/tests/mockserver/internal/sdk/models/operations/messages.go b/tests/mockserver/internal/sdk/models/operations/messages.go deleted file mode 100644 index c33c0888..00000000 --- a/tests/mockserver/internal/sdk/models/operations/messages.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type MessagesResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - MessagesResponse *components.MessagesResponse -} - -func (o *MessagesResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *MessagesResponse) GetMessagesResponse() *components.MessagesResponse { - if o == nil { - return nil - } - return o.MessagesResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/people.go b/tests/mockserver/internal/sdk/models/operations/people.go deleted file mode 100644 index fe1bf61d..00000000 --- a/tests/mockserver/internal/sdk/models/operations/people.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PeopleResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - PeopleResponse *components.PeopleResponse -} - -func (o *PeopleResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PeopleResponse) GetPeopleResponse() *components.PeopleResponse { - if o == nil { - return nil - } - return o.PeopleResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/pin.go b/tests/mockserver/internal/sdk/models/operations/pin.go deleted file mode 100644 index ba2d47e1..00000000 --- a/tests/mockserver/internal/sdk/models/operations/pin.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PinResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - PinDocument *components.PinDocument -} - -func (o *PinResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PinResponse) GetPinDocument() *components.PinDocument { - if o == nil { - return nil - } - return o.PinDocument -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1adddatasource.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1adddatasource.go deleted file mode 100644 index ec4316c1..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1adddatasource.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1AdddatasourceResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1AdddatasourceResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1betausers.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1betausers.go deleted file mode 100644 index eaab9c65..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1betausers.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1BetausersResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1BetausersResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexdocuments.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexdocuments.go deleted file mode 100644 index 91856daa..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexdocuments.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1BulkindexdocumentsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1BulkindexdocumentsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexemployees.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexemployees.go deleted file mode 100644 index 9db6475f..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexemployees.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1BulkindexemployeesResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1BulkindexemployeesResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexgroups.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexgroups.go deleted file mode 100644 index 61a821cd..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexgroups.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1BulkindexgroupsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1BulkindexgroupsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexmemberships.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexmemberships.go deleted file mode 100644 index e2f87c0d..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexmemberships.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1BulkindexmembershipsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1BulkindexmembershipsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexshortcuts.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexshortcuts.go deleted file mode 100644 index 6348bbd6..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexshortcuts.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1BulkindexshortcutsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1BulkindexshortcutsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexteams.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexteams.go deleted file mode 100644 index a6a54ca3..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexteams.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1BulkindexteamsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1BulkindexteamsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexusers.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexusers.go deleted file mode 100644 index eca83011..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1bulkindexusers.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1BulkindexusersResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1BulkindexusersResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1checkdocumentaccess.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1checkdocumentaccess.go deleted file mode 100644 index daa947b5..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1checkdocumentaccess.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1CheckdocumentaccessResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - CheckDocumentAccessResponse *components.CheckDocumentAccessResponse -} - -func (o *PostAPIIndexV1CheckdocumentaccessResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PostAPIIndexV1CheckdocumentaccessResponse) GetCheckDocumentAccessResponse() *components.CheckDocumentAccessResponse { - if o == nil { - return nil - } - return o.CheckDocumentAccessResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocument.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocument.go deleted file mode 100644 index 664ceb3b..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocument.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1DebugDatasourceDocumentRequest struct { - // The datasource to which the document belongs - Datasource string `pathParam:"style=simple,explode=false,name=datasource"` - DebugDocumentRequest components.DebugDocumentRequest `request:"mediaType=application/json"` -} - -func (o *PostAPIIndexV1DebugDatasourceDocumentRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *PostAPIIndexV1DebugDatasourceDocumentRequest) GetDebugDocumentRequest() components.DebugDocumentRequest { - if o == nil { - return components.DebugDocumentRequest{} - } - return o.DebugDocumentRequest -} - -type PostAPIIndexV1DebugDatasourceDocumentResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - DebugDocumentResponse *components.DebugDocumentResponse -} - -func (o *PostAPIIndexV1DebugDatasourceDocumentResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PostAPIIndexV1DebugDatasourceDocumentResponse) GetDebugDocumentResponse() *components.DebugDocumentResponse { - if o == nil { - return nil - } - return o.DebugDocumentResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocuments.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocuments.go deleted file mode 100644 index 437e6f06..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcedocuments.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1DebugDatasourceDocumentsRequest struct { - // The datasource to which the document belongs - Datasource string `pathParam:"style=simple,explode=false,name=datasource"` - DebugDocumentsRequest components.DebugDocumentsRequest `request:"mediaType=application/json"` -} - -func (o *PostAPIIndexV1DebugDatasourceDocumentsRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *PostAPIIndexV1DebugDatasourceDocumentsRequest) GetDebugDocumentsRequest() components.DebugDocumentsRequest { - if o == nil { - return components.DebugDocumentsRequest{} - } - return o.DebugDocumentsRequest -} - -type PostAPIIndexV1DebugDatasourceDocumentsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - DebugDocumentsResponse *components.DebugDocumentsResponse -} - -func (o *PostAPIIndexV1DebugDatasourceDocumentsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PostAPIIndexV1DebugDatasourceDocumentsResponse) GetDebugDocumentsResponse() *components.DebugDocumentsResponse { - if o == nil { - return nil - } - return o.DebugDocumentsResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcestatus.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcestatus.go deleted file mode 100644 index e9913883..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourcestatus.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1DebugDatasourceStatusRequest struct { - // The datasource to get debug status for. - Datasource string `pathParam:"style=simple,explode=false,name=datasource"` -} - -func (o *PostAPIIndexV1DebugDatasourceStatusRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -type PostAPIIndexV1DebugDatasourceStatusResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - DebugDatasourceStatusResponse *components.DebugDatasourceStatusResponse -} - -func (o *PostAPIIndexV1DebugDatasourceStatusResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PostAPIIndexV1DebugDatasourceStatusResponse) GetDebugDatasourceStatusResponse() *components.DebugDatasourceStatusResponse { - if o == nil { - return nil - } - return o.DebugDatasourceStatusResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourceuser.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourceuser.go deleted file mode 100644 index 5ead8da7..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1debugdatasourceuser.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1DebugDatasourceUserRequest struct { - // The datasource to which the user belongs - Datasource string `pathParam:"style=simple,explode=false,name=datasource"` - DebugUserRequest components.DebugUserRequest `request:"mediaType=application/json"` -} - -func (o *PostAPIIndexV1DebugDatasourceUserRequest) GetDatasource() string { - if o == nil { - return "" - } - return o.Datasource -} - -func (o *PostAPIIndexV1DebugDatasourceUserRequest) GetDebugUserRequest() components.DebugUserRequest { - if o == nil { - return components.DebugUserRequest{} - } - return o.DebugUserRequest -} - -type PostAPIIndexV1DebugDatasourceUserResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - DebugUserResponse *components.DebugUserResponse -} - -func (o *PostAPIIndexV1DebugDatasourceUserResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PostAPIIndexV1DebugDatasourceUserResponse) GetDebugUserResponse() *components.DebugUserResponse { - if o == nil { - return nil - } - return o.DebugUserResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1deletedocument.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1deletedocument.go deleted file mode 100644 index cb9dcbeb..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1deletedocument.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1DeletedocumentResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1DeletedocumentResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteemployee.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteemployee.go deleted file mode 100644 index c2ff187f..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteemployee.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1DeleteemployeeResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1DeleteemployeeResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1deletegroup.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1deletegroup.go deleted file mode 100644 index 51bf5588..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1deletegroup.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1DeletegroupResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1DeletegroupResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1deletemembership.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1deletemembership.go deleted file mode 100644 index 0c2cf3c6..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1deletemembership.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1DeletemembershipResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1DeletemembershipResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteteam.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteteam.go deleted file mode 100644 index 3e7591f4..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteteam.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1DeleteteamResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1DeleteteamResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteuser.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteuser.go deleted file mode 100644 index f2836359..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1deleteuser.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1DeleteuserResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1DeleteuserResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1getdatasourceconfig.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1getdatasourceconfig.go deleted file mode 100644 index 87af103e..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1getdatasourceconfig.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1GetdatasourceconfigResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - CustomDatasourceConfig *components.CustomDatasourceConfig -} - -func (o *PostAPIIndexV1GetdatasourceconfigResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PostAPIIndexV1GetdatasourceconfigResponse) GetCustomDatasourceConfig() *components.CustomDatasourceConfig { - if o == nil { - return nil - } - return o.CustomDatasourceConfig -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1getdocumentcount.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1getdocumentcount.go deleted file mode 100644 index e8346738..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1getdocumentcount.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1GetdocumentcountResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetDocumentCountResponse *components.GetDocumentCountResponse -} - -func (o *PostAPIIndexV1GetdocumentcountResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PostAPIIndexV1GetdocumentcountResponse) GetGetDocumentCountResponse() *components.GetDocumentCountResponse { - if o == nil { - return nil - } - return o.GetDocumentCountResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1getdocumentstatus.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1getdocumentstatus.go deleted file mode 100644 index 23e6ce27..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1getdocumentstatus.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1GetdocumentstatusResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetDocumentStatusResponse *components.GetDocumentStatusResponse -} - -func (o *PostAPIIndexV1GetdocumentstatusResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PostAPIIndexV1GetdocumentstatusResponse) GetGetDocumentStatusResponse() *components.GetDocumentStatusResponse { - if o == nil { - return nil - } - return o.GetDocumentStatusResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1getusercount.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1getusercount.go deleted file mode 100644 index d65e1df9..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1getusercount.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1GetusercountResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - GetUserCountResponse *components.GetUserCountResponse -} - -func (o *PostAPIIndexV1GetusercountResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PostAPIIndexV1GetusercountResponse) GetGetUserCountResponse() *components.GetUserCountResponse { - if o == nil { - return nil - } - return o.GetUserCountResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexdocument.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexdocument.go deleted file mode 100644 index 0dee9b59..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexdocument.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1IndexdocumentResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1IndexdocumentResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexdocuments.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexdocuments.go deleted file mode 100644 index dc8114ae..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexdocuments.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1IndexdocumentsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1IndexdocumentsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexemployee.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexemployee.go deleted file mode 100644 index 78fee1b1..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexemployee.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1IndexemployeeResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1IndexemployeeResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexgroup.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexgroup.go deleted file mode 100644 index 2376f01a..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexgroup.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1IndexgroupResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1IndexgroupResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexmembership.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexmembership.go deleted file mode 100644 index bc379818..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexmembership.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1IndexmembershipResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1IndexmembershipResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexteam.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexteam.go deleted file mode 100644 index e21ea660..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexteam.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1IndexteamResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1IndexteamResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexuser.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexuser.go deleted file mode 100644 index 97d96c43..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1indexuser.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1IndexuserResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1IndexuserResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1processalldocuments.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1processalldocuments.go deleted file mode 100644 index 842e0b83..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1processalldocuments.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1ProcessalldocumentsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1ProcessalldocumentsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1processallemployeesandteams.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1processallemployeesandteams.go deleted file mode 100644 index 6836e1b0..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1processallemployeesandteams.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1ProcessallemployeesandteamsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1ProcessallemployeesandteamsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1processallmemberships.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1processallmemberships.go deleted file mode 100644 index 7fda5903..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1processallmemberships.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1ProcessallmembershipsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1ProcessallmembershipsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1rotatetoken.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1rotatetoken.go deleted file mode 100644 index d0333d02..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1rotatetoken.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1RotatetokenResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - RotateTokenResponse *components.RotateTokenResponse -} - -func (o *PostAPIIndexV1RotatetokenResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PostAPIIndexV1RotatetokenResponse) GetRotateTokenResponse() *components.RotateTokenResponse { - if o == nil { - return nil - } - return o.RotateTokenResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1updatepermissions.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1updatepermissions.go deleted file mode 100644 index 677130bb..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1updatepermissions.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1UpdatepermissionsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1UpdatepermissionsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postapiindexv1uploadshortcuts.go b/tests/mockserver/internal/sdk/models/operations/postapiindexv1uploadshortcuts.go deleted file mode 100644 index cc5dbf54..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postapiindexv1uploadshortcuts.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostAPIIndexV1UploadshortcutsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *PostAPIIndexV1UploadshortcutsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/postrestapiv1toolscall.go b/tests/mockserver/internal/sdk/models/operations/postrestapiv1toolscall.go deleted file mode 100644 index eb2eea47..00000000 --- a/tests/mockserver/internal/sdk/models/operations/postrestapiv1toolscall.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type PostRestAPIV1ToolsCallResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // Successful operation - ToolsCallResponse *components.ToolsCallResponse -} - -func (o *PostRestAPIV1ToolsCallResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *PostRestAPIV1ToolsCallResponse) GetToolsCallResponse() *components.ToolsCallResponse { - if o == nil { - return nil - } - return o.ToolsCallResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/recommendations.go b/tests/mockserver/internal/sdk/models/operations/recommendations.go deleted file mode 100644 index 9c74d480..00000000 --- a/tests/mockserver/internal/sdk/models/operations/recommendations.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type RecommendationsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - ResultsResponse *components.ResultsResponse -} - -func (o *RecommendationsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *RecommendationsResponse) GetResultsResponse() *components.ResultsResponse { - if o == nil { - return nil - } - return o.ResultsResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/search.go b/tests/mockserver/internal/sdk/models/operations/search.go deleted file mode 100644 index 6b1d9873..00000000 --- a/tests/mockserver/internal/sdk/models/operations/search.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type SearchResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - SearchResponse *components.SearchResponse -} - -func (o *SearchResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *SearchResponse) GetSearchResponse() *components.SearchResponse { - if o == nil { - return nil - } - return o.SearchResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/searchagents.go b/tests/mockserver/internal/sdk/models/operations/searchagents.go deleted file mode 100644 index 0e9a0715..00000000 --- a/tests/mockserver/internal/sdk/models/operations/searchagents.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type SearchAgentsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // Success - SearchAgentsResponse *components.SearchAgentsResponse -} - -func (o *SearchAgentsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *SearchAgentsResponse) GetSearchAgentsResponse() *components.SearchAgentsResponse { - if o == nil { - return nil - } - return o.SearchAgentsResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/setdocvisibility.go b/tests/mockserver/internal/sdk/models/operations/setdocvisibility.go deleted file mode 100644 index 3b077768..00000000 --- a/tests/mockserver/internal/sdk/models/operations/setdocvisibility.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type SetdocvisibilityResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - UpdateDocumentVisibilityOverridesResponse *components.UpdateDocumentVisibilityOverridesResponse -} - -func (o *SetdocvisibilityResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *SetdocvisibilityResponse) GetUpdateDocumentVisibilityOverridesResponse() *components.UpdateDocumentVisibilityOverridesResponse { - if o == nil { - return nil - } - return o.UpdateDocumentVisibilityOverridesResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/summarize.go b/tests/mockserver/internal/sdk/models/operations/summarize.go deleted file mode 100644 index 90cc598d..00000000 --- a/tests/mockserver/internal/sdk/models/operations/summarize.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type SummarizeResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - SummarizeResponse *components.SummarizeResponse -} - -func (o *SummarizeResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *SummarizeResponse) GetSummarizeResponse() *components.SummarizeResponse { - if o == nil { - return nil - } - return o.SummarizeResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/unpin.go b/tests/mockserver/internal/sdk/models/operations/unpin.go deleted file mode 100644 index 4bff2a3c..00000000 --- a/tests/mockserver/internal/sdk/models/operations/unpin.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type UnpinResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *UnpinResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/tests/mockserver/internal/sdk/models/operations/updateannouncement.go b/tests/mockserver/internal/sdk/models/operations/updateannouncement.go deleted file mode 100644 index 927436ef..00000000 --- a/tests/mockserver/internal/sdk/models/operations/updateannouncement.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type UpdateannouncementResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - Announcement *components.Announcement -} - -func (o *UpdateannouncementResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *UpdateannouncementResponse) GetAnnouncement() *components.Announcement { - if o == nil { - return nil - } - return o.Announcement -} diff --git a/tests/mockserver/internal/sdk/models/operations/updatepolicy.go b/tests/mockserver/internal/sdk/models/operations/updatepolicy.go deleted file mode 100644 index 8171038c..00000000 --- a/tests/mockserver/internal/sdk/models/operations/updatepolicy.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type UpdatepolicyRequest struct { - // The id of the policy to fetch. - ID string `pathParam:"style=simple,explode=false,name=id"` - UpdateDlpReportRequest components.UpdateDlpReportRequest `request:"mediaType=application/json"` -} - -func (o *UpdatepolicyRequest) GetID() string { - if o == nil { - return "" - } - return o.ID -} - -func (o *UpdatepolicyRequest) GetUpdateDlpReportRequest() components.UpdateDlpReportRequest { - if o == nil { - return components.UpdateDlpReportRequest{} - } - return o.UpdateDlpReportRequest -} - -type UpdatepolicyResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - UpdateDlpReportResponse *components.UpdateDlpReportResponse -} - -func (o *UpdatepolicyResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *UpdatepolicyResponse) GetUpdateDlpReportResponse() *components.UpdateDlpReportResponse { - if o == nil { - return nil - } - return o.UpdateDlpReportResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/updateshortcut.go b/tests/mockserver/internal/sdk/models/operations/updateshortcut.go deleted file mode 100644 index ebfd6f72..00000000 --- a/tests/mockserver/internal/sdk/models/operations/updateshortcut.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type UpdateshortcutResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - UpdateShortcutResponse *components.UpdateShortcutResponse -} - -func (o *UpdateshortcutResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *UpdateshortcutResponse) GetUpdateShortcutResponse() *components.UpdateShortcutResponse { - if o == nil { - return nil - } - return o.UpdateShortcutResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go b/tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go deleted file mode 100644 index d11a18d5..00000000 --- a/tests/mockserver/internal/sdk/models/operations/uploadchatfiles.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type UploadchatfilesRequest struct { - // 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) GetTimezoneOffset() *int64 { - if o == nil { - return nil - } - return o.TimezoneOffset -} - -func (o *UploadchatfilesRequest) GetUploadChatFilesRequest() components.UploadChatFilesRequest { - if o == nil { - return components.UploadChatFilesRequest{} - } - return o.UploadChatFilesRequest -} - -type UploadchatfilesResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - UploadChatFilesResponse *components.UploadChatFilesResponse -} - -func (o *UploadchatfilesResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *UploadchatfilesResponse) GetUploadChatFilesResponse() *components.UploadChatFilesResponse { - if o == nil { - return nil - } - return o.UploadChatFilesResponse -} diff --git a/tests/mockserver/internal/sdk/models/operations/verify.go b/tests/mockserver/internal/sdk/models/operations/verify.go deleted file mode 100644 index 1f2fc93e..00000000 --- a/tests/mockserver/internal/sdk/models/operations/verify.go +++ /dev/null @@ -1,27 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type VerifyResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` - // OK - Verification *components.Verification -} - -func (o *VerifyResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} - -func (o *VerifyResponse) GetVerification() *components.Verification { - if o == nil { - return nil - } - return o.Verification -} diff --git a/tests/mockserver/internal/sdk/models/sdkerrors/collectionerror.go b/tests/mockserver/internal/sdk/models/sdkerrors/collectionerror.go deleted file mode 100644 index 6eb492d8..00000000 --- a/tests/mockserver/internal/sdk/models/sdkerrors/collectionerror.go +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package sdkerrors - -import ( - "encoding/json" - "mockserver/internal/sdk/models/components" -) - -type CollectionError struct { - ErrorCode components.CollectionErrorErrorCode `json:"errorCode"` - HTTPMeta components.HTTPMetadata `json:"-"` -} - -var _ error = &CollectionError{} - -func (e *CollectionError) Error() string { - data, _ := json.Marshal(e) - return string(data) -} diff --git a/tests/mockserver/internal/sdk/models/sdkerrors/gleandataerror.go b/tests/mockserver/internal/sdk/models/sdkerrors/gleandataerror.go deleted file mode 100644 index 5870c8ac..00000000 --- a/tests/mockserver/internal/sdk/models/sdkerrors/gleandataerror.go +++ /dev/null @@ -1,26 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package sdkerrors - -import ( - "encoding/json" - "mockserver/internal/sdk/models/components" -) - -type GleanDataError struct { - // Indicates the gmail results could not be fetched due to bad token. - BadGmailToken *bool `json:"badGmailToken,omitempty"` - // Indicates the outlook results could not be fetched due to bad token. - BadOutlookToken *bool `json:"badOutlookToken,omitempty"` - // Indicates results could not be fetched due to invalid operators in the query. - InvalidOperators []components.InvalidOperatorValueError `json:"invalidOperators,omitempty"` - ErrorMessages []components.ErrorMessage `json:"errorMessages,omitempty"` - HTTPMeta components.HTTPMetadata `json:"-"` -} - -var _ error = &GleanDataError{} - -func (e *GleanDataError) Error() string { - data, _ := json.Marshal(e) - return string(data) -} diff --git a/tests/mockserver/internal/sdk/types/bigint.go b/tests/mockserver/internal/sdk/types/bigint.go deleted file mode 100644 index 9c6a086d..00000000 --- a/tests/mockserver/internal/sdk/types/bigint.go +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package types - -import ( - "fmt" - "math/big" -) - -// MustNewBigIntFromString returns an instance of big.Int from a string -// The string is assumed to be base 10 and if it is not a valid big.Int -// then the function panics. -// Avoid using this function in production code. -func MustNewBigIntFromString(s string) *big.Int { - i, ok := new(big.Int).SetString(s, 10) - if !ok { - panic(fmt.Errorf("failed to parse string as big.Int")) - } - - return i -} diff --git a/tests/mockserver/internal/sdk/types/date.go b/tests/mockserver/internal/sdk/types/date.go deleted file mode 100644 index 5b2782f2..00000000 --- a/tests/mockserver/internal/sdk/types/date.go +++ /dev/null @@ -1,90 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package types - -import ( - "encoding/json" - "fmt" - "strings" - "time" -) - -// Date is a wrapper around time.Time that allows for JSON marshaling a date string formatted as "2006-01-02". -type Date struct { - time.Time -} - -var ( - _ json.Marshaler = &Date{} - _ json.Unmarshaler = &Date{} - _ fmt.Stringer = &Date{} -) - -// NewDate returns an instance of Date from a time.Time. -func NewDate(t time.Time) *Date { - d := DateFromTime(t) - return &d -} - -// DateFromTime returns a Date from a time.Time. -func DateFromTime(t time.Time) Date { - return Date{t} -} - -// NewDateFromString returns an instance of Date from a string formatted as "2006-01-02". -func NewDateFromString(str string) (*Date, error) { - d, err := DateFromString(str) - if err != nil { - return nil, err - } - - return &d, nil -} - -// DateFromString returns a Date from a string formatted as "2006-01-02". -func DateFromString(str string) (Date, error) { - var d Date - var err error - - d.Time, err = time.Parse("2006-01-02", str) - return d, err -} - -// MustNewDateFromString returns an instance of Date from a string formatted as "2006-01-02" or panics. -// Avoid using this function in production code. -func MustNewDateFromString(str string) *Date { - d := MustDateFromString(str) - return &d -} - -// MustDateFromString returns a Date from a string formatted as "2006-01-02" or panics. -// Avoid using this function in production code. -func MustDateFromString(str string) Date { - d, err := DateFromString(str) - if err != nil { - panic(err) - } - return d -} - -func (d Date) GetTime() time.Time { - return d.Time -} - -func (d Date) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf(`"%s"`, d.Time.Format("2006-01-02"))), nil -} - -func (d *Date) UnmarshalJSON(data []byte) error { - var err error - - str := string(data) - str = strings.Trim(str, `"`) - - d.Time, err = time.Parse("2006-01-02", str) - return err -} - -func (d Date) String() string { - return d.Time.Format("2006-01-02") -} diff --git a/tests/mockserver/internal/sdk/types/datetime.go b/tests/mockserver/internal/sdk/types/datetime.go deleted file mode 100644 index 3eff332d..00000000 --- a/tests/mockserver/internal/sdk/types/datetime.go +++ /dev/null @@ -1,23 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package types - -import "time" - -// MustTimeFromString returns a time.Time from a string formatted as "2006-01-02T15:04:05Z07:00" or panics. -// Avoid using this function in production code. -func MustTimeFromString(str string) time.Time { - t, err := time.Parse(time.RFC3339, str) - if err != nil { - panic(err) - } - - return t -} - -// MustNewTimeFromString returns an instance of time.Time from a string formatted as "2006-01-02T15:04:05Z07:00" or panics. -// Avoid using this function in production code. -func MustNewTimeFromString(str string) *time.Time { - t := MustTimeFromString(str) - return &t -} diff --git a/tests/mockserver/internal/sdk/types/decimal.go b/tests/mockserver/internal/sdk/types/decimal.go deleted file mode 100644 index d8429bc6..00000000 --- a/tests/mockserver/internal/sdk/types/decimal.go +++ /dev/null @@ -1,20 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package types - -import ( - "fmt" - - "github.com/ericlagergren/decimal" -) - -// MustNewDecimalFromString returns an instance of Decimal from a string -// Avoid using this function in production code. -func MustNewDecimalFromString(s string) *decimal.Big { - d, ok := new(decimal.Big).SetString(s) - if !ok { - panic(fmt.Errorf("failed to parse string as decimal.Big")) - } - - return d -} diff --git a/tests/mockserver/internal/sdk/types/jsonl/jsonl.go b/tests/mockserver/internal/sdk/types/jsonl/jsonl.go deleted file mode 100644 index 26df95cf..00000000 --- a/tests/mockserver/internal/sdk/types/jsonl/jsonl.go +++ /dev/null @@ -1,7 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package jsonl - -type JsonLStream[T any] struct { - // TODO to be implemented -} diff --git a/tests/mockserver/internal/sdk/types/pointers.go b/tests/mockserver/internal/sdk/types/pointers.go deleted file mode 100644 index 35c439d2..00000000 --- a/tests/mockserver/internal/sdk/types/pointers.go +++ /dev/null @@ -1,11 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package types - -func String(s string) *string { return &s } -func Bool(b bool) *bool { return &b } -func Int(i int) *int { return &i } -func Int64(i int64) *int64 { return &i } -func Float32(f float32) *float32 { return &f } -func Float64(f float64) *float64 { return &f } -func Pointer[T any](v T) *T { return &v } diff --git a/tests/mockserver/internal/sdk/utils/json.go b/tests/mockserver/internal/sdk/utils/json.go deleted file mode 100644 index 764f6454..00000000 --- a/tests/mockserver/internal/sdk/utils/json.go +++ /dev/null @@ -1,673 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package utils - -import ( - "bytes" - "encoding/json" - "fmt" - "math/big" - "reflect" - "strconv" - "strings" - "time" - "unsafe" - - "mockserver/internal/sdk/types" - - "github.com/ericlagergren/decimal" -) - -func MarshalJSON(v interface{}, tag reflect.StructTag, topLevel bool) ([]byte, error) { - typ, val := dereferencePointers(reflect.TypeOf(v), reflect.ValueOf(v)) - - switch { - case isModelType(typ): - if topLevel { - return json.Marshal(v) - } - - if isNil(typ, val) { - return []byte("null"), nil - } - - out := map[string]json.RawMessage{} - - for i := 0; i < typ.NumField(); i++ { - field := typ.Field(i) - fieldVal := val.Field(i) - - fieldName := field.Name - - omitEmpty := false - jsonTag := field.Tag.Get("json") - if jsonTag != "" { - for _, tag := range strings.Split(jsonTag, ",") { - if tag == "omitempty" { - omitEmpty = true - } else { - fieldName = tag - } - } - } - - if (isNil(field.Type, fieldVal) || isEmpty(field.Type, fieldVal)) && field.Tag.Get("const") == "" { - if omitEmpty { - continue - } - } - - if !field.IsExported() && field.Tag.Get("const") == "" { - continue - } - - additionalProperties := field.Tag.Get("additionalProperties") - if fieldName == "-" && additionalProperties == "" { - continue - } - - if additionalProperties == "true" { - if isNil(field.Type, fieldVal) { - continue - } - fieldVal := trueReflectValue(fieldVal) - if fieldVal.Type().Kind() != reflect.Map { - return nil, fmt.Errorf("additionalProperties must be a map") - } - - for _, key := range fieldVal.MapKeys() { - r, err := marshalValue(fieldVal.MapIndex(key).Interface(), field.Tag) - if err != nil { - return nil, err - } - - out[key.String()] = r - } - - continue - } - - var fv interface{} - - if field.IsExported() { - fv = fieldVal.Interface() - } else { - pt := reflect.New(typ).Elem() - pt.Set(val) - - pf := pt.Field(i) - - fv = reflect.NewAt(pf.Type(), unsafe.Pointer(pf.UnsafeAddr())).Elem().Interface() - } - - r, err := marshalValue(fv, field.Tag) - if err != nil { - return nil, err - } - - out[fieldName] = r - } - - return json.Marshal(out) - default: - return marshalValue(v, tag) - } -} - -func UnmarshalJSON(b []byte, v interface{}, tag reflect.StructTag, topLevel bool, requiredFields []string) error { - if reflect.TypeOf(v).Kind() != reflect.Ptr { - return fmt.Errorf("v must be a pointer") - } - - typ, val := dereferencePointers(reflect.TypeOf(v), reflect.ValueOf(v)) - - switch { - case isModelType(typ): - if topLevel || bytes.Equal(b, []byte("null")) { - return json.Unmarshal(b, v) - } - - var unmarshaled map[string]json.RawMessage - - if err := json.Unmarshal(b, &unmarshaled); err != nil { - return err - } - - missingFields := []string{} - for _, requiredField := range requiredFields { - if _, ok := unmarshaled[requiredField]; !ok { - missingFields = append(missingFields, requiredField) - } - } - if len(missingFields) > 0 { - return fmt.Errorf("missing required fields: %s", strings.Join(missingFields, ", ")) - } - - var additionalPropertiesField *reflect.StructField - var additionalPropertiesValue *reflect.Value - - for i := 0; i < typ.NumField(); i++ { - field := typ.Field(i) - fieldVal := val.Field(i) - - fieldName := field.Name - - jsonTag := field.Tag.Get("json") - if jsonTag != "" { - for _, tag := range strings.Split(jsonTag, ",") { - if tag != "omitempty" { - fieldName = tag - } - } - } - - if field.Tag.Get("additionalProperties") == "true" { - additionalPropertiesField = &field - additionalPropertiesValue = &fieldVal - continue - } - - // If we receive a value for a const field ignore it but mark it as unmarshaled - if field.Tag.Get("const") != "" { - if r, ok := unmarshaled[fieldName]; ok { - val := string(r) - - if strings.HasPrefix(val, `"`) && strings.HasSuffix(val, `"`) { - var err error - val, err = strconv.Unquote(val) - if err != nil { - return fmt.Errorf("failed to unquote const field `%s` value `%s`: %w", fieldName, val, err) - } - } - constValue := field.Tag.Get("const") - if val != constValue { - return fmt.Errorf("const field `%s` does not match expected value `%s` got `%s`", fieldName, constValue, val) - } - - delete(unmarshaled, fieldName) - } - } else if !field.IsExported() { - continue - } - - value, ok := unmarshaled[fieldName] - if !ok { - defaultTag := field.Tag.Get("default") - if defaultTag != "" { - value = handleDefaultConstValue(defaultTag, fieldVal.Interface(), field.Tag) - ok = true - } - } else { - delete(unmarshaled, fieldName) - } - - if ok { - if err := unmarshalValue(value, fieldVal, field.Tag); err != nil { - return err - } - } - } - - keys := make([]string, 0, len(unmarshaled)) - for k := range unmarshaled { - keys = append(keys, k) - } - - if len(keys) > 0 { - if additionalPropertiesField != nil && additionalPropertiesValue != nil { - typeOfMap := additionalPropertiesField.Type - if additionalPropertiesValue.Type().Kind() == reflect.Interface { - typeOfMap = reflect.TypeOf(map[string]interface{}{}) - } else if additionalPropertiesValue.Type().Kind() != reflect.Map { - return fmt.Errorf("additionalProperties must be a map") - } - - mapValue := reflect.MakeMap(typeOfMap) - - for key, value := range unmarshaled { - val := reflect.New(typeOfMap.Elem()) - - if err := unmarshalValue(value, val, additionalPropertiesField.Tag); err != nil { - return err - } - - if val.Elem().Type().String() == typeOfMap.Elem().String() { - mapValue.SetMapIndex(reflect.ValueOf(key), val.Elem()) - } else { - mapValue.SetMapIndex(reflect.ValueOf(key), trueReflectValue(val)) - } - - } - if additionalPropertiesValue.Type().Kind() == reflect.Interface { - additionalPropertiesValue.Set(mapValue) - } else { - additionalPropertiesValue.Set(mapValue) - } - } - } - default: - return unmarshalValue(b, reflect.ValueOf(v), tag) - } - - return nil -} - -func marshalValue(v interface{}, tag reflect.StructTag) (json.RawMessage, error) { - constTag := tag.Get("const") - if constTag != "" { - return handleDefaultConstValue(constTag, v, tag), nil - } - - if isNil(reflect.TypeOf(v), reflect.ValueOf(v)) { - defaultTag := tag.Get("default") - if defaultTag != "" { - return handleDefaultConstValue(defaultTag, v, tag), nil - } - - return []byte("null"), nil - } - - typ, val := dereferencePointers(reflect.TypeOf(v), reflect.ValueOf(v)) - switch typ.Kind() { - case reflect.Int64: - format := tag.Get("integer") - if format == "string" { - b := val.Interface().(int64) - return []byte(fmt.Sprintf(`"%d"`, b)), nil - } - case reflect.Float64: - format := tag.Get("number") - if format == "string" { - b := val.Interface().(float64) - return []byte(fmt.Sprintf(`"%g"`, b)), nil - } - case reflect.Map: - if isNil(typ, val) { - return []byte("null"), nil - } - - out := map[string]json.RawMessage{} - - for _, key := range val.MapKeys() { - itemVal := val.MapIndex(key) - - if isNil(itemVal.Type(), itemVal) { - out[key.String()] = []byte("null") - continue - } - - r, err := marshalValue(itemVal.Interface(), tag) - if err != nil { - return nil, err - } - - out[key.String()] = r - } - - return json.Marshal(out) - case reflect.Slice, reflect.Array: - if isNil(typ, val) { - return []byte("null"), nil - } - - out := []json.RawMessage{} - - for i := 0; i < val.Len(); i++ { - itemVal := val.Index(i) - - if isNil(itemVal.Type(), itemVal) { - out = append(out, []byte("null")) - continue - } - - r, err := marshalValue(itemVal.Interface(), tag) - if err != nil { - return nil, err - } - - out = append(out, r) - } - - return json.Marshal(out) - case reflect.Struct: - switch typ { - case reflect.TypeOf(time.Time{}): - return []byte(fmt.Sprintf(`"%s"`, val.Interface().(time.Time).Format(time.RFC3339Nano))), nil - case reflect.TypeOf(big.Int{}): - format := tag.Get("bigint") - if format == "string" { - b := val.Interface().(big.Int) - return []byte(fmt.Sprintf(`"%s"`, (&b).String())), nil - } - case reflect.TypeOf(decimal.Big{}): - format := tag.Get("decimal") - if format == "number" { - b := val.Interface().(decimal.Big) - f, ok := (&b).Float64() - if ok { - return []byte(b.String()), nil - } - - return []byte(fmt.Sprintf(`%f`, f)), nil - } - } - } - - return json.Marshal(v) -} - -func handleDefaultConstValue(tagValue string, val interface{}, tag reflect.StructTag) json.RawMessage { - if tagValue == "null" { - return []byte("null") - } - - typ := dereferenceTypePointer(reflect.TypeOf(val)) - switch typ { - case reflect.TypeOf(time.Time{}): - return []byte(fmt.Sprintf(`"%s"`, tagValue)) - case reflect.TypeOf(big.Int{}): - bigIntTag := tag.Get("bigint") - if bigIntTag == "string" { - return []byte(fmt.Sprintf(`"%s"`, tagValue)) - } - case reflect.TypeOf(int64(0)): - format := tag.Get("integer") - if format == "string" { - return []byte(fmt.Sprintf(`"%s"`, tagValue)) - } - case reflect.TypeOf(float64(0)): - format := tag.Get("number") - if format == "string" { - return []byte(fmt.Sprintf(`"%s"`, tagValue)) - } - case reflect.TypeOf(decimal.Big{}): - decimalTag := tag.Get("decimal") - if decimalTag != "number" { - return []byte(fmt.Sprintf(`"%s"`, tagValue)) - } - case reflect.TypeOf(types.Date{}): - return []byte(fmt.Sprintf(`"%s"`, tagValue)) - default: - if typ.Kind() == reflect.String { - return []byte(fmt.Sprintf("%q", tagValue)) - } - } - - return []byte(tagValue) -} - -func unmarshalValue(value json.RawMessage, v reflect.Value, tag reflect.StructTag) error { - if bytes.Equal(value, []byte("null")) { - if v.CanAddr() { - return json.Unmarshal(value, v.Addr().Interface()) - } else { - return json.Unmarshal(value, v.Interface()) - } - } - - typ := dereferenceTypePointer(v.Type()) - - switch typ.Kind() { - case reflect.Int64: - var b int64 - - format := tag.Get("integer") - if format == "string" { - var s string - if err := json.Unmarshal(value, &s); err != nil { - return err - } - - var err error - b, err = strconv.ParseInt(s, 10, 64) - if err != nil { - return fmt.Errorf("failed to parse string as int64: %w", err) - } - if v.Kind() == reflect.Ptr { - if v.IsNil() { - v.Set(reflect.New(typ)) - } - v = v.Elem() - } - - v.Set(reflect.ValueOf(b)) - return nil - } - case reflect.Float64: - var b float64 - - format := tag.Get("number") - if format == "string" { - var s string - if err := json.Unmarshal(value, &s); err != nil { - return err - } - - var err error - b, err = strconv.ParseFloat(s, 64) - if err != nil { - return fmt.Errorf("failed to parse string as float64: %w", err) - } - - if v.Kind() == reflect.Ptr { - if v.IsNil() { - v.Set(reflect.New(typ)) - } - v = v.Elem() - } - - v.Set(reflect.ValueOf(b)) - return nil - } - case reflect.Map: - if bytes.Equal(value, []byte("null")) || !isComplexValueType(dereferenceTypePointer(typ.Elem())) { - if v.CanAddr() { - return json.Unmarshal(value, v.Addr().Interface()) - } else { - return json.Unmarshal(value, v.Interface()) - } - } - - var unmarshaled map[string]json.RawMessage - - if err := json.Unmarshal(value, &unmarshaled); err != nil { - return err - } - - m := reflect.MakeMap(typ) - - for k, value := range unmarshaled { - itemVal := reflect.New(typ.Elem()) - - if err := unmarshalValue(value, itemVal, tag); err != nil { - return err - } - - m.SetMapIndex(reflect.ValueOf(k), itemVal.Elem()) - } - - v.Set(m) - return nil - case reflect.Slice, reflect.Array: - var unmarshaled []json.RawMessage - - if err := json.Unmarshal(value, &unmarshaled); err != nil { - return err - } - - arrVal := reflect.MakeSlice(typ, len(unmarshaled), len(unmarshaled)) - - for index, value := range unmarshaled { - itemVal := reflect.New(typ.Elem()) - - if err := unmarshalValue(value, itemVal, tag); err != nil { - return err - } - - arrVal.Index(index).Set(itemVal.Elem()) - } - - if v.Kind() == reflect.Pointer { - if v.IsNil() { - v.Set(reflect.New(typ)) - } - v = v.Elem() - } - - v.Set(arrVal) - return nil - case reflect.Struct: - switch typ { - case reflect.TypeOf(time.Time{}): - var s string - if err := json.Unmarshal(value, &s); err != nil { - return err - } - - t, err := time.Parse(time.RFC3339Nano, s) - if err != nil { - return fmt.Errorf("failed to parse string as time.Time: %w", err) - } - - if v.Kind() == reflect.Ptr { - if v.IsNil() { - v.Set(reflect.New(typ)) - } - v = v.Elem() - } - - v.Set(reflect.ValueOf(t)) - return nil - case reflect.TypeOf(big.Int{}): - var b *big.Int - - format := tag.Get("bigint") - if format == "string" { - var s string - if err := json.Unmarshal(value, &s); err != nil { - return err - } - - var ok bool - b, ok = new(big.Int).SetString(s, 10) - if !ok { - return fmt.Errorf("failed to parse string as big.Int") - } - } else { - if err := json.Unmarshal(value, &b); err != nil { - return err - } - } - - if v.Kind() == reflect.Ptr && v.Elem().Kind() == reflect.Ptr { - v = v.Elem() - } - - v.Set(reflect.ValueOf(b)) - return nil - case reflect.TypeOf(decimal.Big{}): - var d *decimal.Big - format := tag.Get("decimal") - if format == "number" { - var ok bool - d, ok = new(decimal.Big).SetString(string(value)) - if !ok { - return fmt.Errorf("failed to parse number as decimal.Big") - } - } else { - if err := json.Unmarshal(value, &d); err != nil { - return err - } - } - - if v.Kind() == reflect.Ptr && v.Elem().Kind() == reflect.Ptr { - v = v.Elem() - } - - v.Set(reflect.ValueOf(d)) - return nil - case reflect.TypeOf(types.Date{}): - var s string - - if err := json.Unmarshal(value, &s); err != nil { - return err - } - - d, err := types.DateFromString(s) - if err != nil { - return fmt.Errorf("failed to parse string as types.Date: %w", err) - } - - if v.Kind() == reflect.Ptr { - if v.IsNil() { - v.Set(reflect.New(typ)) - } - v = v.Elem() - } - - v.Set(reflect.ValueOf(d)) - return nil - } - } - - var val interface{} - - if v.CanAddr() { - val = v.Addr().Interface() - } else { - val = v.Interface() - } - - return json.Unmarshal(value, val) -} - -func dereferencePointers(typ reflect.Type, val reflect.Value) (reflect.Type, reflect.Value) { - if typ.Kind() == reflect.Ptr { - typ = typ.Elem() - val = val.Elem() - } else { - return typ, val - } - - return dereferencePointers(typ, val) -} - -func dereferenceTypePointer(typ reflect.Type) reflect.Type { - if typ.Kind() == reflect.Ptr { - typ = typ.Elem() - } else { - return typ - } - - return dereferenceTypePointer(typ) -} - -func isComplexValueType(typ reflect.Type) bool { - switch typ.Kind() { - case reflect.Struct: - switch typ { - case reflect.TypeOf(time.Time{}): - fallthrough - case reflect.TypeOf(big.Int{}): - fallthrough - case reflect.TypeOf(decimal.Big{}): - fallthrough - case reflect.TypeOf(types.Date{}): - return true - } - } - - return false -} - -func isModelType(typ reflect.Type) bool { - if isComplexValueType(typ) { - return false - } - - if typ.Kind() == reflect.Struct { - return true - } - - return false -} diff --git a/tests/mockserver/internal/sdk/utils/reflect.go b/tests/mockserver/internal/sdk/utils/reflect.go deleted file mode 100644 index 255f3dd7..00000000 --- a/tests/mockserver/internal/sdk/utils/reflect.go +++ /dev/null @@ -1,49 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package utils - -import ( - "reflect" -) - -func isNil(typ reflect.Type, val reflect.Value) bool { - // `reflect.TypeOf(nil) == nil` so calling typ.Kind() will cause a nil pointer - // dereference panic. Catch it and return early. - // https://github.com/golang/go/issues/51649 - // https://github.com/golang/go/issues/54208 - if typ == nil { - return true - } - - if typ.Kind() == reflect.Ptr || typ.Kind() == reflect.Map || typ.Kind() == reflect.Slice || typ.Kind() == reflect.Interface { - return val.IsNil() - } - - return false -} - -func isEmpty(typ reflect.Type, val reflect.Value) bool { - if typ == nil { - return true - } - - switch typ.Kind() { - case reflect.Array, reflect.Map, reflect.Slice, reflect.String: - return val.Len() == 0 - } - - return false -} - -func trueReflectValue(val reflect.Value) reflect.Value { - kind := val.Type().Kind() - for kind == reflect.Interface || kind == reflect.Ptr { - innerVal := val.Elem() - if !innerVal.IsValid() { - break - } - val = innerVal - kind = val.Type().Kind() - } - return val -} diff --git a/tests/mockserver/internal/sdk/utils/sort.go b/tests/mockserver/internal/sdk/utils/sort.go deleted file mode 100644 index 6b265be7..00000000 --- a/tests/mockserver/internal/sdk/utils/sort.go +++ /dev/null @@ -1,94 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package utils - -import ( - "regexp" - "sort" - "strings" -) - -// SortSerializedMaps will sort a given string, []string, or map[string]string -// such that all keys are ordered. This should only be used to simplify testing -// logic. -func SortSerializedMaps(input interface{}, regex string, delim string) interface{} { - sortString := func(input string) string { - r := regexp.MustCompile(regex) - - return replaceAllStringSubmatchFunc(r, input, func(matches []string) string { - result := matches[0] - - for i := 1; i < len(matches); i++ { - match := matches[i] - - pairs := []string{} - if strings.Contains(match, "=") { - pairs = strings.Split(match, delim) - - sort.SliceStable(pairs, func(i, j int) bool { - return strings.Split(pairs[i], "=")[0] < strings.Split(pairs[j], "=")[0] - }) - } else { - values := strings.Split(match, delim) - - if len(values) == 1 { - pairs = values - } else { - pairs = make([]string, len(values)/2) - for i := 0; i < len(values); i += 2 { - pairs[i/2] = values[i] + delim + values[i+1] - } - } - - sort.SliceStable(pairs, func(i, j int) bool { - return strings.Split(pairs[i], delim)[0] < strings.Split(pairs[j], delim)[0] - }) - } - - match = strings.Join(pairs, delim) - - result = strings.Replace(result, matches[i], match, 1) - } - - return result - }) - } - - switch input := input.(type) { - case string: - return sortString(input) - case []string: - for i, v := range input { - input[i] = sortString(v) - } - return input - case map[string]string: - for k, v := range input { - input[k] = sortString(v) - } - return input - default: - panic("unsupported type") - } -} - -func replaceAllStringSubmatchFunc(re *regexp.Regexp, str string, repl func([]string) string) string { - result := "" - lastIndex := 0 - - for _, v := range re.FindAllSubmatchIndex([]byte(str), -1) { - groups := []string{} - for i := 0; i < len(v); i += 2 { - if v[i] == -1 || v[i+1] == -1 { - groups = append(groups, "") - } else { - groups = append(groups, str[v[i]:v[i+1]]) - } - } - - result += str[lastIndex:v[0]] + repl(groups) - lastIndex = v[1] - } - - return result + str[lastIndex:] -} diff --git a/tests/mockserver/internal/server/doc.go b/tests/mockserver/internal/server/doc.go deleted file mode 100644 index 666dc109..00000000 --- a/tests/mockserver/internal/server/doc.go +++ /dev/null @@ -1,4 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -// Package server implements the HTTP server. -package server diff --git a/tests/mockserver/internal/server/generated_handlers.go b/tests/mockserver/internal/server/generated_handlers.go deleted file mode 100644 index 1ea16355..00000000 --- a/tests/mockserver/internal/server/generated_handlers.go +++ /dev/null @@ -1,17 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package server - -import ( - "context" - - "mockserver/internal/handler" -) - -func (s *Server) registerGeneratedHandlers(ctx context.Context) { - s.logger.Debug("registering generated handlers") - - for _, h := range handler.GeneratedHandlers(ctx, s.httpFileDir, s.requestTracker) { - s.RegisterHandlerFunc(ctx, []string{h.Method}, h.Path, h.HandlerFunc()) - } -} diff --git a/tests/mockserver/internal/server/internal_handlers.go b/tests/mockserver/internal/server/internal_handlers.go deleted file mode 100644 index 1c248615..00000000 --- a/tests/mockserver/internal/server/internal_handlers.go +++ /dev/null @@ -1,343 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package server - -import ( - "bytes" - "context" - "fmt" - "html/template" - "io" - "net/http" - "path/filepath" - "strings" -) - -const ( - // Mock server internal route prefix to prevent naming collisions. - internalPathPrefix = "/_mockserver" -) - -// registerInternalHandlers adds any internal handlers, such as healthcheck -// endpoints and fallback handling. -func (s *Server) registerInternalHandlers(ctx context.Context) { - s.logger.Debug("registering internal handlers") - - // Healthcheck endpoint - s.RegisterHandlerFunc(ctx, []string{http.MethodGet}, internalPathPrefix+"/health", healthcheckHandler) - - // HTTP log index endpoint - s.RegisterHandlerFunc(ctx, []string{http.MethodGet}, internalPathPrefix+"/log", s.httpFileIndexHandler) - - // HTTP log operation endpoint - s.RegisterHandlerFunc(ctx, []string{http.MethodGet}, internalPathPrefix+"/log/{operationId}", s.httpOperationHandler) - - // Default all other requests to 404 Not Found - s.RegisterHandlerFunc(ctx, []string{}, "/", rootHandler) -} - -// healthcheckHandler returns a simple OK response. -func healthcheckHandler(w http.ResponseWriter, _ *http.Request) { - w.Header().Set("Content-Type", "text/plain; charset=utf-8") - w.WriteHeader(http.StatusOK) - fmt.Fprintln(w, "OK") -} - -// httpFileIndexHandler returns a HTML index page for all logged HTTP operations -// written to the HTTP file directory. -func (s *Server) httpFileIndexHandler(w http.ResponseWriter, _ *http.Request) { - operations, err := s.httpFileDir.Operations() - - if err != nil { - http.Error( - w, - fmt.Sprintf("operation log error: %s", err), - http.StatusInternalServerError, - ) - - return - } - - type operationModel struct { - CallCount int64 - ID string - LogURL string - Method string - Path string - } - - type indexModel struct { - Operations []operationModel - } - - var index indexModel - - for _, operation := range operations { - index.Operations = append(index.Operations, operationModel{ - CallCount: operation.CallCount(), - ID: operation.Id(), - LogURL: internalPathPrefix + "/log/" + operation.Id(), - Method: operation.Method(), - Path: operation.Path(), - }) - } - - tmpl := template.New("index.html.tmpl") - tmpl.Funcs(template.FuncMap{ - "mod": func(i, j int) bool { return i%j == 0 }, - }) - _, err = tmpl.ParseFiles( - filepath.Join("internal", "server", "templates", "log", "style.css.tmpl"), - filepath.Join("internal", "server", "templates", "log", "index.html.tmpl"), - ) - - if err != nil { - http.Error( - w, - fmt.Sprintf("operation log template error: %s", err), - http.StatusInternalServerError, - ) - - return - } - - var wBuf bytes.Buffer - - err = tmpl.Execute(&wBuf, index) - - if err != nil { - http.Error( - w, - fmt.Sprintf("operation log template execution error: %s", err), - http.StatusInternalServerError, - ) - - return - } - - w.Header().Set("Content-Type", "text/html; charset=utf-8") - w.WriteHeader(http.StatusOK) - _, _ = wBuf.WriteTo(w) -} - -// httpOperationHandler returns a HTML page for HTTP request and response log files -// written to _debug. -func (s *Server) httpOperationHandler(w http.ResponseWriter, req *http.Request) { - operationId := req.PathValue("operationId") - - if operationId == "" { - http.Error(w, "operation logs not found", http.StatusNotFound) - - return - } - - operation, err := s.httpFileDir.Operation(operationId) - - if err != nil { - http.Error( - w, - fmt.Sprintf("operation %s log error: %s", operationId, err), - http.StatusInternalServerError, - ) - - return - } - - type headerModel struct { - Key string - Values template.HTML - } - - type queryParameterModel struct { - Key string - Values template.HTML - } - - type operationCallModel struct { - Call int64 - ID string - LogOperationURL string - - RawRequest template.HTML - RawResponse template.HTML - - RequestBody string - RequestHeaders []headerModel - RequestQueryParameters []queryParameterModel - - ResponseBody string - ResponseHeaders []headerModel - ResponseStatus string - } - - type operationDataModel struct { - Calls []operationCallModel - ID string - LogIndexURL string - RequestMethod string - RequestPath string - } - - operationData := operationDataModel{ - ID: operationId, - LogIndexURL: internalPathPrefix + "/log", - RequestMethod: operation.Method(), - RequestPath: operation.Path(), - } - - for i := range operation.CallCount() { - call := i + 1 - - callReqRaw, err := operation.RawRequest(call) - - if err != nil { - http.Error( - w, - fmt.Sprintf("operation %s call %d log raw request error: %s", operationId, call, err), - http.StatusInternalServerError, - ) - - return - } - - callReq, err := operation.Request(call) - - if err != nil { - http.Error( - w, - fmt.Sprintf("operation %s call %d log request error: %s", operationId, call, err), - http.StatusInternalServerError, - ) - - return - } - - callReqBody, err := io.ReadAll(callReq.Body) - defer callReq.Body.Close() - - if err != nil { - http.Error( - w, - fmt.Sprintf("operation %s call %d log request body error: %s", operationId, call, err), - http.StatusInternalServerError, - ) - - return - } - - callRespRaw, err := operation.RawResponse(call) - - if err != nil { - http.Error( - w, - fmt.Sprintf("operation %s call %d log response error: %s", operationId, call, err), - http.StatusInternalServerError, - ) - - return - } - - callResp, err := operation.Response(call) - - if err != nil { - http.Error( - w, - fmt.Sprintf("operation %s call %d log response error: %s", operationId, call, err), - http.StatusInternalServerError, - ) - - return - } - - callRespBody, err := io.ReadAll(callResp.Body) - defer callReq.Body.Close() - - if err != nil { - http.Error( - w, - fmt.Sprintf("operation %s call %d log response body error: %s", operationId, call, err), - http.StatusInternalServerError, - ) - - return - } - - operationCall := operationCallModel{ - Call: call, - LogOperationURL: internalPathPrefix + "/log/" + operationId, - - RawRequest: template.HTML(strings.ReplaceAll(string(callReqRaw), "\r\n", "
")), - RawResponse: template.HTML(strings.ReplaceAll(string(callRespRaw), "\r\n", "
")), - - RequestBody: string(callReqBody), - ResponseBody: string(callRespBody), - ResponseStatus: callResp.Status, - } - - for key, values := range callReq.URL.Query() { - operationCall.RequestQueryParameters = append(operationCall.RequestQueryParameters, queryParameterModel{ - Key: key, - Values: template.HTML(strings.Join(values, "
")), - }) - } - - for key, values := range callReq.Header { - operationCall.RequestHeaders = append(operationCall.RequestHeaders, headerModel{ - Key: key, - Values: template.HTML(strings.Join(values, "
")), - }) - } - - for key, values := range callResp.Header { - operationCall.ResponseHeaders = append(operationCall.ResponseHeaders, headerModel{ - Key: key, - Values: template.HTML(strings.Join(values, "
")), - }) - } - - operationData.Calls = append(operationData.Calls, operationCall) - } - - tmpl := template.New("operation.html.tmpl") - tmpl.Funcs(template.FuncMap{ - "mod": func(i, j int) bool { return i%j == 0 }, - }) - _, err = tmpl.ParseFiles( - filepath.Join("internal", "server", "templates", "log", "style.css.tmpl"), - filepath.Join("internal", "server", "templates", "log", "operation.html.tmpl"), - ) - - if err != nil { - http.Error( - w, - fmt.Sprintf("operation log template error: %s", err), - http.StatusInternalServerError, - ) - - return - } - - var wBuf bytes.Buffer - - err = tmpl.Execute(&wBuf, operationData) - - if err != nil { - http.Error( - w, - fmt.Sprintf("operation log template execution error: %s", err), - http.StatusInternalServerError, - ) - - return - } - - w.Header().Set("Content-Type", "text/html; charset=utf-8") - w.WriteHeader(http.StatusOK) - _, _ = wBuf.WriteTo(w) -} - -// rootHandler returns a slightly customized [http.NotFoundHandler], saying -// "path" instead of "page". -func rootHandler(w http.ResponseWriter, _ *http.Request) { - http.Error(w, "path not found", http.StatusNotFound) -} diff --git a/tests/mockserver/internal/server/server.go b/tests/mockserver/internal/server/server.go deleted file mode 100644 index 12239611..00000000 --- a/tests/mockserver/internal/server/server.go +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package server - -import ( - "context" - "errors" - "fmt" - "log/slog" - "mockserver/internal/logging" - "mockserver/internal/tracking" - "net/http" - "strings" - "time" - - "github.com/gorilla/mux" -) - -const ( - // Default address for server listening. - DefaultAddress = ":18080" -) - -// Server implements the HTTP server. -type Server struct { - // Address for server listening. - address string - - // Directory for raw HTTP request and response files. - httpFileDir *logging.HTTPFileDirectory - - // Logger implementation. - logger *slog.Logger - - // Underlying mux implementation. - // Based on gorilla mux as the native mux suffered from issues with ambiguous paths and different http methods - // eg - panic: pattern "HEAD /v8/artifacts/{hash}" (registered at /usr/src/app/internal/server/server.go:104) conflicts with pattern "GET /v8/artifacts/status" (registered at /usr/src/app/internal/server/server.go:104): HEAD /v8/artifacts/{hash} matches fewer methods than GET /v8/artifacts/status, but has a more general path pattern - mux *mux.Router - - // Underlying server implementation. - server *http.Server - - requestTracker *tracking.RequestTracker -} - -// NewServer creates a new Server instance. -func NewServer(ctx context.Context, opts ...ServerOption) (*Server, error) { - // Initialize with defaults. - result := &Server{ - address: DefaultAddress, - logger: slog.Default(), - mux: mux.NewRouter(), - requestTracker: tracking.New(), - } - - // Customize based on ServerOption. - for _, opt := range opts { - err := opt(result) - - if err != nil { - return result, err - } - } - - result.server = &http.Server{ - Addr: result.address, - Handler: logging.HTTPLoggerHandler(result.logger, result.mux), - ErrorLog: slog.NewLogLogger(result.logger.Handler(), slog.LevelError), - } - - httpFileDir, err := logging.NewHTTPFileDirectory("") - - if err != nil { - return result, err - } - - err = httpFileDir.Clean() - - if err != nil { - return result, err - } - - result.httpFileDir = httpFileDir - - result.registerGeneratedHandlers(ctx) - result.registerInternalHandlers(ctx) - - return result, err -} - -// Address returns the server address including protocol, hostname, and port. -func (s *Server) Address() string { - return "http://localhost" + s.address -} - -// RegisterHandlerFunc adds a new HTTP handler function for the given methods and path. -func (s *Server) RegisterHandlerFunc(ctx context.Context, methods []string, path string, handlerFunc http.HandlerFunc) { - s.logger.DebugContext(ctx, fmt.Sprintf("registering handler for %s %s", strings.Join(methods, ", "), path)) - - r := s.mux.HandleFunc(path, handlerFunc) - if len(methods) > 0 { - r.Methods(methods...) - } -} - -// Serve starts the server. -func (s *Server) Serve(ctx context.Context) error { - s.logger.InfoContext(ctx, "starting server with address "+s.server.Addr) - - err := s.server.ListenAndServe() - - if errors.Is(err, http.ErrServerClosed) { - return nil - } - - return fmt.Errorf("error running server: %w", err) -} - -// Shutdown gracefully stops the server. -func (s *Server) Shutdown(ctx context.Context) error { - s.logger.WarnContext(ctx, "shutting down server") - s.server.SetKeepAlivesEnabled(false) - - ctx, cancel := context.WithTimeout(ctx, 5*time.Second) - defer cancel() - - err := s.server.Shutdown(ctx) - - if err != nil { - return fmt.Errorf("error shutting down server: %w", err) - } - - return nil -} diff --git a/tests/mockserver/internal/server/server_option.go b/tests/mockserver/internal/server/server_option.go deleted file mode 100644 index ff85a678..00000000 --- a/tests/mockserver/internal/server/server_option.go +++ /dev/null @@ -1,30 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package server - -import ( - "log/slog" -) - -// ServerOption is a function which modifies the Server. -type ServerOption func(*Server) error - -// WithAddress sets the listening address for a Server. By default, the server -// address is :18080. -func WithAddress(address string) ServerOption { - return func(s *Server) error { - s.address = address - - return nil - } -} - -// WithLogger sets the logger implementation for a Server. By default, the -// server logger is [slog.Default]. -func WithLogger(logger *slog.Logger) ServerOption { - return func(s *Server) error { - s.logger = logger - - return nil - } -} diff --git a/tests/mockserver/internal/server/templates/log/index.html.tmpl b/tests/mockserver/internal/server/templates/log/index.html.tmpl deleted file mode 100644 index 8b1124e5..00000000 --- a/tests/mockserver/internal/server/templates/log/index.html.tmpl +++ /dev/null @@ -1,22 +0,0 @@ - - - Operation Logs - - - -

// Speakeasy

-

Operation Logs

- - - {{ range $idx, $o := .Operations }} - - - - - - {{ end }} -
OperationRequestCalls
{{ .ID }}{{ .Method }} {{ .Path }}{{ .CallCount }}
- - diff --git a/tests/mockserver/internal/server/templates/log/operation.html.tmpl b/tests/mockserver/internal/server/templates/log/operation.html.tmpl deleted file mode 100644 index a54a2adc..00000000 --- a/tests/mockserver/internal/server/templates/log/operation.html.tmpl +++ /dev/null @@ -1,93 +0,0 @@ - - - Operation Logs: {{ .ID }} - - - -

// Speakeasy

-

Operation Logs: {{ .ID }}

-

{{ .RequestMethod }} {{ .RequestPath }}

-

Back to All Operation Logs

-
- {{ range $idx, $c := .Calls }} -
- {{ if (ne (len $.Calls) 1) }} -

Call {{ .Call }}

- {{ end }} -
-

Request

- - {{ if (gt (len .RequestQueryParameters) 0) }} -
-

Query Parameters

- - - {{ range $idx, $p := .RequestQueryParameters }} - - - - - {{ end }} -
KeyValue
{{ .Key }}{{ .Values }}
-
- {{ end }} -
-

Headers

- - - {{ range $idx, $h := .RequestHeaders }} - - - - - {{ end }} -
KeyValue(s)
{{ .Key }}{{ .Values }}
-
- {{ if (gt (len .RequestBody) 0) }} -
-

Body

-

{{ .RequestBody }}

-
- {{ end }} -

-

- Raw Request -
{{ .RawRequest }}
-
-

-
-
-

Response

-

{{ .ResponseStatus }}

-
-

Headers

- - - {{ range $idx, $h := .ResponseHeaders }} - - - - - {{ end }} -
KeyValue(s)
{{ .Key }}{{ .Values }}
-
- {{ if (gt (len .ResponseBody) 0) }} -
-

Body

-

{{ .ResponseBody }}

-
- {{ end }} -

-

- Raw Response -
{{ .RawResponse }}
-
-

-
-
- {{ end }} -
- - diff --git a/tests/mockserver/internal/server/templates/log/style.css.tmpl b/tests/mockserver/internal/server/templates/log/style.css.tmpl deleted file mode 100644 index 5490930e..00000000 --- a/tests/mockserver/internal/server/templates/log/style.css.tmpl +++ /dev/null @@ -1,64 +0,0 @@ -{{ define "style" }} -a { - color: rgba(251, 227, 50, 1.0); -} -body { - background: black; - font-family: Arial, Helvetica, sans-serif; -} -code { - color: white; -} -details > div { - border-left: 1px solid gray; - margin-left: 10px; - padding: 10px; -} -div { - width: fit-content; -} -div.operation-call.odd { - background-color: rgba(251, 227, 50, 0.1); -} -h1 { - color: hsl(53, 96%, 59%); -} -h2 { - color: rgba(255, 255, 255, 1.0); -} -h3 { - color: rgba(255, 255, 255, 0.75); -} -h4 { - color: rgba(255, 255, 255, 0.50); -} -p { - color: white; - padding-left: 10px; -} -summary { - color: gray; - font-weight: bold; - margin-bottom: 5px; -} -table { - border-collapse: collapse; - margin: 5px; -} -th { - border-bottom: 1px solid gray; - color: white; - padding: 10px; - text-align: left; -} -td { - color: white; - padding: 10px; -} -tr.even { - background-color: rgba(255, 255, 255, 0.0); -} -tr.odd { - background-color: rgba(255, 255, 255, 0.1); -} -{{ end }} diff --git a/tests/mockserver/internal/tracking/requesttracker.go b/tests/mockserver/internal/tracking/requesttracker.go deleted file mode 100644 index 1d9131d0..00000000 --- a/tests/mockserver/internal/tracking/requesttracker.go +++ /dev/null @@ -1,47 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package tracking - -import ( - "fmt" - "time" - - cache "github.com/go-pkgz/expirable-cache/v3" -) - -type RequestTracker struct { - cache cache.Cache[string, *testEntry] -} - -type testEntry struct { - name string - id string - count int - created time.Time -} - -func New() *RequestTracker { - return &RequestTracker{ - cache: cache.NewCache[string, *testEntry]().WithTTL(5 * time.Minute), - } -} - -func (t *RequestTracker) GetRequestCount(testName, instanceID string) int { - key := fmt.Sprintf("%s-%s", testName, instanceID) - - entry, ok := t.cache.Get(key) - if !ok { - entry = &testEntry{ - name: testName, - id: instanceID, - count: 0, - created: time.Now(), - } - } - - count := entry.count - entry.count++ - t.cache.Set(key, entry, 0) - - return count -} diff --git a/tests/mockserver/main.go b/tests/mockserver/main.go deleted file mode 100644 index 2270443b..00000000 --- a/tests/mockserver/main.go +++ /dev/null @@ -1,74 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package main - -import ( - "context" - "flag" - "fmt" - "os" - "os/signal" - "strings" - - "mockserver/internal/logging" - "mockserver/internal/server" -) - -func main() { - ctx := context.Background() - - address := flag.String("address", server.DefaultAddress, fmt.Sprintf("server listen address (default: %s)", server.DefaultAddress)) - logFormat := flag.String("log-format", logging.DefaultFormat, fmt.Sprintf("logging format (default: %s, supported: %s)", logging.DefaultFormat, strings.Join(logging.Formats(), ", "))) - logLevel := flag.String("log-level", logging.DefaultLevel, fmt.Sprintf("logging level (default: %s, supported: %s)", logging.DefaultLevel, strings.Join(logging.Levels(), ", "))) - - flag.Parse() - - logger, err := logging.NewLogger(os.Stdout, *logFormat, *logLevel) - - if err != nil { - fmt.Fprintf(os.Stderr, "error setting up logging: %s", err) - os.Exit(1) - } - - serverOpts := []server.ServerOption{ - server.WithAddress(*address), - server.WithLogger(logger), - } - - s, err := server.NewServer(ctx, serverOpts...) - - if err != nil { - logger.ErrorContext(ctx, err.Error()) - os.Exit(1) - } - - finishedShutdown := make(chan struct{}) - startShutdown := make(chan os.Signal, 1) - signal.Notify(startShutdown, os.Interrupt) - - go func() { - <-startShutdown - - logger.WarnContext(ctx, "server received interrupt") - - err := s.Shutdown(ctx) - - if err != nil { - logger.Error(err.Error()) - os.Exit(1) - } - - close(finishedShutdown) - }() - - err = s.Serve(ctx) - - if err != nil { - logger.ErrorContext(ctx, err.Error()) - os.Exit(1) - } - - <-finishedShutdown - - logger.InfoContext(ctx, "server stopped") -}